script/ali2fasta.pl untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2 # PODNAME: ali2fasta.pl
3 # ABSTRACT: Convert ALI files to FASTA files
4  
5 use Modern::Perl '2011';
6 use autodie;
7  
8 use Getopt::Euclid qw(:vars);
9 use Smart::Comments;
10  
11 use Bio::MUST::Core;
12 use Bio::MUST::Core::Utils qw(change_suffix);
13 use aliased 'Bio::MUST::Core::Ali';
14  
15  
16 for my $infile (@ARGV_infiles) {
17  
18 ### Processing: $infile
19 my $ali = Ali->load($infile);
20 $ali->dont_guess if $ARGV_noguessing;
21 $ali->degap_seqs if $ARGV_degap;
22 my $outfile = change_suffix($infile, '.fasta');
23  
24 my $chunk = $ARGV_nowrap ? -1 : undef;
25 $ali->store_fasta($outfile, $chunk);
26 }
27  
28 __END__