forked from lepsalex/model-tee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecall.py
141 lines (121 loc) · 4.45 KB
/
recall.py
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import os
from tee.AlignWorkflow import AlignWorkflow
from tee.SangerWGSWorkflow import SangerWGSWorkflow
from tee.SangerWXSWorkflow import SangerWXSWorkflow
from tee.Mutect2Workflow import Mutect2Workflow
from tee.OpenAccessFiltering import OpenAccessFiltering
from tee.RnaAlignWorkflow import RnaAlignWorkflow
from tee.PreAlnQcWorkflow import PreAlnQcWorkflow
from dotenv import load_dotenv
# load env from file if present
load_dotenv()
# Build workflow objects
align_wgs_workflow = AlignWorkflow({
"sheet_id": os.getenv("ALIGN_WGS_SHEET_ID"),
"sheet_range": os.getenv("ALIGN_WGS_SHEET_RANGE"),
"wf_url": os.getenv("ALIGN_WGS_WF_URL"),
"wf_version": os.getenv("ALIGN_WGS_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("ALIGN_WGS_CPUS"),
"mem": os.getenv("ALIGN_WGS_MEM")
})
align_wxs_workflow = AlignWorkflow({
"sheet_id": os.getenv("ALIGN_WXS_SHEET_ID"),
"sheet_range": os.getenv("ALIGN_WXS_SHEET_RANGE"),
"wf_url": os.getenv("ALIGN_WXS_WF_URL"),
"wf_version": os.getenv("ALIGN_WXS_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("ALIGN_WXS_CPUS"),
"mem": os.getenv("ALIGN_WXS_MEM")
})
sanger_wgs_workflow = SangerWGSWorkflow({
"sheet_id": os.getenv("SANGER_WGS_SHEET_ID"),
"sheet_range": os.getenv("SANGER_WGS_SHEET_RANGE"),
"wf_url": os.getenv("SANGER_WGS_WF_URL"),
"wf_version": os.getenv("SANGER_WGS_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("SANGER_WGS_CPUS"),
"pindel_cpus": os.getenv("SANGER_WGS_PINDEL_CPUS"),
"mem": os.getenv("SANGER_WGS_MEM")
})
sanger_wxs_workflow = SangerWXSWorkflow({
"sheet_id": os.getenv("SANGER_WXS_SHEET_ID"),
"sheet_range": os.getenv("SANGER_WXS_SHEET_RANGE"),
"wf_url": os.getenv("SANGER_WXS_WF_URL"),
"wf_version": os.getenv("SANGER_WXS_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("SANGER_WXS_CPUS"),
"mem": os.getenv("SANGER_WXS_MEM")
})
mutect2_workflow = Mutect2Workflow({
"sheet_id": os.getenv("MUTECT2_SHEET_ID"),
"sheet_range": os.getenv("MUTECT2_SHEET_RANGE"),
"wf_url": os.getenv("MUTECT2_WF_URL"),
"wf_version": os.getenv("MUTECT2_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("MUTECT2_CPUS"),
"mem": os.getenv("MUTECT2_MEM"),
"bqsr": False
})
open_filter_workflow = OpenAccessFiltering({
"sheet_id": os.getenv("OPEN_FILTER_SHEET_ID"),
"sheet_range": os.getenv("OPEN_FILTER_SHEET_RANGE"),
"wf_url": os.getenv("OPEN_FILTER_WF_URL"),
"wf_version": os.getenv("OPEN_FILTER_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("OPEN_FILTER_CPUS"),
"mem": os.getenv("OPEN_FILTER_MEM")
})
align_rna_workflow = RnaAlignWorkflow({
"sheet_id": os.getenv("ALIGN_RNA_SHEET_ID"),
"sheet_range": os.getenv("ALIGN_RNA_SHEET_RANGE"),
"wf_url": os.getenv("ALIGN_RNA_WF_URL"),
"wf_version": os.getenv("ALIGN_RNA_WF_VERSION"),
"max_runs": -1,
"max_runs_per_dir": -1,
"cpus": os.getenv("ALIGN_RNA_CPUS"),
"mem": os.getenv("ALIGN_RNA_MEM")
})
pre_aln_qc_workflow = PreAlnQcWorkflow({
"sheet_id": os.getenv("PRE_ALIGN_QC_SHEET_ID"),
"sheet_range": os.getenv("PRE_ALIGN_QC_SHEET_RANGE"),
"wf_url": os.getenv("PRE_ALIGN_QC_WF_URL"),
"wf_version": os.getenv("PRE_ALIGN_QC_WF_VERSION"),
"max_runs": os.getenv("PRE_ALIGN_QC_MAX_RUNS"),
"max_runs_per_dir": os.getenv("PRE_ALIGN_QC_MAX_RUNS_PER_DIR"),
"cpus": os.getenv("PRE_ALIGN_QC_CPUS"),
"mem": os.getenv("PRE_ALIGN_QC_MEM")
})
# Recall Script (to be run locally only!)
recall_list = []
# Rerun Script (to be run locally only!)
rerun_list = [
"wes-3b572f019c984305b3959683312707f2"
]
# align_wgs_workflow.update()
# align_wgs_workflow.recall(recall_list)
# align_wgs_workflow.rerun(rerun_list)
# align_wxs_workflow.update()
# align_wxs_workflow.recall(recall_list)
# align_wxs_workflow.rerun(rerun_list)
# sanger_wgs_workflow.update()
# sanger_wgs_workflow.recall(recall_list)
# sanger_wxs_workflow.update()
# sanger_wxs_workflow.recall(recall_list)
# mutect2_workflow.update()
# mutect2_workflow.recall(recall_list)
#open_filter_workflow.update()
#open_filter_workflow.recall(recall_list)
#open_filter_workflow.rerun(rerun_list)
align_rna_workflow.update()
# align_rna_workflow.recall(recall_list)
align_rna_workflow.rerun(rerun_list)
pre_aln_qc_workflow.update()
# pre_aln_qc_workflow.recall(recall_list)
pre_aln_qc_workflow.rerun(rerun_list)