Skip to content

Commit bc53ab9

Browse files
authored
Merge pull request #337 from /issues/336-fix-single-end-logic/1.x
Fix single-end labelling logic (resolves #336)
2 parents bf6e531 + 805f538 commit bc53ab9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -815,10 +815,9 @@ def consolidate_output(job, job_vars, output_ids_and_values):
815815
# I/O
816816
if improper_pair:
817817
uuid = 'IMPROPERLY_PAIRED.{}'.format(uuid)
818-
input_args['uuid'] = uuid
819818
if single_end:
820819
uuid = 'SINGLE-END.{}'.format(uuid)
821-
input_args['uuid'] = uuid
820+
input_args['uuid'] = uuid
822821
out_tar = os.path.join(work_dir, uuid + '.tar.gz')
823822
# Consolidate separate tarballs into one as streams (avoids unnecessary untaring)
824823
with tarfile.open(os.path.join(work_dir, out_tar), 'w:gz') as f_out:
@@ -877,10 +876,7 @@ def upload_to_s3(job, job_vars):
877876
else:
878877
read_from_filestore(job, work_dir, ids, 'uuid.tar.gz')
879878
uuid_tar = os.path.join(work_dir, 'uuid.tar.gz')
880-
if 'R.fastq' in ids:
881-
k.key = os.path.join(bucket_dir, uuid + 'single-end' + '.tar.gz')
882-
else:
883-
k.key = os.path.join(bucket_dir, uuid + '.tar.gz')
879+
k.key = os.path.join(bucket_dir, uuid + '.tar.gz')
884880
k.set_contents_from_filename(uuid_tar)
885881

886882

0 commit comments

Comments
 (0)