-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnATACseq_cellRanger.smk
53 lines (45 loc) · 1.96 KB
/
snATACseq_cellRanger.smk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -------------------------------------------------------------------------------------
#
#
# Script for processing snATAC-seq FASTQ files with Cell Ranger (10X)
#
#
# -------------------------------------------------------------------------------------
# --------- SET SMK PARAMS ----------
configfile: "../config/config.yaml"
# ------------- RULES ---------------
rule CR_cnt_ATAC:
# Diminishing returns > 128Gs
output: "../results/snATACseq_CR-atac_1.2.0/{SAMPLE}.stamp" # Need .stamp and touch {output} in shell command as both SM and CR want to mkdir
params: FASTQ_DIR=config["FASTQ_DIR"],
REFERENCE=config["REFERENCE_ATAC"]
log: "../results/logs/{SAMPLE}.log"
shell:
"""
cellranger-atac count --id={wildcards.SAMPLE} \
--fastqs={params.FASTQ_DIR} \
--sample={wildcards.SAMPLE} \
--reference={params.REFERENCE} \
--localcores=32 \
--localmem=128 2> {log}
touch {output}
"""
rule CR_aggr_ATAC:
# Diminishing returns > 128Gs
# input: expand("../results/snATACseq_CR-atac_1.2.0/{SAMPLE}.stamp", SAMPLE=config["SAMPLES_ATAC"])
output: "../results/snATACseq_CR-atac_1.2.0/{SAMPLE_AGGR}.aggr" # Need .stamp and touch {output} in shell command as both SM and CR want to mkdir
params: FASTQ_DIR=config["FASTQ_DIR"],
REFERENCE=config["REFERENCE_ATAC"]
log: "../results/logs/{SAMPLE_AGGR}.log"
shell:
"""
cellranger-atac aggr --id={wildcards.SAMPLE_AGGR} \
--csv=../resources/sheets/snATACseq_pfc_aggr.csv \
--normalize=none \
--reference={params.REFERENCE} \
--localcores=32 \
--localmem=128 2> {log}
touch {output}
"""
# -------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------