line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
|
|
|
|
$Bio::MUST::Apps::TwoScalp::AlignAll::VERSION = '0.231010'; |
6
|
1
|
|
|
1
|
|
8
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
7
|
1
|
|
|
1
|
|
7619
|
use namespace::autoclean; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
99
|
use autodie; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
10
|
1
|
|
|
1
|
|
6373
|
use feature qw(say); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
115
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
11
|
use Smart::Comments '###'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
14
|
|
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
689
|
use Bio::MUST::Core; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
15
|
1
|
|
|
1
|
|
8
|
use Bio::MUST::Drivers; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
16
|
1
|
|
|
1
|
|
5
|
use aliased 'Bio::MUST::Drivers::Mafft'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has 'file' => ( |
20
|
|
|
|
|
|
|
is => 'ro', |
21
|
|
|
|
|
|
|
isa => 'Bio::MUST::Core::Ali', |
22
|
|
|
|
|
|
|
required => 1, |
23
|
|
|
|
|
|
|
coerce => 1, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
default => sub { {} }, |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub BUILD { |
45
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
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
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
62
|
|
|
|
|
|
|
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 |