Skip to content

Commit

Permalink
Merge pull request #101 from broadinstitute/dpark-dev
Browse files Browse the repository at this point in the history
pipes: re-enable a possibility of creating merged raw bams if requested
  • Loading branch information
dpark01 committed Feb 26, 2015
2 parents 1a920b7 + d518751 commit 0a047fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipes/rules/hs_deplete.rules
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ def merge_one_per_sample_inputs(wildcards):
for lane in read_tab_file(flowcell):
for well in read_tab_file(lane['barcode_file']):
if well['sample'] == wildcards.sample:
runs.add(os.path.join(config["dataDir"], config["subdirs"]["depletion"],
if wildcards.adjective=='raw':
runs.add(os.path.join(config["dataDir"], config["subdirs"]["source"],
get_run_id(well) +'.'+ lane['flowcell'] +'.'+ lane['lane'] + '.bam'))
else:
runs.add(os.path.join(config["dataDir"], config["subdirs"]["depletion"],
get_run_id(well) +'.'+ lane['flowcell'] +'.'+ lane['lane'] +'.'+ wildcards.adjective + '.bam'))
return sorted(runs)
rule merge_one_per_sample:
Expand Down

0 comments on commit 0a047fe

Please sign in to comment.