From: martinahansen Date: Fri, 8 Jun 2012 09:42:04 +0000 (+0000) Subject: fixed raw intput bug in read_fasta and read_fastq X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=190b533c608a8ef8fc66f842824a1f6503996d20;p=biopieces.git fixed raw intput bug in read_fasta and read_fastq git-svn-id: http://biopieces.googlecode.com/svn/trunk@1840 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/read_fasta b/bp_bin/read_fasta index 82a69a2..0508ceb 100755 --- a/bp_bin/read_fasta +++ b/bp_bin/read_fasta @@ -38,7 +38,7 @@ casts << {:long=>'num', :short=>'n', :type=>'uint', :mandatory=>false, :de options = Biopieces.options_parse(ARGV, casts) Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| - unless options[:data_in].first == '-' + unless options[:data_in] and options[:data_in].first == '-' input.each_record do |record| output.puts record end diff --git a/bp_bin/read_fastq b/bp_bin/read_fastq index acc68d6..a1206f5 100755 --- a/bp_bin/read_fastq +++ b/bp_bin/read_fastq @@ -44,7 +44,7 @@ num = 0 last = false Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| - unless options[:data_in].first == '-' + unless options[:data_in] and options[:data_in].first == '-' input.each_record do |record| output.puts record end