git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
domain + go output work begins
[jalview.git]
/
forester
/
ruby
/
scripts
/
clean_fasta.rb
diff --git
a/forester/ruby/scripts/clean_fasta.rb
b/forester/ruby/scripts/clean_fasta.rb
index
6e008d4
..
1a1705b
100644
(file)
--- a/
forester/ruby/scripts/clean_fasta.rb
+++ b/
forester/ruby/scripts/clean_fasta.rb
@@
-6,10
+6,10
@@
File.open(infile, 'r') do |f|
while line = f.gets
if line =~ /(>.+)~.+/
line = $1
while line = f.gets
if line =~ /(>.+)~.+/
line = $1
- elsif line =~ /(>.+)|NAME=.+/
+ elsif line =~ /(>.+)\|NAME=.+/
line = $1
end
line = $1
end
- puts s
+ puts line
end
end
end
end