-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile
28 lines (24 loc) · 947 Bytes
/
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
import pandas as pd
import os.path
import subprocess
#### input configuration ####
configfile: "/group/zhougrp2/dguan/ChickenSV/Pipeline/config.yaml"
genome = config["genome"]
gtf = config["gtf"]
chr = list(range(1, 39)) + ["Z", "W", "MT"]
sample_tab=pd.read_csv(config["sample_tab"], header=0, sep = "\t")
sample=sample_tab["SampleID"].drop_duplicates().to_list()
### Create temporary directory
subprocess.run(['mkdir', '-p', 'Temp'])
rule all:
input:
#expand('08_bqsr_bam/{sample}_bqsr.bam', sample=sample),
expand('07_dedup_bam/{sample}.dedup.bam', sample=sample),
expand('05_aligned_reads/{sample}.unaligned.bam', sample=sample),
expand("11_called_vcfs/chr{chr}.vcf.gz", chr = chr)
include: "Rules/buid_idx.smk"
include: "Rules/reads_preprocess.smk"
if config["caller"] == "gatk":
include: "Rules/gatk_call.smk"
elif config["caller"] == "deepvariant":
include: "Rules/deepvariant_call.smk"