Skip to content

Commit

Permalink
configuration section annotated
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Jan 21, 2020
1 parent f930bea commit 041188a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion default_protocol/pipelines/bin_to_fastq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ if config.get("output_path"):
else:
config["output_path"] = "binned"

# bin.smk requires `sample_name` and `barcodes` to be set
# bin.smk requires `samples` to be set in the format
# samples="{sample1:[BC01],sample2:[BC02,BC03]}"
# if one sample is given: samples="{sample1:[BC01]}", will run binlorry for this one sample
# but can do this for all samples too if given in this format.

samples = {}
barcode_string = ''
Expand All @@ -38,6 +41,8 @@ if config.get("samples"):
barcode_string = ' '.join(barcodes)
for barcode in barcodes:
samples[barcode] = [barcode]
else:
raise ValueError("Please provide a barcodes.csv or run_configuration.json")


##### Target rules #####
Expand Down

0 comments on commit 041188a

Please sign in to comment.