inprogress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Fri, 18 Jan 2013 22:48:33 +0000 (22:48 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Fri, 18 Jan 2013 22:48:33 +0000 (22:48 +0000)
forester/ruby/scripts/x.rb [new file with mode: 0644]

diff --git a/forester/ruby/scripts/x.rb b/forester/ruby/scripts/x.rb
new file mode 100644 (file)
index 0000000..cb70c70
--- /dev/null
@@ -0,0 +1,15 @@
+PRG = "/home/czmasek/SOFTWARE/FORESTER/DEV/forester/forester/ruby/evoruby/exe/hsp.rb"
+Dir.foreach(".") do |f|
+  next if f == '.' or f == '..'
+  if f =~ /^([A-Z0-9]{3,6})\.hmmscan_260/
+    taxon = $1
+    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/  
+    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
\ No newline at end of file