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: add additional primer file for ont #589

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 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
3 changes: 2 additions & 1 deletion .tests/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ preprocessing:
# for more information
artic-primer-version: 3
# path to amplicon primers in bedpe format for hard-clipping on paired end files (illumina)
amplicon-primers: "resources/nCoV-2019.primer.bed"
amplicon-primers:
illumina: "resources/nCoV-2019.primer.bed"
# GenBank accession of reference sequence of the amplicon primers
amplicon-reference: "MN908947"

Expand Down
4 changes: 3 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ preprocessing:
# for more information
artic-primer-version: 3
# path to amplicon primers in bed format for hard-clipping on paired end files (illumina) or url to file that should be downloaded
amplicon-primers: "resources/nCoV-2019.primer.bed"
amplicon-primers:
ont: "resources/nCoV-2019.primer.bed"
illumina: "resources/nCoV-2019.primer.bed"
# GenBank accession of reference sequence of the amplicon primers
amplicon-reference: "MN908947"

Expand Down
4 changes: 2 additions & 2 deletions workflow/rules/long_read.smk
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ rule nanofilt:

rule downsample_and_trim_raw:
input:
primer=config["preprocessing"]["amplicon-primers"],
primer=config["preprocessing"]["amplicon-primers"]["ont"],
alethomas marked this conversation as resolved.
Show resolved Hide resolved
reads="results/{date}/filtered/nanofilt/{sample}.fastq",
ref_genome="resources/genomes/main.fasta",
output:
Expand Down Expand Up @@ -121,7 +121,7 @@ rule canu_correct:

rule clip_adbc_corrected:
input:
primer=config["preprocessing"]["amplicon-primers"],
primer=config["preprocessing"]["amplicon-primers"]["ont"],
alethomas marked this conversation as resolved.
Show resolved Hide resolved
reads="results/{date}/corrected/{sample}/{sample}.correctedReads.fasta",
ref_genome="resources/genomes/main.fasta",
output:
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/read_clipping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rule samtools_sort:

rule bed_to_bedpe:
input:
check_bed_for_URL(config["preprocessing"]["amplicon-primers"]),
check_bed_for_URL(config["preprocessing"]["amplicon-primers"]["illumina"]),
alethomas marked this conversation as resolved.
Show resolved Hide resolved
output:
"resources/primer.bedpe",
log:
Expand Down
10 changes: 8 additions & 2 deletions workflow/schemas/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ properties:
type: integer
description: only for Oxford Nanopore data. ARTIC primer version to clip from reads
amplicon-primers:
type: string
description: path to amplicon primers in bedpe format for hard-clipping on paired end files (illumina)
type: object
properties:
ont:
type: string
description: path to amplicon primers in bed format for hard-clipping on single end files (Oxford Nanopore)
illumina:
type: string
description: path to amplicon primers in bed format for hard-clipping on paired end files (Illumina)
amplicon-reference:
type: string
description: GenBank accession of reference sequence of the amplicon primers
Expand Down