Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChIP-seq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGR-lab
ChIP-seq
Commits
144f827c
Commit
144f827c
authored
4 years ago
by
Laura Cook
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
911c1bbf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+34
-10
34 additions, 10 deletions
README.md
Snakefile
+15
-8
15 additions, 8 deletions
Snakefile
envs/align.yaml
+0
-1
0 additions, 1 deletion
envs/align.yaml
envs/qc.yaml
+1
-0
1 addition, 0 deletions
envs/qc.yaml
with
50 additions
and
19 deletions
README.md
+
34
−
10
View file @
144f827c
...
...
@@ -171,38 +171,62 @@ chip/
### 1. FastQC on raw reads
`fastqc`
```
fastqc
```
### 2. Alignment
`bowtie2`
```
bowtie2-build
```
### 3. Filtering
`SAMtools`
```
SAMtools sort
SAMtools view
`picard`
picard MarkDuplicates
```
### 4. Alignment QC & Library Complexity
`SAMtools`
```
SAMtool
`
picard
`
picard
`preseq`
preseq
```
### 5. deepTools
`deepTools`
```
deepTools
```
### 7. phantomPeakQuals
`spp`
```
spp
```
### 8. Call narrow peaks (MACS2)
`macs2 callpeaks`
```
macs2 callpeaks
```
### 9. Create consensus peaksets
### 10. Annotate peaks relative to gene features (HOMER)
### 11. Present QC for raw read, alignment, peak-calling in MultiQC
### 12. Plot DAG
```
snakemake --dag | dot -Tsvg > dag.svg
```
This diff is collapsed.
Click to expand it.
Snakefile
+
15
−
8
View file @
144f827c
...
...
@@ -41,7 +41,6 @@ CASE_BAM = expand("results/bowtie2/{sample}.sorted.bam", sample=CASES)
ALL_SAMPLES = CASES + CONTROLS_UNIQUE
ALL_BAM = CONTROL_BAM + CASE_BAM
ALL_FASTQ = expand("results/fastqc/{sample}.fastq", sample = ALL_SAMPLES)
ALL_FASTQC = expand("results/fastqc/{sample}_fastqc.zip", sample = ALL_SAMPLES)
ALL_INDEX = expand("results/bowtie2/{sample}_PPq20.sorted.dedup.bai", sample = ALL_SAMPLES)
ALL_LIBCOMPLEXITY = expand("logs/{sample}.ccurve.txt", sample = ALL_SAMPLES)
...
...
@@ -54,7 +53,7 @@ ALL_PHANTOM1 = expand("results/phantomPeaks/{sample}.spp.png", sample = CASES)
ALL_PHANTOM2 = expand("results/phantomPeaks/{sample}.spp.Rdata", sample = CASES)
ALL_PHANTOM3 = expand("results/phantomPeaks/{sample}.spp.out", sample = CASES)
ALL_BIGWIG = expand("results/deepTools/{sample}.SeqDepthNorm.bw", sample = ALL_SAMPLES)
ALL_QC = ["multi
QC
/multiQC_log.html"]
ALL_QC = ["
results/
multi
qc
/multiQC_log.html"]
ALL_PEAKSxls = expand("results/macs2/{case}_vs_{control}_macs2_peaks.xls", zip, case=CASES, control=CONTROLS)
ALL_PEAKSbed = expand("results/macs2/{case}_vs_{control}_macs2_summits.bed", zip, case=CASES, control=CONTROLS)
ALL_PEAKSpeak = expand("results/macs2/{case}_vs_{control}_macs2_peaks.narrowPeak", zip, case=CASES, control=CONTROLS)
...
...
@@ -65,7 +64,7 @@ ALL_PEAKSpeak = expand("results/macs2/{case}_vs_{control}_macs2_peaks.narrowPeak
localrules: all
rule all:
input: ALL_FASTQC + ALL_BAM + ALL_INDEX + ALL_
PHATOM + ALL_PEAKS + ALL_BIGWIG + ALL_inputSubtract_BIGWIG + ALL_FASTQ + ALL_FLAGSTAT + ALL_QC + ALL_SUPER
input: ALL_FASTQC + ALL_BAM + ALL_INDEX + ALL_
LIBCOMPLEXITY + ALL_PICARDMETRIC + ALL_FINGERPRINT1 + ALL_FINGERPRINT2 + ALL_FINGERPRINT3 + ALL_FLAGSTAT + ALL_PHANTOM1 + ALL_PHANTOM2 + ALL_PHANTOM3 + ALL_BIGWIG + ALL_QC + ALL_PEAKSxls + ALL_PEAKSbed + ALL_PEAKSpeak
# ===============================================================================================
# 1. FASTQC
...
...
@@ -340,7 +339,7 @@ rule phantomPeakQuals:
log:
"logs/{sample}.phantomPeak"
shell:
"Rscript run_spp.R -c={input} -savp={output.savp} -savd={output.savd} -out={output.out} &> {log}"
"Rscript
scripts/
run_spp.R -c={input} -savp={output.savp} -savd={output.savd} -out={output.out} &> {log}"
# ===============================================================================================
# 8. Call peaks (MACS2)
...
...
@@ -395,10 +394,10 @@ rule multiqc:
expand("results/phantomPeaks/{sample}.spp.Rdata", sample = CASES),
expand("results/phantomPeaks/{sample}.spp.out", sample = CASES),
# macs2
expand("
analysi
s/macs2/{case}_vs_{control}_model.r", zip, case=CASES, control=CONTROLS),
expand("
analysi
s/macs2/{case}_vs_{control}_macs2_peaks.narrowPeak", zip, case=CASES, control=CONTROLS),
expand("
analysi
s/macs2/{case}_vs_{control}_macs2_peaks.xls", zip, case=CASES, control=CONTROLS),
expand("
analysi
s/macs2/{case}_vs_{control}_macs2_summits.bed", zip, case=CASES, control=CONTROLS)
expand("
result
s/macs2/{case}_vs_{control}_model.r", zip, case=CASES, control=CONTROLS),
expand("
result
s/macs2/{case}_vs_{control}_macs2_peaks.narrowPeak", zip, case=CASES, control=CONTROLS),
expand("
result
s/macs2/{case}_vs_{control}_macs2_peaks.xls", zip, case=CASES, control=CONTROLS),
expand("
result
s/macs2/{case}_vs_{control}_macs2_summits.bed", zip, case=CASES, control=CONTROLS)
params:
"results/fastqc/",
"results/bowtie2/",
...
...
@@ -428,5 +427,13 @@ rule multiqc:
-o results/multiqc/ \
-n multiqc_report.html"
rule plot_quals:
input:
"calls/all.vcf"
output:
"plots/quals.svg"
script:
"scripts/plot-quals.py"
#Results generated by MultiQC collate pipeline QC from FastQC, TrimGalore, samtools flagstat, samtools idxstats, samtools stats,
#picard CollectMultipleMetrics, picard MarkDuplicates, Preseq, deepTools plotProfile, deepTools plotFingerprint, phantompeakqualtools
This diff is collapsed.
Click to expand it.
envs/align.yaml
+
0
−
1
View file @
144f827c
channels
:
-
bioconda
-
conda-forge
dependencies
:
-
bowtie2=2.3.4.3
-
samtools=1.10-2
...
...
This diff is collapsed.
Click to expand it.
envs/qc.yaml
+
1
−
0
View file @
144f827c
channels
:
-
bioconda
-
conda-forge
dependencies
:
-
fastqc=0.11.8
-
samtools=1.10-2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment