diff Snakefile @ 15:3fa68a0d59c5 draft

Uploaded
author chrisw
date Wed, 13 Feb 2019 17:03:56 -0500
parents f2258de365ee
children d2770bc432e1
line wrap: on
line diff
--- a/Snakefile	Wed Feb 13 16:05:41 2019 -0500
+++ b/Snakefile	Wed Feb 13 17:03:56 2019 -0500
@@ -57,13 +57,13 @@
     i = 1
     for f in fastqs:
         newf = '%s/%s_%s_%s_%s_%d.fastq' % (config['temp'], run_acc, study_acc, genome, method, i)
-        run_command(['zcat',f,'>',newf])
+        if 'compressed' in config:
+            run_command(['zcat',f,'>',newf])
+        else:
+            os.symlink(os.path.abspath(f), newf)
         #create fastq 0
         if i == 1:
-            try:
-                os.symlink(os.path.abspath(newf), '%s/%s_%s_%s_%s_%d.fastq' % (config['temp'], run_acc, study_acc, genome, method, 0))
-            except FileExistsError as fee:
-                pass
+            os.symlink(os.path.abspath(newf), '%s/%s_%s_%s_%s_%d.fastq' % (config['temp'], run_acc, study_acc, genome, method, 0))
         i += 1
     #create fastq 2 if not paired
     if i == 2: