From 190b533c608a8ef8fc66f842824a1f6503996d20 Mon Sep 17 00:00:00 2001
From: martinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Date: Fri, 8 Jun 2012 09:42:04 +0000
Subject: [PATCH] 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
---
 bp_bin/read_fasta | 2 +-
 bp_bin/read_fastq | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.39.5