-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile_preprocessing
46 lines (39 loc) · 1.13 KB
/
Snakefile_preprocessing
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
import os
import re
import pandas as pd
import itertools as iter
from snakemake.utils import validate, min_version
min_version("5.4.5")
ADAPTERS=config["adapter"]
INDEXPATH=config["genomeindexpath"]
CODONS=config["alternativestartcodons"]
TISHMODE=config["tishmode"]
onstart:
if not os.path.exists("logs"):
os.makedirs("logs")
samples = pd.read_csv(config["samples"], dtype=str, sep="\t").set_index(["method", "condition", "replicate"], drop=False)
samples.index = samples.index.set_levels([i.astype(str) for i in samples.index.levels])
validate(samples, schema="schemas/samples.schema.yaml")
rule all:
input:
"qc/multi/multiqc_report.html",
onsuccess:
print("Done, no error")
#Preprocessing
include: "rules/preprocessing.smk"
#Adaper removal and quality control
include: "rules/trimming.smk"
#removal of reads mapping to ribosomal rna genes
include: "rules/rrnafiltering.smk"
#mapping
include: "rules/mapping.smk"
#maplink
include: "rules/maplink.smk"
include: "rules/maplinktis.smk"
#coverage
include: "rules/coverage.smk"
#auxillary
include: "rules/auxiliary.smk"
#indexing
include: "rules/indexing.smk"
include: "rules/qc.smk"