Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Aurélien Ginolhac
snakemake-chip-seq
Commits
8c4ebe50
Commit
8c4ebe50
authored
Apr 30, 2020
by
AntonieV
Browse files
some changes in fastqc and multiqc handling
parent
23b3c017
Changes
2
Hide whitespace changes
Inline
Side-by-side
workflow/rules/common.smk
View file @
8c4ebe50
...
...
@@ -51,27 +51,22 @@ def get_individual_fastq(wildcards):
elif wildcards.read == "2":
return units.loc[ (wildcards.sample, wildcards.unit), "fq2" ]
def get_fastqc_list(wildcards):
return multiqc_input
##### FastQC #####
multiqc_input = []
for (sample, unit) in units.index:
reads = [ "1", "2" ]
if is_single_end(sample, unit):
reads = [ "0" ]
multiqc_input.extend(
expand (
[
"results/qc/fastqc/{sample}.{unit}.{reads}.fq_fastqc.zip",
"results/qc/fastqc/{sample}.{unit}.{reads}.fq.html",
],
sample = sample,
unit = unit,
reads = reads
def get_multiqc_input(wildcards):
multiqc_input = []
for (sample, unit) in units.index:
reads = [ "1", "2" ]
if is_single_end(sample, unit):
reads = [ "0" ]
multiqc_input.extend(
expand (
[
"results/qc/fastqc/{sample}.{unit}.{reads}_fastqc.zip",
"results/qc/fastqc/{sample}.{unit}.{reads}.html"
],
sample = sample,
unit = unit,
reads = reads
)
)
)
return multiqc_input
workflow/rules/qc.smk
View file @
8c4ebe50
...
...
@@ -2,8 +2,8 @@ rule fastqc:
input:
get_individual_fastq
output:
html="results/qc/fastqc/{sample}.{unit}.{read}.
fq.
html",
zip="results/qc/fastqc/{sample}.{unit}.{read}
.fq
_fastqc.zip"
html="results/qc/fastqc/{sample}.{unit}.{read}.html",
zip="results/qc/fastqc/{sample}.{unit}.{read}_fastqc.zip"
log:
"logs/fastqc/{sample}.{unit}.{read}.log"
wrapper:
...
...
@@ -11,7 +11,7 @@ rule fastqc:
rule multiqc:
input:
get_
fastqc_lis
t
get_
multiqc_inpu
t
output:
"results/qc/multiqc/multiqc.html"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment