Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make sending lab column in rki report csv adjustable via config file #492

Merged
merged 4 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .tests/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ virus-reference-genome:
human-genome-download-path:
- ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/000/001/405/GCA_000001405.28_GRCh38.p13/GCA_000001405.28_GRCh38.p13_genomic.fna.gz

sending_lab_number: 10259

data-handling:
# flag for using the following data-handling structure
# True: data-handling structure is used as shown below
Expand Down
2 changes: 2 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ virus-reference-genome:
human-genome-download-path:
- ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/000/001/405/GCA_000001405.28_GRCh38.p13/GCA_000001405.28_GRCh38.p13_genomic.fna.gz

sending_lab_number: 10259

data-handling:
# flag for using the following data-handling structure
# True: data-handling structure is used as shown below
Expand Down
5 changes: 5 additions & 0 deletions workflow/rules/generate_output.smk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# except according to those terms.


configfile: "config/config.yaml"


rule masking:
input:
bamfile="results/{date}/mapped/ref~{reference}-{sample}/{sample}.bam",
Expand Down Expand Up @@ -107,6 +110,8 @@ rule high_quality_genomes_report:
),
params:
includeflag=get_include_flag_for_date,
sending_lab_number=config["sending_lab_number"],
date_draw=lambda wildcards: wildcards.date,
seq_type=lambda wildcards: get_assemblies_for_submission(
wildcards, "accepted samples technology"
),
Expand Down
4 changes: 2 additions & 2 deletions workflow/scripts/generate-high-quality-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
# Creating csv-table
csv_table = pd.DataFrame(
{
"SENDING_LAB": 10259,
"DATE_DRAW": "",
"SENDING_LAB": snakemake.params.sending_lab_number,
"DATE_DRAW": snakemake.params.date_draw,
"SEQ_TYPE": snakemake.params.seq_type,
"SEQ_REASON": "N",
"SAMPLE_TYPE": "s001",
Expand Down