]> git.donarmstrong.com Git - biopieces.git/commitdiff
added length check to bowtie_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 2 Nov 2011 09:47:17 +0000 (09:47 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 2 Nov 2011 09:47:17 +0000 (09:47 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1611 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/bowtie_seq

index 57b673117c427524b8df7b8ca61aaf3506a9511f..19368f84452db6ffb3def6777d1ac646e64c9d1e 100755 (executable)
@@ -80,7 +80,7 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
     if ( $entry = Maasha::Fastq::biopiece2fastq( $record ) )
     {
         Maasha::Common::error( "Mixed FASTA and FASTQ entries in stream" ) if defined $type and $type ne "FASTQ";
-        Maasha::Common::error( "Sequence longer than 1024 not allowed")    if length( $entry[ SEQ ] ) > 1024;
+        Maasha::Common::error( "Sequence longer than 1024 not allowed")    if length( $entry->[ SEQ ] ) > 1024;
         Maasha::Fastq::put_entry( $entry, $fh_out );
 
         $type = "FASTQ";
@@ -88,7 +88,7 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
     elsif ( $entry = Maasha::Fasta::biopiece2fasta( $record ) )
     {
         Maasha::Common::error( "Mixed FASTA and FASTQ entries in stream" ) if defined $type and $type ne "FASTA";
-        Maasha::Common::error( "Sequence longer than 1024 not allowed")    if length( $entry[ SEQ ] ) > 1024;
+        Maasha::Common::error( "Sequence longer than 1024 not allowed")    if length( $entry->[ SEQ ] ) > 1024;
         Maasha::Fasta::put_entry( $entry, $fh_out );
 
         $type = "FASTA";