-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
38 lines (31 loc) · 1.81 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
wildcard_constraints:
_pass = r'permutations|conditionals|nominals',
chunk = r'\d+',
MAF = r'\d+',
tissue = r'WGS|Epididymis_head|Vas_deferens|Testis',
expression = r'WGS|Epididymis_head|Vas_deferens|Testis',
coverage = r'\w+'
config['tissues'] = list(config['bams'].keys())[1:]
include: 'snakepit/variant_calling.smk'
include: 'snakepit/TPM.smk'
include: 'snakepit/association.smk'
include: 'snakepit/overlap.smk'
include: 'snakepit/coverage.smk'
rule all:
input:
## Variant calling
expand('{tissue}_{coverage}/autosomes.imputed.vcf.gz',tissue=('Vas_deferens','Testis','Epididymis_head'),coverage=config['coverages']),
expand('WGS_{coverage}/autosomes.imputed.vcf.gz',coverage=('full','hundred','thirty')),
## Variant analysis
expand('overlaps/imputed.none.{coverage}.isec',coverage=config['coverages']),
expand('F1/happy.{coverage}.{imputed}.csv',coverage=config['coverages'],imputed=('imputed','Unrevised')),
## Bam coverage/ASE
expand('coverage/annotated.{coverage}.bed.gz',coverage=config['coverages']),
expand('coverage/genome.{coverage}.csv',coverage=config['coverages']),
expand('ase/metrics.{coverage}.csv',coverage=config['coverages']),
## Variant comparison
'coverage/variants.csv',
expand('F1/happy.{coverage}.{imputed}.csv',coverage=('full','hundred','thirty','five'),imputed=('imputed',)),
## eQTL analysis
expand('eQTL/WGS_full_{tissue}_{coverage}_filtered/conditionals.{MAF}.txt.gz',tissue=config['tissues'],MAF=format_MAF(config['MAF']),coverage=config['coverages']),
expand('eQTL/{tissue}_{coverage}_{tissue}_{coverage}_filtered/conditionals.{MAF}.txt.gz',tissue=config['tissues'],MAF=format_MAF(config['MAF']),coverage=config['coverages'])