Skip to content

Commit

Permalink
Merge pull request #333 from BD2KGenomics/hotfix/1.2
Browse files Browse the repository at this point in the history
Fix KeyError when samples are untarred (resolves #334)
  • Loading branch information
hannes-ucsc authored Jun 30, 2016
2 parents 13d3657 + aa364e7 commit bf6e531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ def static_dag_launchpoint(job, job_vars):
job_vars: tuple Tuple of dictionaries: input_args and ids
"""
input_args, ids = job_vars
ids['R.fastq'] = None
if 'sample.tar' in ids:
a = job.wrapJobFn(process_sample_tar, job_vars, disk='70G').encapsulate()
else:
Expand All @@ -488,7 +489,6 @@ def process_sample_tar(job, job_vars):
# Unpack variables
input_args, ids = job_vars
work_dir = job.fileStore.getLocalTempDir()
ids['R.fastq'] = None
# I/O
read_from_filestore(job, work_dir, ids, 'sample.tar')
sample_tar = os.path.join(work_dir, 'sample.tar')
Expand Down

0 comments on commit bf6e531

Please sign in to comment.