shell to run hmmscan
authorcmzmasek <chris.zma@outlook.com>
Tue, 21 Mar 2017 21:36:50 +0000 (14:36 -0700)
committercmzmasek <chris.zma@outlook.com>
Tue, 21 Mar 2017 21:36:50 +0000 (14:36 -0700)
forester/sh/x_hmmscan.sh [new file with mode: 0644]

diff --git a/forester/sh/x_hmmscan.sh b/forester/sh/x_hmmscan.sh
new file mode 100644 (file)
index 0000000..bdd460b
--- /dev/null
@@ -0,0 +1,13 @@
+re="(.+)\.fasta"
+for i in * 
+do
+    if test -f "$i" 
+    then
+        if [[ $i =~ $re ]];
+        then
+            name=${BASH_REMATCH[1]}
+            echo $name
+            /usr/local/bin/hmmscan --max --domtblout ${name}.hmmscan -E 20 --domE 20 --noali ~/DATA/PFAM/PFAM_30/Pfam-A.hmm ${name}.fasta
+       fi
+    fi
+done
\ No newline at end of file