-
Notifications
You must be signed in to change notification settings - Fork 3
/
run.py
50 lines (41 loc) · 1.23 KB
/
run.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
import sys
import os
import cProfile
sys.path.insert(0, os.path.abspath("."))
from src.polyoligo import cli_kasp
KWARGS = {
"markers": "sample_data/markers.txt",
"out": "out",
"reference": "sample_data/blastdb",
# "reference": "sample_data/blastdb.fa.gz",
"n": 10,
"vcf": "sample_data/vcf.txt.gz",
"vcf_include": "sample_data/vcf_include.txt",
"vcf_exclude": None,
"reporters": "sample_data/VIC_FAM_reporters.txt",
"multiplier": 2,
"tm_delta": 10,
"nt": 4,
"primer3": "sample_data/primer3_configs.yaml",
}
def cprofile_job():
cProfile.run('main()', 'profile.out')
def main():
cli_kasp.main(strcmd=" ".join([
"polyoligo",
KWARGS["markers"],
KWARGS["out"],
KWARGS["reference"],
"--vcf {}".format(KWARGS["vcf"]),
"--vcf_include {}".format(KWARGS["vcf_include"]),
"--reporters {}".format(KWARGS["reporters"]),
"--multiplier {}".format(KWARGS["multiplier"]),
"--tm_delta {}".format(KWARGS["tm_delta"]),
"-nt {}".format(KWARGS["nt"]),
"-n {}".format(KWARGS["n"]),
"--debug",
"--report_alts",
"--primer3 {}".format(KWARGS["primer3"]),
]))
if __name__ == "__main__":
cprofile_job()