X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=bp_bin%2Fbowtie_seq;h=19368f84452db6ffb3def6777d1ac646e64c9d1e;hb=847dcea71d11154d6636abc7257d2ff1af83bcde;hp=cd0aeb2eddc5790a7e4dadca38476e06878115c3;hpb=097fec274cd08ef7f8cdaeca19163a638ae00a11;p=biopieces.git diff --git a/bp_bin/bowtie_seq b/bp_bin/bowtie_seq index cd0aeb2..19368f8 100755 --- a/bp_bin/bowtie_seq +++ b/bp_bin/bowtie_seq @@ -35,6 +35,11 @@ use Maasha::Fastq; use Maasha::Fasta; use Maasha::Calc; +use constant { + SEQ_NAME => 0, + SEQ => 1, + SCORES => 2, +}; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @@ -75,6 +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::Fastq::put_entry( $entry, $fh_out ); $type = "FASTQ"; @@ -82,6 +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::Fasta::put_entry( $entry, $fh_out ); $type = "FASTA"; @@ -96,7 +103,7 @@ push @args, "-n $options->{ 'mismatches' }"; push @args, "-v $options->{ 'mismatches' }"; # DANGER: using seed mismatches as alignment mismatches - may work, may not! push @args, "-f" if $type eq "FASTA"; push @args, "-p $options->{ 'cpus' }"; -push @args, "--phred64-quals"; +push @args, "--phred64-quals" unless $type eq "FASTA"; if ( defined $options->{ 'max_hits' } ) { push @args, "-k $options->{ 'max_hits' }";