# HG changeset patch # User chrisw # Date 1550095436 18000 # Node ID 3fa68a0d59c57533de4c639c94c408a47d28e0f5 # Parent f2258de365eeadc7fed4fac6d82e9b53b6bd42ff Uploaded diff -r f2258de365ee -r 3fa68a0d59c5 Snakefile --- 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: diff -r f2258de365ee -r 3fa68a0d59c5 monorail.xml --- a/monorail.xml Wed Feb 13 16:05:41 2019 -0500 +++ b/monorail.xml Wed Feb 13 17:03:56 2019 -0500 @@ -1,4 +1,5 @@ + samtools star @@ -13,18 +14,22 @@ --config #if str($singlePaired.sPaired) == "paired_collection" inputs="$singlePaired.input.forward,$singlePaired.input.reverse" + #if $singlePaired.input.forward.is_of_type("fastq.gz"): + compressed=1 + #end if #else inputs="$singlePaired.input1" #if str($singlePaired.sPaired) == "paired" inputs="$singlePaired.input1,$singlePaired.input2" #end if + #if $singlePaired.input1.is_of_type("fastq.gz"): + compressed=1 + #end if #end if + ref="$refGenomeSource.GTFconditional.genomeDir.fields.path" + exon_bed="$exons" output="." temp="./tmp" - ref="$refGenomeSource.GTFconditional.genomeDir.fields.path" - genome="ath10" - exon_bed="$exons" - study="SRP182756" ]]> @@ -93,7 +98,6 @@ -