From 6a9ebfb6d8f770b1bd6af7a9b91abdec0db26782 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Sat, 6 Sep 2014 00:07:52 +0000 Subject: [PATCH] in progress --- forester/ruby/scripts/clean_fasta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forester/ruby/scripts/clean_fasta.rb b/forester/ruby/scripts/clean_fasta.rb index 2530746..1a1705b 100644 --- a/forester/ruby/scripts/clean_fasta.rb +++ b/forester/ruby/scripts/clean_fasta.rb @@ -6,7 +6,7 @@ File.open(infile, 'r') do |f| while line = f.gets if line =~ /(>.+)~.+/ line = $1 - elsif line =~ /(>.+)|NAME=.+/ + elsif line =~ /(>.+)\|NAME=.+/ line = $1 end puts line -- 1.7.10.2