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: qc rules #16

Merged
merged 35 commits into from
Jun 5, 2024
Merged

feat: qc rules #16

merged 35 commits into from
Jun 5, 2024

Conversation

yeising
Copy link
Collaborator

@yeising yeising commented Apr 24, 2024

Added NanoPlot and Qualimap rules.

@yeising yeising requested a review from cmeesters April 24, 2024 11:50
workflow/Snakefile Outdated Show resolved Hide resolved
workflow/envs/env.yml Outdated Show resolved Hide resolved
shell:
"cat {input.samples} {input.mapping} >> QC-report.txt"
"tar zcvf {input}.tar.gz {input} 2> {log}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this read tar zcvf {ouput} {input}? Also, &> {log} because there is no output stream (stdout and stderr) for which we do not want to gather in our log, right?

@yeising yeising changed the title Feat: qc rules feat: qc rules May 8, 2024
@cmeesters cmeesters marked this pull request as ready for review June 4, 2024 15:53
Copy link
Collaborator

@cmeesters cmeesters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

essentially ready, only minor changes, before moving on.

@@ -17,6 +17,8 @@ repo: "/~https://github.com/snakemake-workflows/transriptome-differential-expressi
transcriptome: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_917627325.4_PGI_CHIRRI_v4_genomic.fa"
# Annotation GFF/GTF (absolute path)
annotation: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_917627325.4_PGI_CHIRRI_v4_genomic.gff"
#gtf is needed by qualimap
gtf: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_917627325.4_PGI_CHIRRI_v4_genomic.gtf"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please set a TODO-comment stating that we ought to evaluate just using the gtf version then: Basically both gff and gtf contain the same information and we should not require both, if one is sufficient.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an artifact from previous versions which is only present in the /.test/config-simple/config.yml. Qualimap has since been removed from the workflow as running it with our .gtf file only returns warnings.

@@ -19,6 +19,9 @@ transcriptome: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_9176273
annotation: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_917627325.4_PGI_CHIRRI_v4_genomic.gff"
# these samples ought to contain all samples comprising of the

#NanoPlot QC with sequencing summary. leave as None for QC with .fastq files
summary: None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implicates the split between summary and non-summary evaluation. However, did we not want to have both, eventually?

@@ -3,6 +3,13 @@ from os import path
from collections import OrderedDict
import sys

<<<<<<< HEAD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like an unresolved merge conflict (also see the lines below)

log:
"logs/NanoPlot/{sample}.log",
resources:
## max of 39 for our SLURM partition
cpus_per_task= min(8,39) #problem with max(len(input.fastq),39)
cpus_per_task=min(8, 39), #problem with max(len(input.fastq),39)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cpus_per_task=min(len(input.fastq), config["max_cpus_in_default_partition/PC/
Server"])

vielleicht den Parameter anders nennen? ;-)

@@ -19,6 +19,9 @@ transcriptome: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_9176273
annotation: "/lustre/miifs01/project/m2_zdvhpc/transcriptome_data/GCA_917627325.4_PGI_CHIRRI_v4_genomic.gff"
# these samples ought to contain all samples comprising of the

# OPTIONAL; NanoPlot QC with summary from sequencer. leave as "None" for regular QC with .fastq files
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: NanoPlot QC summary using a summary file from the sequencer. If this file is not supplied, put the parameter to "None". It will then to an independent QC run per FASTQ input.



if config["summary"] == "None":

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no empty line after if statement

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linting with snakefmt adds empty lines.

"tar zcvf {output} {input} 2> {log}"

else:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no empty line here

"NanoPlot -t {resources.cpus_per_task} --tsv_stats -f svg "
"--fastq {input} -o {output} 2> {log}"

rule compress_nplot:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be a local rule, shouldn't it?

@cmeesters cmeesters merged commit 3237e2c into main Jun 5, 2024
2 of 5 checks passed
@cmeesters cmeesters mentioned this pull request Jun 20, 2024
This was referenced Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants