generated from snakemake-workflows/snakemake-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Snakefile
42 lines (34 loc) · 1.68 KB
/
Snakefile
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
import glob
import os
import pandas as pd
configfile: "config.yaml"
list_of_samples = pd.read_table(config["samplesheet"])
samples = list(list_of_samples.Samples.unique())
include: "rules/download_samples_or_copy.smk"
include: "rules/kraken2_mapping.smk"
include: "rules/cellranger.smk"
include: "rules/kraken_processing.smk"
include: "rules/extract_bam.smk"
include: "rules/extract_tags.smk"
include: "rules/report.smk"
localrules: download_samples_or_copy
rule all:
input:
expand("data/{sample}/{sample}_S1_L001_R1_001.fastq.gz", sample=samples),
expand("data/{sample}/{sample}_S1_L001_R2_001.fastq.gz", sample=samples),
expand("results/kraken2/{sample}.kraken",sample=samples),
expand("results/kraken2/{sample}.report.txt",sample=samples),
expand("results/cellranger/{sample}/{sample}/",sample=samples),
expand("results/kraken_reads/{sample}_kraken_reads.sam", sample=samples),
expand("results/cellranger/{sample}/possorted_genome_bam.bam", sample=samples),
expand("results/cellranger/{sample}/unmapped_reads.sam", sample=samples),
expand("results/count_matrix/{sample}/count_matrix.tsv", sample=samples),
expand("results/count_matrix/{sample}/kraken_reads_count_matrix.tsv",sample=samples),
"results/kraken_plots/Familywise_tax_readcounts.tsv",
"results/kraken_plots/Specieswise_tax_readcounts.tsv",
"results/kraken_plots/Clustermap_Familywise_log10.png",
"results/kraken_plots/Clustermap_Specieswise_log10.png"
onsuccess:
print("sc-VirusScan Pipeline finished successfully!")
onerror:
print("sc-VirusScan Pipeline has failed!")