]> git.donarmstrong.com Git - biopieces.git/commitdiff
added verbose stuff to format_genome
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 23 Jul 2009 11:42:25 +0000 (11:42 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 23 Jul 2009 11:42:25 +0000 (11:42 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@582 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/format_genome

index 9fbdcb859d7e1f93be37fd1ca9a6a5aff2b9b026..9972bf547f20038b4862898c650923c39a7b8a1a 100755 (executable)
@@ -109,12 +109,16 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
 
 foreach $format ( @{ $options->{ 'formats' } } )
 {
+    print STDERR qq(Creating format: $format for $genome ... ) if $options->{ 'verbose' };
+
     if    ( $format =~ /^fasta$/i )     { Maasha::Fasta::fasta_index( "$fasta_dir/$genome.fna", "$dir/genomes/$genome/fasta/$genome.index" ) }
     elsif ( $format =~ /^blast$/i )     { Maasha::NCBI::blast_index( "$genome.fna", $fasta_dir, "$dir/genomes/$genome/blast", "dna", $genome ) }
     elsif ( $format =~ /^blat$/i )      { warn "BLAT FORMAT NOT IMPLEMENTED" }
     elsif ( $format =~ /^vmatch$/i )    { Maasha::Match::vmatch_index( "$genome.fna", $fasta_dir, "$dir/genomes/$genome/vmatch", $tmp_dir ) }
     elsif ( $format =~ /^bowtie$/i )    { bowtie_index( "$fasta_dir/$genome.fna", "$dir/genomes/$genome/bowtie", $genome, $options->{ 'verbose' } ) }
     elsif ( $format =~ /^phastcons$/i ) { Maasha::UCSC::phastcons_index( "$genome.pp", $phastcons_dir ) }
+
+    print STDERR qq(done.\n) if $options->{ 'verbose' };
 }
 
 close $fh_out if $fh_out;