cwas-plus2 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. cwas_plus2-0.2.0/Cargo.lock +371 -0
  2. cwas_plus2-0.2.0/Cargo.toml +3 -0
  3. cwas_plus2-0.2.0/LICENSE +21 -0
  4. cwas_plus2-0.2.0/PKG-INFO +26 -0
  5. cwas_plus2-0.2.0/cwas/__init__.py +0 -0
  6. cwas_plus2-0.2.0/cwas/__main__.py +10 -0
  7. cwas_plus2-0.2.0/cwas/annotation.py +305 -0
  8. cwas_plus2-0.2.0/cwas/argparser.py +1228 -0
  9. cwas_plus2-0.2.0/cwas/binomial_test.py +271 -0
  10. cwas_plus2-0.2.0/cwas/burden_shift.py +522 -0
  11. cwas_plus2-0.2.0/cwas/burden_test.py +373 -0
  12. cwas_plus2-0.2.0/cwas/categorization.py +334 -0
  13. cwas_plus2-0.2.0/cwas/cli.py +40 -0
  14. cwas_plus2-0.2.0/cwas/configuration.py +172 -0
  15. cwas_plus2-0.2.0/cwas/core/__init__.py +0 -0
  16. cwas_plus2-0.2.0/cwas/core/annotation/__init__.py +0 -0
  17. cwas_plus2-0.2.0/cwas/core/annotation/bed.py +128 -0
  18. cwas_plus2-0.2.0/cwas/core/annotation/vep.py +318 -0
  19. cwas_plus2-0.2.0/cwas/core/burden_test/__init__.py +0 -0
  20. cwas_plus2-0.2.0/cwas/core/burden_test/binomial.py +76 -0
  21. cwas_plus2-0.2.0/cwas/core/categorization/__init__.py +0 -0
  22. cwas_plus2-0.2.0/cwas/core/categorization/categorizer.py +721 -0
  23. cwas_plus2-0.2.0/cwas/core/categorization/category.py +56 -0
  24. cwas_plus2-0.2.0/cwas/core/categorization/parser.py +208 -0
  25. cwas_plus2-0.2.0/cwas/core/categorization/utils.py +28 -0
  26. cwas_plus2-0.2.0/cwas/core/common.py +164 -0
  27. cwas_plus2-0.2.0/cwas/core/configuration/__init__.py +0 -0
  28. cwas_plus2-0.2.0/cwas/core/configuration/create.py +85 -0
  29. cwas_plus2-0.2.0/cwas/core/configuration/settings.py +75 -0
  30. cwas_plus2-0.2.0/cwas/core/dawn/__init__.py +0 -0
  31. cwas_plus2-0.2.0/cwas/core/dawn/clustering.py +133 -0
  32. cwas_plus2-0.2.0/cwas/core/dawn/supernodeWGS.py +777 -0
  33. cwas_plus2-0.2.0/cwas/core/preparation/__init__.py +0 -0
  34. cwas_plus2-0.2.0/cwas/core/preparation/annotation.py +216 -0
  35. cwas_plus2-0.2.0/cwas/core/preparation/bedreader.py +38 -0
  36. cwas_plus2-0.2.0/cwas/correlation.py +401 -0
  37. cwas_plus2-0.2.0/cwas/dawn.py +408 -0
  38. cwas_plus2-0.2.0/cwas/effective_num_test.py +309 -0
  39. cwas_plus2-0.2.0/cwas/env.py +67 -0
  40. cwas_plus2-0.2.0/cwas/extract_variant.py +304 -0
  41. cwas_plus2-0.2.0/cwas/factory.py +42 -0
  42. cwas_plus2-0.2.0/cwas/permutation_test.py +250 -0
  43. cwas_plus2-0.2.0/cwas/preparation.py +96 -0
  44. cwas_plus2-0.2.0/cwas/risk_score.py +719 -0
  45. cwas_plus2-0.2.0/cwas/runnable.py +48 -0
  46. cwas_plus2-0.2.0/cwas/start.py +104 -0
  47. cwas_plus2-0.2.0/cwas/utils/__init__.py +0 -0
  48. cwas_plus2-0.2.0/cwas/utils/check.py +64 -0
  49. cwas_plus2-0.2.0/cwas/utils/cmd.py +93 -0
  50. cwas_plus2-0.2.0/cwas/utils/log.py +44 -0
  51. cwas_plus2-0.2.0/pyproject.toml +101 -0
  52. cwas_plus2-0.2.0/rust/Cargo.toml +16 -0
  53. cwas_plus2-0.2.0/rust/src/categorizer.rs +145 -0
  54. cwas_plus2-0.2.0/rust/src/intersection.rs +219 -0
  55. cwas_plus2-0.2.0/rust/src/lib.rs +16 -0
  56. cwas_plus2-0.2.0/rust/src/vcf_parser.rs +189 -0
@@ -0,0 +1,371 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "adler2"
7
+ version = "2.0.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.5.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
16
+
17
+ [[package]]
18
+ name = "cfg-if"
19
+ version = "1.0.4"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
22
+
23
+ [[package]]
24
+ name = "crc32fast"
25
+ version = "1.5.0"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
28
+ dependencies = [
29
+ "cfg-if",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "crossbeam-deque"
34
+ version = "0.8.6"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
37
+ dependencies = [
38
+ "crossbeam-epoch",
39
+ "crossbeam-utils",
40
+ ]
41
+
42
+ [[package]]
43
+ name = "crossbeam-epoch"
44
+ version = "0.9.18"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
47
+ dependencies = [
48
+ "crossbeam-utils",
49
+ ]
50
+
51
+ [[package]]
52
+ name = "crossbeam-utils"
53
+ version = "0.8.21"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
56
+
57
+ [[package]]
58
+ name = "cwas_core"
59
+ version = "0.1.0"
60
+ dependencies = [
61
+ "flate2",
62
+ "memchr",
63
+ "numpy",
64
+ "pyo3",
65
+ "rayon",
66
+ "rustc-hash",
67
+ ]
68
+
69
+ [[package]]
70
+ name = "either"
71
+ version = "1.15.0"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
74
+
75
+ [[package]]
76
+ name = "flate2"
77
+ version = "1.1.9"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
80
+ dependencies = [
81
+ "crc32fast",
82
+ "miniz_oxide",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "heck"
87
+ version = "0.5.0"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
90
+
91
+ [[package]]
92
+ name = "indoc"
93
+ version = "2.0.7"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
96
+ dependencies = [
97
+ "rustversion",
98
+ ]
99
+
100
+ [[package]]
101
+ name = "libc"
102
+ version = "0.2.181"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "459427e2af2b9c839b132acb702a1c654d95e10f8c326bfc2ad11310e458b1c5"
105
+
106
+ [[package]]
107
+ name = "matrixmultiply"
108
+ version = "0.3.10"
109
+ source = "registry+https://github.com/rust-lang/crates.io-index"
110
+ checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
111
+ dependencies = [
112
+ "autocfg",
113
+ "rawpointer",
114
+ ]
115
+
116
+ [[package]]
117
+ name = "memchr"
118
+ version = "2.8.0"
119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
121
+
122
+ [[package]]
123
+ name = "memoffset"
124
+ version = "0.9.1"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
127
+ dependencies = [
128
+ "autocfg",
129
+ ]
130
+
131
+ [[package]]
132
+ name = "miniz_oxide"
133
+ version = "0.8.9"
134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
135
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
136
+ dependencies = [
137
+ "adler2",
138
+ "simd-adler32",
139
+ ]
140
+
141
+ [[package]]
142
+ name = "ndarray"
143
+ version = "0.16.1"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
146
+ dependencies = [
147
+ "matrixmultiply",
148
+ "num-complex",
149
+ "num-integer",
150
+ "num-traits",
151
+ "portable-atomic",
152
+ "portable-atomic-util",
153
+ "rawpointer",
154
+ ]
155
+
156
+ [[package]]
157
+ name = "num-complex"
158
+ version = "0.4.6"
159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
160
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
161
+ dependencies = [
162
+ "num-traits",
163
+ ]
164
+
165
+ [[package]]
166
+ name = "num-integer"
167
+ version = "0.1.46"
168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
169
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
170
+ dependencies = [
171
+ "num-traits",
172
+ ]
173
+
174
+ [[package]]
175
+ name = "num-traits"
176
+ version = "0.2.19"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
179
+ dependencies = [
180
+ "autocfg",
181
+ ]
182
+
183
+ [[package]]
184
+ name = "numpy"
185
+ version = "0.25.0"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "29f1dee9aa8d3f6f8e8b9af3803006101bb3653866ef056d530d53ae68587191"
188
+ dependencies = [
189
+ "libc",
190
+ "ndarray",
191
+ "num-complex",
192
+ "num-integer",
193
+ "num-traits",
194
+ "pyo3",
195
+ "pyo3-build-config",
196
+ "rustc-hash",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "once_cell"
201
+ version = "1.21.3"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
204
+
205
+ [[package]]
206
+ name = "portable-atomic"
207
+ version = "1.13.1"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
210
+
211
+ [[package]]
212
+ name = "portable-atomic-util"
213
+ version = "0.2.5"
214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
215
+ checksum = "7a9db96d7fa8782dd8c15ce32ffe8680bbd1e978a43bf51a34d39483540495f5"
216
+ dependencies = [
217
+ "portable-atomic",
218
+ ]
219
+
220
+ [[package]]
221
+ name = "proc-macro2"
222
+ version = "1.0.106"
223
+ source = "registry+https://github.com/rust-lang/crates.io-index"
224
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
225
+ dependencies = [
226
+ "unicode-ident",
227
+ ]
228
+
229
+ [[package]]
230
+ name = "pyo3"
231
+ version = "0.25.1"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
234
+ dependencies = [
235
+ "indoc",
236
+ "libc",
237
+ "memoffset",
238
+ "once_cell",
239
+ "portable-atomic",
240
+ "pyo3-build-config",
241
+ "pyo3-ffi",
242
+ "pyo3-macros",
243
+ "unindent",
244
+ ]
245
+
246
+ [[package]]
247
+ name = "pyo3-build-config"
248
+ version = "0.25.1"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
251
+ dependencies = [
252
+ "once_cell",
253
+ "target-lexicon",
254
+ ]
255
+
256
+ [[package]]
257
+ name = "pyo3-ffi"
258
+ version = "0.25.1"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
261
+ dependencies = [
262
+ "libc",
263
+ "pyo3-build-config",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "pyo3-macros"
268
+ version = "0.25.1"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
271
+ dependencies = [
272
+ "proc-macro2",
273
+ "pyo3-macros-backend",
274
+ "quote",
275
+ "syn",
276
+ ]
277
+
278
+ [[package]]
279
+ name = "pyo3-macros-backend"
280
+ version = "0.25.1"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
283
+ dependencies = [
284
+ "heck",
285
+ "proc-macro2",
286
+ "pyo3-build-config",
287
+ "quote",
288
+ "syn",
289
+ ]
290
+
291
+ [[package]]
292
+ name = "quote"
293
+ version = "1.0.44"
294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
295
+ checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
296
+ dependencies = [
297
+ "proc-macro2",
298
+ ]
299
+
300
+ [[package]]
301
+ name = "rawpointer"
302
+ version = "0.2.1"
303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
304
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
305
+
306
+ [[package]]
307
+ name = "rayon"
308
+ version = "1.11.0"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
311
+ dependencies = [
312
+ "either",
313
+ "rayon-core",
314
+ ]
315
+
316
+ [[package]]
317
+ name = "rayon-core"
318
+ version = "1.13.0"
319
+ source = "registry+https://github.com/rust-lang/crates.io-index"
320
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
321
+ dependencies = [
322
+ "crossbeam-deque",
323
+ "crossbeam-utils",
324
+ ]
325
+
326
+ [[package]]
327
+ name = "rustc-hash"
328
+ version = "2.1.1"
329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
330
+ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
331
+
332
+ [[package]]
333
+ name = "rustversion"
334
+ version = "1.0.22"
335
+ source = "registry+https://github.com/rust-lang/crates.io-index"
336
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
337
+
338
+ [[package]]
339
+ name = "simd-adler32"
340
+ version = "0.3.8"
341
+ source = "registry+https://github.com/rust-lang/crates.io-index"
342
+ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
343
+
344
+ [[package]]
345
+ name = "syn"
346
+ version = "2.0.114"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
349
+ dependencies = [
350
+ "proc-macro2",
351
+ "quote",
352
+ "unicode-ident",
353
+ ]
354
+
355
+ [[package]]
356
+ name = "target-lexicon"
357
+ version = "0.13.4"
358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
359
+ checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
360
+
361
+ [[package]]
362
+ name = "unicode-ident"
363
+ version = "1.0.23"
364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
365
+ checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e"
366
+
367
+ [[package]]
368
+ name = "unindent"
369
+ version = "0.2.4"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
@@ -0,0 +1,3 @@
1
+ [workspace]
2
+ members = ["rust"]
3
+ resolver = "2"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Minwoo Jeong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.4
2
+ Name: cwas-plus2
3
+ Version: 0.2.0
4
+ Requires-Dist: pandas>=2.1.0
5
+ Requires-Dist: numpy>=1.25.2
6
+ Requires-Dist: zarr>=2.16.1,<3
7
+ Requires-Dist: scipy>=1.13.1,<1.14
8
+ Requires-Dist: tqdm>=4.66.1
9
+ Requires-Dist: igraph>=0.10.8
10
+ Requires-Dist: matplotlib>=3.8.4,<3.9
11
+ Requires-Dist: seaborn>=0.13.2
12
+ Requires-Dist: parmap>=1.7.0
13
+ Requires-Dist: polars>=0.19.2
14
+ Requires-Dist: scikit-learn>=1.3.0
15
+ Requires-Dist: pysam>=0.22.1
16
+ Requires-Dist: numcodecs>=0.12.0
17
+ Requires-Dist: pyyaml>=6.0.1
18
+ Requires-Dist: python-dotenv>=1.0.0
19
+ Requires-Dist: pyarrow>=13,<15
20
+ Requires-Dist: adjusttext>=0.8
21
+ Requires-Dist: statsmodels>=0.14.1
22
+ Requires-Dist: scanpy>=1.10.1
23
+ Requires-Dist: python-glmnet-fix>=2.2.3
24
+ Requires-Dist: setuptools>=70.0.0,<75
25
+ License-File: LICENSE
26
+ Requires-Python: >=3.9, <3.13
File without changes
@@ -0,0 +1,10 @@
1
+ import cwas.cli
2
+
3
+
4
+ def main():
5
+ inst = cwas.cli.main()
6
+ inst.run()
7
+
8
+
9
+ if __name__ == "__main__":
10
+ main()