Skip to content

Commit

Permalink
Put trim and multiqc rules into one group.
Browse files Browse the repository at this point in the history
This ensures that for remote execution these rules share the same
nodes, which works around missing input declarations for the multiqc
rule.
  • Loading branch information
rekado committed May 27, 2024
1 parent ce32ad5 commit 4fe9cea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snakefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ def trim_reads_input(args):
r2=os.path.join(TRIMMED_READS_DIR, "{sample}.trimmed.R2.fq.gz"),
html=os.path.join(QC_DIR, "{sample}.pe.fastp.html"),
json=os.path.join(QC_DIR, "{sample}.pe.fastp.json") #notice that multiqc recognizes files ending with fast.json
group: "qc"
resources:
mem_mb = config['execution']['rules']['trim_qc_reads_pe']['memory']
log: os.path.join(LOG_DIR, 'trim_reads.{sample}.log')
Expand All @@ -343,6 +344,7 @@ def trim_reads_input(args):
r = os.path.join(TRIMMED_READS_DIR, "{sample}.trimmed.fq.gz"),
html=os.path.join(QC_DIR, "{sample}.se.fastp.html"),
json=os.path.join(QC_DIR, "{sample}.se.fastp.json") #notice that multiqc recognizes files ending with fast.json
group: "qc"
resources:
mem_mb = config['execution']['rules']['trim_qc_reads_se']['memory']
log: os.path.join(LOG_DIR, 'trim_reads.{sample}.log')
Expand Down Expand Up @@ -553,6 +555,7 @@ def hisat2_file_arguments(args):
input:
salmon_output=expand(os.path.join(SALMON_DIR, "{sample}", "quant.sf"), sample = SAMPLES),
mapping_output=expand(os.path.join(MAPPED_READS_DIR, MAPPER, '{sample}_Aligned.sortedByCoord.out.bam'), sample=SAMPLES)
group: "qc"
output: os.path.join(MULTIQC_DIR, 'multiqc_report.html')
resources:
mem_mb = config['execution']['rules']['multiqc']['memory']
Expand Down

0 comments on commit 4fe9cea

Please sign in to comment.