-
Notifications
You must be signed in to change notification settings - Fork 51
/
test.py
executable file
·159 lines (138 loc) · 3.41 KB
/
test.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 10 11:45:38 2019
@author: mishugeb
"""
from SigProfilerExtractor import sigpro as sig
import SigProfilerExtractor as spe_mod
import os
def run_matrix_96():
data = sig.importdata("matrix")
sig.sigProfilerExtractor(
"matrix",
"test_matrix_96_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_matrix_78():
data = sig.importdata("matrix_DBS")
sig.sigProfilerExtractor(
"matrix",
"test_matrix_78_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_matrix_83():
data = sig.importdata("matrix_ID")
sig.sigProfilerExtractor(
"matrix",
"test_matrix_83_output",
data,
exome=True,
reference_genome="GRCh38",
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_vcf():
vcf_data = sig.importdata("vcf")
sig.sigProfilerExtractor(
"vcf",
"test_vcf_output",
vcf_data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_matrix_48():
data = sig.importdata("matrix_CNV")
sig.sigProfilerExtractor(
"matrix",
"test_matrix_48_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_seg_48():
data = sig.importdata("seg:BATTENBERG")
sig.sigProfilerExtractor(
"seg:BATTENBERG",
"test_segCNV_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_matrix_32():
data = sig.importdata("matrix_SV")
sig.sigProfilerExtractor(
"matrix",
"test_matrix_32_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_matobj():
data = sig.importdata("matobj")
sig.sigProfilerExtractor(
"matobj",
"test_matobj_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
def run_csv():
data = sig.importdata("csv")
sig.sigProfilerExtractor(
"csv",
"test_csv_output",
data,
minimum_signatures=3,
maximum_signatures=3,
nmf_replicates=5,
min_nmf_iterations=100,
max_nmf_iterations=1000,
nmf_test_conv=100,
)
if __name__ == "__main__":
run_matrix_96()
run_matrix_78()
run_matrix_83()
run_matrix_48()
run_matrix_32()
run_seg_48()
run_vcf()
# run_matobj()
# run_csv()