This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
73 lines (58 loc) · 2.26 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## arraymap pipeline ##
# convert arraymap to ga4gh schema, and convert to hg38
rule cnv2file:
input:
'/data/db/mongodb/arraymap_ga4gh.ns'
output:
'/Users/bogao/DataFiles/tmp/segments_36.txt'
shell:
'python arraymap2ga4gh.py --dna && '
'python cnv2file.py'
rule liftover36to37:
input:
'/Users/bogao/DataFiles/tmp/segments_36.txt'
output:
'/Users/bogao/DataFiles/tmp/segments_37.txt'
shell:
'segment_liftover -i /Users/bogao/DataFiles/tmp/ -o /Users/bogao/DataFiles/tmp/ -c hg18ToHg19 -si segments_36.txt -so segments_37.txt -l /Users/bogao/DataFiles/Liftover\ archive/liftover/liftOver'
rule liftover36to38:
input:
'/Users/bogao/DataFiles/tmp/segments_36.txt'
output:
'/Users/bogao/DataFiles/tmp/segments_38.txt'
shell:
'segment_liftover -i /Users/bogao/DataFiles/tmp/ -o /Users/bogao/DataFiles/tmp/ -c hg18ToHg38 -si segments_36.txt -so segments_38.txt -l /Users/bogao/DataFiles/Liftover\ archive/liftover/liftOver'
rule file2db:
input:
'/Users/bogao/DataFiles/tmp/segments_37.txt',
'/Users/bogao/DataFiles/tmp/segments_38.txt'
output:
'/Users/Shared/mongodump/arraymap/samples_web.bson'
shell:
'python arraymap_ga4gh_liftover.py &&'
'sh dump_arraymap_ga4gh.sh'
## progenetix pipeline ##
## use -w (--latency-wait) 60
rule pg2file:
input:
'/data/db/mongodb/progenetix_ga4gh.ns'
output:
'/Users/bogao/DataFiles/tmp/segments_36_pg.txt'
shell:
'python arraymap2ga4gh.py --dna -dbin progenetix -dbout progenetix_ga4gh -f {{}} && '
'python progenetix2files.py'
rule pg_liftover:
input:
'/Users/bogao/DataFiles/tmp/segments_36_pg.txt'
output:
'/Users/bogao/DataFiles/tmp/segments_38_pg.txt'
shell:
'segment_liftover -i /Users/bogao/DataFiles/tmp/ -o /Users/bogao/DataFiles/tmp/ -c hg18ToHg38 -si segments_36_pg.txt -so segments_38_pg.txt -l /Users/bogao/DataFiles/Liftover\ archive/liftover/liftOver'
rule pg_writedb:
input:
'/Users/bogao/DataFiles/tmp/segments_38_pg.txt'
output:
'/Users/Shared/mongodump/progenetix/samples_web.bson'
shell:
'python progenetix_ga4gh_liftover.py &&'
'sh dump_progenetix_ga4gh.sh'