File Coverage

blib/lib/Bio/MUST/Apps/TwoScalp/AlignAll.pm
Criterion Covered Total %
statement 24 33 72.7
branch n/a
condition n/a
subroutine 8 9 88.8
pod 0 1 0.0
total 32 43 74.4


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             $Bio::MUST::Apps::TwoScalp::AlignAll::VERSION = '0.201810';
5 1     1   8 use Moose;
  1         2  
  1         10  
6 1     1   7855 use namespace::autoclean;
  1         3  
  1         13  
7              
8 1     1   120 use autodie;
  1         3  
  1         11  
9 1     1   5682 use feature qw(say);
  1         3  
  1         106  
10              
11 1     1   9 use Smart::Comments '###';
  1         3  
  1         10  
12              
13             #use List::AllUtils qw(part);
14              
15 1     1   640 use Bio::MUST::Core;
  1         3  
  1         41  
16              
17 1     1   8 use Bio::MUST::Drivers;
  1         3  
  1         27  
18 1     1   6 use aliased 'Bio::MUST::Drivers::Mafft';
  1         2  
  1         10  
19              
20              
21             has 'file' => (
22             is => 'ro',
23             isa => 'Bio::MUST::Core::Ali',
24             required => 1,
25             coerce => 1,
26             );
27              
28              
29             has 'ali' => (
30             is => 'ro',
31             isa => 'Bio::MUST::Core::Ali',
32             init_arg => undef,
33             writer => '_set_ali',
34             #handles => qr{.*}xms, # DO NOT WORK... WHY??
35             handles => [qw( all_seqs all_seq_ids dont_guess restore_ids store_fasta temp_fasta count_seqs)],
36             );
37              
38              
39             sub BUILD {
40 0     0 0   my $self = shift;
41              
42 0           my $ali1 = $self->file;
43              
44 0           my ($filename1, $id_mapper1) = $ali1->temp_fasta( {id_prefix => 'file1-'} );
45              
46 0           my $mafft = Mafft->new( file => $filename1 );
47 0           my $ali_out = $mafft->align_all;
48              
49 0           $ali_out->dont_guess;
50 0           $ali_out->restore_ids($id_mapper1);
51              
52 0           $self->_set_ali($ali_out);
53              
54 0           return;
55             }
56             __PACKAGE__->meta->make_immutable;
57             1;
58              
59             __END__
60              
61             =pod
62              
63             =head1 NAME
64              
65             Bio::MUST::Apps::TwoScalp::AlignAll - internal class for two-scalp tool
66              
67             =head1 VERSION
68              
69             version 0.201810
70              
71             =head1 SYNOPSIS
72              
73             # TODO
74              
75             =head1 DESCRIPTION
76              
77             # TODO
78              
79             =head1 AUTHOR
80              
81             Denis BAURAIN <denis.baurain@uliege.be>
82              
83             =head1 CONTRIBUTOR
84              
85             =for stopwords Amandine BERTRAND
86              
87             Amandine BERTRAND <amandine.bertrand@doct.uliege.be>
88              
89             =head1 COPYRIGHT AND LICENSE
90              
91             This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
92              
93             This is free software; you can redistribute it and/or modify it under
94             the same terms as the Perl 5 programming language system itself.
95              
96             =cut