comparison runAssembly_wrapper.pl @ 3:bf1f8bc4abe6 default tip

minor updates for v2.6
author eskirton@lbl.gov
date Wed, 21 Dec 2011 19:42:53 -0800
parents 2d86d5b112e8
children
comparison
equal deleted inserted replaced
2:2d86d5b112e8 3:bf1f8bc4abe6
20 my $pair_align=shift @ARGV; 20 my $pair_align=shift @ARGV;
21 my $pair_status=shift @ARGV; 21 my $pair_status=shift @ARGV;
22 my $scaffolds_fasta=shift @ARGV; 22 my $scaffolds_fasta=shift @ARGV;
23 my $scaffolds_qual=shift @ARGV; 23 my $scaffolds_qual=shift @ARGV;
24 my $scaffolds_agp=shift @ARGV; 24 my $scaffolds_agp=shift @ARGV;
25 my $contig_scaffolds_agp=shift @ARGV;
25 my $tag_pair_align=shift @ARGV; 26 my $tag_pair_align=shift @ARGV;
26 my $trim_status=shift @ARGV; 27 my $trim_status=shift @ARGV;
27 my $large_contigs_fasta=shift @ARGV; 28 my $large_contigs_fasta=shift @ARGV;
28 my $large_contigs_qual=shift @ARGV; 29 my $large_contigs_qual=shift @ARGV;
29 30
30 # REMOVE PARAMETERS FOR OPTIONAL FILES WHICH WERE NOT PROVIDED 31 # REMOVE PARAMETERS FOR OPTIONAL FILES WHICH WERE NOT PROVIDED
31 32
32 my @cmd=removeUnusedOptions(@ARGV); 33 my @cmd=removeUnusedOptions(@ARGV);
33 34
34 # RUN COMMAND 35 # RUN COMMAND
35 # NOTE: FIRST ARG EXPECTED TO BE EXECUTABLE
36 my $stderr; 36 my $stderr;
37 eval { $stderr=`@cmd 2>&1`; }; 37 eval { $stderr=`runAssembly @cmd 2>&1`; };
38 if ( $@ ) { 38 if ( $@ ) {
39 print STDERR "Newbler ERROR: $stderr\n"; 39 print STDERR "Newbler ERROR: $stderr\n";
40 `cat $outdir/assembly/454NewblerProgress.txt 1>&2`; 40 `cat $outdir/assembly/454NewblerProgress.txt 1>&2`;
41 die($@); 41 die($@);
42 } 42 }
54 get_outfile("$outdir/454PairAlign.txt", $pair_align); 54 get_outfile("$outdir/454PairAlign.txt", $pair_align);
55 get_outfile("$outdir/454PairStatus.txt", $pair_status); 55 get_outfile("$outdir/454PairStatus.txt", $pair_status);
56 get_outfile("$outdir/454Scaffolds.fna", $scaffolds_fasta); 56 get_outfile("$outdir/454Scaffolds.fna", $scaffolds_fasta);
57 get_outfile("$outdir/454Scaffolds.qual", $scaffolds_qual); 57 get_outfile("$outdir/454Scaffolds.qual", $scaffolds_qual);
58 get_outfile("$outdir/454Scaffolds.txt", $scaffolds_agp); 58 get_outfile("$outdir/454Scaffolds.txt", $scaffolds_agp);
59 get_outfile("$outdir/454ContigScaffolds.txt", $contig_scaffolds_agp);
59 get_outfile("$outdir/454TagPairAlign.txt", $tag_pair_align); 60 get_outfile("$outdir/454TagPairAlign.txt", $tag_pair_align);
60 get_outfile("$outdir/454TrimStatus.txt", $trim_status); 61 get_outfile("$outdir/454TrimStatus.txt", $trim_status);
61 get_outfile("$outdir/454LargeContigs.fna", $large_contigs_fasta); 62 get_outfile("$outdir/454LargeContigs.fna", $large_contigs_fasta);
62 get_outfile("$outdir/454LargeContigs.qual", $large_contigs_qual); 63 get_outfile("$outdir/454LargeContigs.qual", $large_contigs_qual);
63 exit; 64 exit;