Skip to content

Commit f3fb9cd

Browse files
authored
Merge pull request #414 from /issues/413-fix-single-end-input
Fix single-end submission (resolves #413)
2 parents 7ccfb96 + 93aba89 commit f3fb9cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ def process_sample(job, config, input_tar=None, input_r1=None, input_r2=None, gz
196196
else:
197197
ext = '.fq.gz' if gz else '.fq'
198198
job.fileStore.readGlobalFile(input_r1, os.path.join(work_dir, 'R1' + ext))
199-
job.fileStore.readGlobalFile(input_r2, os.path.join(work_dir, 'R2' + ext))
199+
if config.paired:
200+
job.fileStore.readGlobalFile(input_r2, os.path.join(work_dir, 'R2' + ext))
200201
fastqs = []
201202
for root, subdir, files in os.walk(work_dir):
202203
fastqs.extend([os.path.join(root, x) for x in files])

0 commit comments

Comments
 (0)