git://source.jalview.org
/
jalview.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2530746c9f03b81ce9226b5ae9d0d89ee337a9cd
[jalview.git]
/
forester
/
ruby
/
scripts
/
clean_fasta.rb
1
require 'fileutils'
2
3
infile = ARGV[ 0 ]
4
5
File.open(infile, 'r') do |f|
6
while line = f.gets
7
if line =~ /(>.+)~.+/
8
line = $1
9
elsif line =~ /(>.+)|NAME=.+/
10
line = $1
11
end
12
puts line
13
end
14
end
15
16
17