lib/Bio/MUST/Apps/TwoScalp/AlignAll.pm

filter: Statementstmt 75.0% 30 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 8 / 10 Podpod 0.0% 0 / 1 totaltotal 74.5% 38 / 51 CC 1 SCAR 1.8
CC
1
Cov
75%
__ANON__
2.0
BUILD
2.0
BEGIN
1.0
CRAP 1.2
« lib/Bio/MUST/Apps/TwoScalp/Profile2Profile.pm ↑ Summary lib/Bio/MUST/Apps/TwoScalp/Seqs2Profile.pm »
1 package Bio::MUST::Apps::TwoScalp::AlignAll;
2 # ABSTRACT: internal class for two-scalp tool
3 # CONTRIBUTOR: Amandine BERTRAND <amandine.bertrand@doct.uliege.be>
4 # CONTRIBUTOR: Valerian LUPO <valerian.lupo@doct.uliege.be>
5 1 $Bio::MUST::Apps::TwoScalp::AlignAll::VERSION = '0.231010';
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use feature qw(say);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use Smart::Comments '###';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use Bio::MUST::Core;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Bio::MUST::Drivers;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use aliased 'Bio::MUST::Drivers::Mafft';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 1 has 'file' => (
20 is => 'ro',
21 isa => 'Bio::MUST::Core::Ali',
22 required => 1,
23 coerce => 1,
24 );
25  
26 1 has 'ali' => (
27 is => 'ro',
28 isa => 'Bio::MUST::Core::Ali',
29 init_arg => undef,
30 writer => '_set_ali',
31 # handles => qr{.*}xms, # DO NOT WORK... WHY??
32 handles => [ qw( all_seqs all_seq_ids dont_guess restore_ids
33 store_fasta temp_fasta count_seqs has_uniq_ids ) ],
34 );
35  
36 has 'options' => (
37 traits => ['Hash'],
38 is => 'ro',
39 isa => 'HashRef',
40 0 ▶ default => sub { {} },
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 1 );
42  
43  
44 sub BUILD {
45 0 ▶ my $self = shift;
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
46  
47 0 my $ali1 = $self->file;
48 0 my $opt = $self->options;
49  
50 0 my ($filename1, $id_mapper1) = $ali1->temp_fasta( {id_prefix => 'file1-'} );
51  
52 0 my $mafft = Mafft->new( file => $filename1 );
53 0 my $ali_out = $mafft->align_all($opt);
54  
55 0 $ali_out->restore_ids($id_mapper1);
56  
57 0 $self->_set_ali($ali_out);
58  
59 0 return;
60 }
61 1 __PACKAGE__->meta->make_immutable;
62 1 1;
63  
64 __END__
65  
66 =pod
67  
68 =head1 NAME
69  
70 Bio::MUST::Apps::TwoScalp::AlignAll - internal class for two-scalp tool
71  
72 =head1 VERSION
73  
74 version 0.231010
75  
76 =head1 SYNOPSIS
77  
78 # TODO
79  
80 =head1 DESCRIPTION
81  
82 # TODO
83  
84 =head1 AUTHOR
85  
86 Denis BAURAIN <denis.baurain@uliege.be>
87  
88 =head1 CONTRIBUTORS
89  
90 =for stopwords Amandine BERTRAND Valerian LUPO
91  
92 =over 4
93  
94 =item *
95  
96 Amandine BERTRAND <amandine.bertrand@doct.uliege.be>
97  
98 =item *
99  
100 Valerian LUPO <valerian.lupo@doct.uliege.be>
101  
102 =back
103  
104 =head1 COPYRIGHT AND LICENSE
105  
106 This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
107  
108 This is free software; you can redistribute it and/or modify it under
109 the same terms as the Perl 5 programming language system itself.
110  
111 =cut
« lib/Bio/MUST/Apps/TwoScalp/Profile2Profile.pm ↑ Summary lib/Bio/MUST/Apps/TwoScalp/Seqs2Profile.pm »