--- /dev/null
+#!/usr/local/bin/ruby -w
+
+infile = ARGV[ 0 ]
+
+File.open( infile ) do | file |
+ while line = file.gets
+ if line =~ /^>>(.+)/
+ puts ">" + $1
+ elsif line =~ /^([A-Z]+)/
+ puts $1
+ end
+ end
+end
cmd = "#{PRG} -ie=10 -a -pe=1 -m=RRMa -s=#{taxon} #{taxon}.hmmscan_260 #{taxon}_ie10_domain_table > #{taxon}_ie10_summary_table.txt"
puts cmd
output = IO.popen( cmd )
- elsif f =~ /^([A-Z0-9]{3,6})_cdhit090\.hmmscan_260/
+ elsif f =~ /^([A-Z0-9]{3,6})_cdhit090\.hmmscan_260/
taxon = $1
cmd = "#{PRG} -ie=10 -a -pe=1 -m=RRMa -s=#{taxon} #{taxon}_cdhit090.hmmscan_260 #{taxon}_cdhit090_ie10_domain_table > #{taxon}_cdhit090_ie10_summary_table.txt"
puts cmd
output = IO.popen( cmd )
- end
+ end
end
\ No newline at end of file