blib/script/agp2fasta.pl untested

filter: Statementstmt 0.0% 0 / 34 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod n/a totaltotal 0.0% 0 / 46 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  
3 use warnings;
4 use strict;
5  
6 use Data::Dumper;
7 use Carp;
8  
9 use 5.010;
10  
11 use Bio::Gonzales::Assembly::IO qw/agpslurp agp2fasta/;
12 use Bio::Gonzales::Util::File qw/expand_path/;
13 use Getopt::Long::Descriptive;
14  
15 my ( $opt, $usage ) = describe_options(
16 '%c %o --seq <seqfile1> --seq <seqfile2 .. --agp <agpfile1> --agp <agpfile2> .. <output_file>',
17 [],
18 [ 'seq|s=s@', 'use this sequence files for extraction' ],
19 [ 'agp|a=s@', 'use this agp files for extraction' ],
20 [],
21 [ 'verbose|v', "print extra stuff" ],
22 [ 'help', "print usage message and exit" ],
23 );
24  
25 print( $usage->text ), exit if $opt->help;
26  
27 my $out = shift @ARGV;
28 $usage->die( { pre_text => 'no output file suppplied' } ) unless ($out);
29  
30 agp2fasta( $opt->agp, $opt->seq, $out );