Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chouaref
Snakemake_ATAC_2020
Commits
5fdddbc3
Commit
5fdddbc3
authored
Dec 08, 2020
by
WJH58
Browse files
change macs3 to macs2
parent
b337f46f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ATAC-seq_pipeline/envs/macs2.yaml
View file @
5fdddbc3
...
...
@@ -4,4 +4,4 @@ channels:
-
r
-
defaults
dependencies
:
-
macs
3=3.0.0a4
-
macs
2=2.2.7.1
ATAC-seq_pipeline/snakefile
View file @
5fdddbc3
...
...
@@ -54,7 +54,7 @@ SORTED_INDEXED = expand(WORKING_DIR + "index/{samples}.sorted.bam.bai", samples
GENOME_INFO = expand(WORKING_DIR + "genome_info/{samples}.genome.info", samples = SAMPLES),
GAPPED_PEAK = expand(RESULT_DIR + "peaks/{samples}_peaks.gappedPeak", samples = SAMPLES),
NAME_LOG = expand(RESULT_DIR + "peaks/{samples}.log", samples = SAMPLES),
NARROWPEAK = expand(RESULT_DIR + "macs
3
/{samples}_peaks.narrowPeak", samples = SAMPLES)
NARROWPEAK = expand(RESULT_DIR + "macs
2
/{samples}_peaks.narrowPeak", samples = SAMPLES)
rule all:
input:
...
...
@@ -254,19 +254,19 @@ rule call_narrow_peaks:
input:
map_sorted = WORKING_DIR + "sort/{samples}.sorted.bam"
output:
narrowPeak = RESULT_DIR + "macs
3
/{samples}_peaks.narrowPeak"
narrowPeak = RESULT_DIR + "macs
2
/{samples}_peaks.narrowPeak"
params:
name = "{samples}",
format = str(config['macs2']['format']),
genomesize = str(config['macs2']['genomesize']),
outdir = str(config['macs2']['outdir'])
log:
RESULT_DIR + "logs/macs
3
/{samples}_peaks.narrowPeak.log"
RESULT_DIR + "logs/macs
2
/{samples}_peaks.narrowPeak.log"
conda:
"envs/macs2.yaml"
shell:
"""
macs
3
callpeak -t {input} {params.format} {params.genomesize} --name {params.name} --nomodel --bdg -q 0.05 --outdir {params.outdir}/ 2>{log}
macs
2
callpeak -t {input} {params.format} {params.genomesize} --name {params.name} --nomodel --bdg -q 0.05 --outdir {params.outdir}/ 2>{log}
"""
#bdg: create bedgraph output files
#format=BAMPE: only use properly-paired read alignments
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