diff fasta_extract.py @ 5:24769b1ca957 draft

Uploaded
author greg
date Sun, 10 Jan 2016 14:15:26 -0500
parents 99c868b492bb
children 4f6eba6beef5
line wrap: on
line diff
--- a/fasta_extract.py	Sun Jan 10 14:01:04 2016 -0500
+++ b/fasta_extract.py	Sun Jan 10 14:15:26 2016 -0500
@@ -22,7 +22,9 @@
         format = 'gff'
     else:
         format = 'fasta'
-    return os.path.join('output_dir', 'fasta_extract-%s_on_data_%d.%s' % (attrs, hid, format))
+    if orphan:
+        return os.path.join('output_orphan_dir', '%s_on_data_%d.%s' % (attrs, hid, format))
+    return os.path.join('output_dir', '%s_on_data_%d.%s' % (attrs, hid, format))
 
 
 def stop_err(msg):