vartrace 0.1.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.
- vartrace-0.1.0/.gitattributes +2 -0
- vartrace-0.1.0/.gitignore +25 -0
- vartrace-0.1.0/LICENSE +75 -0
- vartrace-0.1.0/LICENSE-MODELS +413 -0
- vartrace-0.1.0/PKG-INFO +146 -0
- vartrace-0.1.0/README.md +127 -0
- vartrace-0.1.0/pixi.lock +1632 -0
- vartrace-0.1.0/pyproject.toml +43 -0
- vartrace-0.1.0/tests/check_features.py +106 -0
- vartrace-0.1.0/tests/check_scores.py +84 -0
- vartrace-0.1.0/vartrace/__init__.py +3 -0
- vartrace-0.1.0/vartrace/annotate.py +144 -0
- vartrace-0.1.0/vartrace/cli.py +140 -0
- vartrace-0.1.0/vartrace/features.py +177 -0
- vartrace-0.1.0/vartrace/io.py +158 -0
- vartrace-0.1.0/vartrace/model.py +96 -0
- vartrace-0.1.0/vartrace/models/data_only__no_cross_cell.json +60 -0
- vartrace-0.1.0/vartrace/models/data_only__no_cross_cell.pkl +0 -0
- vartrace-0.1.0/vartrace/models/data_only__with_cross_cell.json +64 -0
- vartrace-0.1.0/vartrace/models/data_only__with_cross_cell.pkl +0 -0
- vartrace-0.1.0/vartrace/models/database_informed__no_cross_cell.json +65 -0
- vartrace-0.1.0/vartrace/models/database_informed__no_cross_cell.pkl +0 -0
- vartrace-0.1.0/vartrace/models/database_informed__with_cross_cell.json +69 -0
- vartrace-0.1.0/vartrace/models/database_informed__with_cross_cell.pkl +0 -0
- vartrace-0.1.0/vartrace/models/partial_annotation.json +149 -0
- vartrace-0.1.0/vartrace/models/partial_annotation.pkl +0 -0
- vartrace-0.1.0/vartrace/report.py +67 -0
- vartrace-0.1.0/vartrace/variant.py +29 -0
- vartrace-0.1.0/vartrace/web/__init__.py +1 -0
- vartrace-0.1.0/vartrace/web/app.py +176 -0
- vartrace-0.1.0/vartrace/web/charts.py +48 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# pixi
|
|
2
|
+
.pixi/*
|
|
3
|
+
!.pixi/config.toml
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[cod]
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
build/
|
|
11
|
+
dist/
|
|
12
|
+
|
|
13
|
+
# геномни данни никога не влизат в хранилището
|
|
14
|
+
*.vcf
|
|
15
|
+
*.vcf.gz
|
|
16
|
+
*.bam
|
|
17
|
+
*.bai
|
|
18
|
+
*.cram
|
|
19
|
+
*.fastq
|
|
20
|
+
*.fastq.gz
|
|
21
|
+
*.fq.gz
|
|
22
|
+
data/
|
|
23
|
+
|
|
24
|
+
# macOS
|
|
25
|
+
.DS_Store
|
vartrace-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Required Notice: Copyright (c) 2026 Kamen Yovchev
|
|
2
|
+
|
|
3
|
+
# PolyForm Noncommercial License 1.0.0
|
|
4
|
+
|
|
5
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
+
|
|
41
|
+
## Noncommercial Organizations
|
|
42
|
+
|
|
43
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
+
|
|
45
|
+
## Fair Use
|
|
46
|
+
|
|
47
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
+
|
|
49
|
+
## No Other Rights
|
|
50
|
+
|
|
51
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
+
|
|
53
|
+
## Patent Defense
|
|
54
|
+
|
|
55
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
+
|
|
57
|
+
## Violations
|
|
58
|
+
|
|
59
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
+
|
|
61
|
+
## No Liability
|
|
62
|
+
|
|
63
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
+
|
|
65
|
+
## Definitions
|
|
66
|
+
|
|
67
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
+
|
|
69
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
+
|
|
71
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
+
|
|
73
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
+
|
|
75
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
The trained models in vartrace/models/ are licensed under the Creative Commons
|
|
2
|
+
Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Kamen Yovchev
|
|
5
|
+
|
|
6
|
+
Attribution-NonCommercial 4.0 International
|
|
7
|
+
|
|
8
|
+
=======================================================================
|
|
9
|
+
|
|
10
|
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
|
11
|
+
does not provide legal services or legal advice. Distribution of
|
|
12
|
+
Creative Commons public licenses does not create a lawyer-client or
|
|
13
|
+
other relationship. Creative Commons makes its licenses and related
|
|
14
|
+
information available on an "as-is" basis. Creative Commons gives no
|
|
15
|
+
warranties regarding its licenses, any material licensed under their
|
|
16
|
+
terms and conditions, or any related information. Creative Commons
|
|
17
|
+
disclaims all liability for damages resulting from their use to the
|
|
18
|
+
fullest extent possible.
|
|
19
|
+
|
|
20
|
+
Using Creative Commons Public Licenses
|
|
21
|
+
|
|
22
|
+
Creative Commons public licenses provide a standard set of terms and
|
|
23
|
+
conditions that creators and other rights holders may use to share
|
|
24
|
+
original works of authorship and other material subject to copyright
|
|
25
|
+
and certain other rights specified in the public license below. The
|
|
26
|
+
following considerations are for informational purposes only, are not
|
|
27
|
+
exhaustive, and do not form part of our licenses.
|
|
28
|
+
|
|
29
|
+
Considerations for licensors: Our public licenses are
|
|
30
|
+
intended for use by those authorized to give the public
|
|
31
|
+
permission to use material in ways otherwise restricted by
|
|
32
|
+
copyright and certain other rights. Our licenses are
|
|
33
|
+
irrevocable. Licensors should read and understand the terms
|
|
34
|
+
and conditions of the license they choose before applying it.
|
|
35
|
+
Licensors should also secure all rights necessary before
|
|
36
|
+
applying our licenses so that the public can reuse the
|
|
37
|
+
material as expected. Licensors should clearly mark any
|
|
38
|
+
material not subject to the license. This includes other CC-
|
|
39
|
+
licensed material, or material used under an exception or
|
|
40
|
+
limitation to copyright. More considerations for licensors:
|
|
41
|
+
wiki.creativecommons.org/Considerations_for_licensors
|
|
42
|
+
|
|
43
|
+
Considerations for the public: By using one of our public
|
|
44
|
+
licenses, a licensor grants the public permission to use the
|
|
45
|
+
licensed material under specified terms and conditions. If
|
|
46
|
+
the licensor's permission is not necessary for any reason--for
|
|
47
|
+
example, because of any applicable exception or limitation to
|
|
48
|
+
copyright--then that use is not regulated by the license. Our
|
|
49
|
+
licenses grant only permissions under copyright and certain
|
|
50
|
+
other rights that a licensor has authority to grant. Use of
|
|
51
|
+
the licensed material may still be restricted for other
|
|
52
|
+
reasons, including because others have copyright or other
|
|
53
|
+
rights in the material. A licensor may make special requests,
|
|
54
|
+
such as asking that all changes be marked or described.
|
|
55
|
+
Although not required by our licenses, you are encouraged to
|
|
56
|
+
respect those requests where reasonable. More considerations
|
|
57
|
+
for the public:
|
|
58
|
+
wiki.creativecommons.org/Considerations_for_licensees
|
|
59
|
+
|
|
60
|
+
=======================================================================
|
|
61
|
+
|
|
62
|
+
Creative Commons Attribution-NonCommercial 4.0 International Public
|
|
63
|
+
License
|
|
64
|
+
|
|
65
|
+
By exercising the Licensed Rights (defined below), You accept and agree
|
|
66
|
+
to be bound by the terms and conditions of this Creative Commons
|
|
67
|
+
Attribution-NonCommercial 4.0 International Public License ("Public
|
|
68
|
+
License"). To the extent this Public License may be interpreted as a
|
|
69
|
+
contract, You are granted the Licensed Rights in consideration of Your
|
|
70
|
+
acceptance of these terms and conditions, and the Licensor grants You
|
|
71
|
+
such rights in consideration of benefits the Licensor receives from
|
|
72
|
+
making the Licensed Material available under these terms and
|
|
73
|
+
conditions.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Section 1 -- Definitions.
|
|
77
|
+
|
|
78
|
+
a. Adapted Material means material subject to Copyright and Similar
|
|
79
|
+
Rights that is derived from or based upon the Licensed Material
|
|
80
|
+
and in which the Licensed Material is translated, altered,
|
|
81
|
+
arranged, transformed, or otherwise modified in a manner requiring
|
|
82
|
+
permission under the Copyright and Similar Rights held by the
|
|
83
|
+
Licensor. For purposes of this Public License, where the Licensed
|
|
84
|
+
Material is a musical work, performance, or sound recording,
|
|
85
|
+
Adapted Material is always produced where the Licensed Material is
|
|
86
|
+
synched in timed relation with a moving image.
|
|
87
|
+
|
|
88
|
+
b. Adapter's License means the license You apply to Your Copyright
|
|
89
|
+
and Similar Rights in Your contributions to Adapted Material in
|
|
90
|
+
accordance with the terms and conditions of this Public License.
|
|
91
|
+
|
|
92
|
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
|
93
|
+
closely related to copyright including, without limitation,
|
|
94
|
+
performance, broadcast, sound recording, and Sui Generis Database
|
|
95
|
+
Rights, without regard to how the rights are labeled or
|
|
96
|
+
categorized. For purposes of this Public License, the rights
|
|
97
|
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
|
98
|
+
Rights.
|
|
99
|
+
d. Effective Technological Measures means those measures that, in the
|
|
100
|
+
absence of proper authority, may not be circumvented under laws
|
|
101
|
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
|
102
|
+
Treaty adopted on December 20, 1996, and/or similar international
|
|
103
|
+
agreements.
|
|
104
|
+
|
|
105
|
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
|
106
|
+
any other exception or limitation to Copyright and Similar Rights
|
|
107
|
+
that applies to Your use of the Licensed Material.
|
|
108
|
+
|
|
109
|
+
f. Licensed Material means the artistic or literary work, database,
|
|
110
|
+
or other material to which the Licensor applied this Public
|
|
111
|
+
License.
|
|
112
|
+
|
|
113
|
+
g. Licensed Rights means the rights granted to You subject to the
|
|
114
|
+
terms and conditions of this Public License, which are limited to
|
|
115
|
+
all Copyright and Similar Rights that apply to Your use of the
|
|
116
|
+
Licensed Material and that the Licensor has authority to license.
|
|
117
|
+
|
|
118
|
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
|
119
|
+
under this Public License.
|
|
120
|
+
|
|
121
|
+
i. NonCommercial means not primarily intended for or directed towards
|
|
122
|
+
commercial advantage or monetary compensation. For purposes of
|
|
123
|
+
this Public License, the exchange of the Licensed Material for
|
|
124
|
+
other material subject to Copyright and Similar Rights by digital
|
|
125
|
+
file-sharing or similar means is NonCommercial provided there is
|
|
126
|
+
no payment of monetary compensation in connection with the
|
|
127
|
+
exchange.
|
|
128
|
+
|
|
129
|
+
j. Share means to provide material to the public by any means or
|
|
130
|
+
process that requires permission under the Licensed Rights, such
|
|
131
|
+
as reproduction, public display, public performance, distribution,
|
|
132
|
+
dissemination, communication, or importation, and to make material
|
|
133
|
+
available to the public including in ways that members of the
|
|
134
|
+
public may access the material from a place and at a time
|
|
135
|
+
individually chosen by them.
|
|
136
|
+
|
|
137
|
+
k. Sui Generis Database Rights means rights other than copyright
|
|
138
|
+
resulting from Directive 96/9/EC of the European Parliament and of
|
|
139
|
+
the Council of 11 March 1996 on the legal protection of databases,
|
|
140
|
+
as amended and/or succeeded, as well as other essentially
|
|
141
|
+
equivalent rights anywhere in the world.
|
|
142
|
+
|
|
143
|
+
l. You means the individual or entity exercising the Licensed Rights
|
|
144
|
+
under this Public License. Your has a corresponding meaning.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
Section 2 -- Scope.
|
|
148
|
+
|
|
149
|
+
a. License grant.
|
|
150
|
+
|
|
151
|
+
1. Subject to the terms and conditions of this Public License,
|
|
152
|
+
the Licensor hereby grants You a worldwide, royalty-free,
|
|
153
|
+
non-sublicensable, non-exclusive, irrevocable license to
|
|
154
|
+
exercise the Licensed Rights in the Licensed Material to:
|
|
155
|
+
|
|
156
|
+
a. reproduce and Share the Licensed Material, in whole or
|
|
157
|
+
in part, for NonCommercial purposes only; and
|
|
158
|
+
|
|
159
|
+
b. produce, reproduce, and Share Adapted Material for
|
|
160
|
+
NonCommercial purposes only.
|
|
161
|
+
|
|
162
|
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
|
163
|
+
Exceptions and Limitations apply to Your use, this Public
|
|
164
|
+
License does not apply, and You do not need to comply with
|
|
165
|
+
its terms and conditions.
|
|
166
|
+
|
|
167
|
+
3. Term. The term of this Public License is specified in Section
|
|
168
|
+
6(a).
|
|
169
|
+
|
|
170
|
+
4. Media and formats; technical modifications allowed. The
|
|
171
|
+
Licensor authorizes You to exercise the Licensed Rights in
|
|
172
|
+
all media and formats whether now known or hereafter created,
|
|
173
|
+
and to make technical modifications necessary to do so. The
|
|
174
|
+
Licensor waives and/or agrees not to assert any right or
|
|
175
|
+
authority to forbid You from making technical modifications
|
|
176
|
+
necessary to exercise the Licensed Rights, including
|
|
177
|
+
technical modifications necessary to circumvent Effective
|
|
178
|
+
Technological Measures. For purposes of this Public License,
|
|
179
|
+
simply making modifications authorized by this Section 2(a)
|
|
180
|
+
(4) never produces Adapted Material.
|
|
181
|
+
|
|
182
|
+
5. Downstream recipients.
|
|
183
|
+
|
|
184
|
+
a. Offer from the Licensor -- Licensed Material. Every
|
|
185
|
+
recipient of the Licensed Material automatically
|
|
186
|
+
receives an offer from the Licensor to exercise the
|
|
187
|
+
Licensed Rights under the terms and conditions of this
|
|
188
|
+
Public License.
|
|
189
|
+
|
|
190
|
+
b. No downstream restrictions. You may not offer or impose
|
|
191
|
+
any additional or different terms or conditions on, or
|
|
192
|
+
apply any Effective Technological Measures to, the
|
|
193
|
+
Licensed Material if doing so restricts exercise of the
|
|
194
|
+
Licensed Rights by any recipient of the Licensed
|
|
195
|
+
Material.
|
|
196
|
+
|
|
197
|
+
6. No endorsement. Nothing in this Public License constitutes or
|
|
198
|
+
may be construed as permission to assert or imply that You
|
|
199
|
+
are, or that Your use of the Licensed Material is, connected
|
|
200
|
+
with, or sponsored, endorsed, or granted official status by,
|
|
201
|
+
the Licensor or others designated to receive attribution as
|
|
202
|
+
provided in Section 3(a)(1)(A)(i).
|
|
203
|
+
|
|
204
|
+
b. Other rights.
|
|
205
|
+
|
|
206
|
+
1. Moral rights, such as the right of integrity, are not
|
|
207
|
+
licensed under this Public License, nor are publicity,
|
|
208
|
+
privacy, and/or other similar personality rights; however, to
|
|
209
|
+
the extent possible, the Licensor waives and/or agrees not to
|
|
210
|
+
assert any such rights held by the Licensor to the limited
|
|
211
|
+
extent necessary to allow You to exercise the Licensed
|
|
212
|
+
Rights, but not otherwise.
|
|
213
|
+
|
|
214
|
+
2. Patent and trademark rights are not licensed under this
|
|
215
|
+
Public License.
|
|
216
|
+
|
|
217
|
+
3. To the extent possible, the Licensor waives any right to
|
|
218
|
+
collect royalties from You for the exercise of the Licensed
|
|
219
|
+
Rights, whether directly or through a collecting society
|
|
220
|
+
under any voluntary or waivable statutory or compulsory
|
|
221
|
+
licensing scheme. In all other cases the Licensor expressly
|
|
222
|
+
reserves any right to collect such royalties, including when
|
|
223
|
+
the Licensed Material is used other than for NonCommercial
|
|
224
|
+
purposes.
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
Section 3 -- License Conditions.
|
|
228
|
+
|
|
229
|
+
Your exercise of the Licensed Rights is expressly made subject to the
|
|
230
|
+
following conditions.
|
|
231
|
+
|
|
232
|
+
a. Attribution.
|
|
233
|
+
|
|
234
|
+
1. If You Share the Licensed Material (including in modified
|
|
235
|
+
form), You must:
|
|
236
|
+
|
|
237
|
+
a. retain the following if it is supplied by the Licensor
|
|
238
|
+
with the Licensed Material:
|
|
239
|
+
|
|
240
|
+
i. identification of the creator(s) of the Licensed
|
|
241
|
+
Material and any others designated to receive
|
|
242
|
+
attribution, in any reasonable manner requested by
|
|
243
|
+
the Licensor (including by pseudonym if
|
|
244
|
+
designated);
|
|
245
|
+
|
|
246
|
+
ii. a copyright notice;
|
|
247
|
+
|
|
248
|
+
iii. a notice that refers to this Public License;
|
|
249
|
+
|
|
250
|
+
iv. a notice that refers to the disclaimer of
|
|
251
|
+
warranties;
|
|
252
|
+
|
|
253
|
+
v. a URI or hyperlink to the Licensed Material to the
|
|
254
|
+
extent reasonably practicable;
|
|
255
|
+
|
|
256
|
+
b. indicate if You modified the Licensed Material and
|
|
257
|
+
retain an indication of any previous modifications; and
|
|
258
|
+
|
|
259
|
+
c. indicate the Licensed Material is licensed under this
|
|
260
|
+
Public License, and include the text of, or the URI or
|
|
261
|
+
hyperlink to, this Public License.
|
|
262
|
+
|
|
263
|
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
|
264
|
+
reasonable manner based on the medium, means, and context in
|
|
265
|
+
which You Share the Licensed Material. For example, it may be
|
|
266
|
+
reasonable to satisfy the conditions by providing a URI or
|
|
267
|
+
hyperlink to a resource that includes the required
|
|
268
|
+
information.
|
|
269
|
+
|
|
270
|
+
3. If requested by the Licensor, You must remove any of the
|
|
271
|
+
information required by Section 3(a)(1)(A) to the extent
|
|
272
|
+
reasonably practicable.
|
|
273
|
+
|
|
274
|
+
4. If You Share Adapted Material You produce, the Adapter's
|
|
275
|
+
License You apply must not prevent recipients of the Adapted
|
|
276
|
+
Material from complying with this Public License.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
Section 4 -- Sui Generis Database Rights.
|
|
280
|
+
|
|
281
|
+
Where the Licensed Rights include Sui Generis Database Rights that
|
|
282
|
+
apply to Your use of the Licensed Material:
|
|
283
|
+
|
|
284
|
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
|
285
|
+
to extract, reuse, reproduce, and Share all or a substantial
|
|
286
|
+
portion of the contents of the database for NonCommercial purposes
|
|
287
|
+
only;
|
|
288
|
+
|
|
289
|
+
b. if You include all or a substantial portion of the database
|
|
290
|
+
contents in a database in which You have Sui Generis Database
|
|
291
|
+
Rights, then the database in which You have Sui Generis Database
|
|
292
|
+
Rights (but not its individual contents) is Adapted Material; and
|
|
293
|
+
|
|
294
|
+
c. You must comply with the conditions in Section 3(a) if You Share
|
|
295
|
+
all or a substantial portion of the contents of the database.
|
|
296
|
+
|
|
297
|
+
For the avoidance of doubt, this Section 4 supplements and does not
|
|
298
|
+
replace Your obligations under this Public License where the Licensed
|
|
299
|
+
Rights include other Copyright and Similar Rights.
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
|
303
|
+
|
|
304
|
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
|
305
|
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
|
306
|
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
|
307
|
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
|
308
|
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
|
309
|
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
310
|
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
|
311
|
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
|
312
|
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
|
313
|
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
|
314
|
+
|
|
315
|
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
|
316
|
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
|
317
|
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
|
318
|
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
|
319
|
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
|
320
|
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
|
321
|
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
|
322
|
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
|
323
|
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
|
324
|
+
|
|
325
|
+
c. The disclaimer of warranties and limitation of liability provided
|
|
326
|
+
above shall be interpreted in a manner that, to the extent
|
|
327
|
+
possible, most closely approximates an absolute disclaimer and
|
|
328
|
+
waiver of all liability.
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
Section 6 -- Term and Termination.
|
|
332
|
+
|
|
333
|
+
a. This Public License applies for the term of the Copyright and
|
|
334
|
+
Similar Rights licensed here. However, if You fail to comply with
|
|
335
|
+
this Public License, then Your rights under this Public License
|
|
336
|
+
terminate automatically.
|
|
337
|
+
|
|
338
|
+
b. Where Your right to use the Licensed Material has terminated under
|
|
339
|
+
Section 6(a), it reinstates:
|
|
340
|
+
|
|
341
|
+
1. automatically as of the date the violation is cured, provided
|
|
342
|
+
it is cured within 30 days of Your discovery of the
|
|
343
|
+
violation; or
|
|
344
|
+
|
|
345
|
+
2. upon express reinstatement by the Licensor.
|
|
346
|
+
|
|
347
|
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
|
348
|
+
right the Licensor may have to seek remedies for Your violations
|
|
349
|
+
of this Public License.
|
|
350
|
+
|
|
351
|
+
c. For the avoidance of doubt, the Licensor may also offer the
|
|
352
|
+
Licensed Material under separate terms or conditions or stop
|
|
353
|
+
distributing the Licensed Material at any time; however, doing so
|
|
354
|
+
will not terminate this Public License.
|
|
355
|
+
|
|
356
|
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
|
357
|
+
License.
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
Section 7 -- Other Terms and Conditions.
|
|
361
|
+
|
|
362
|
+
a. The Licensor shall not be bound by any additional or different
|
|
363
|
+
terms or conditions communicated by You unless expressly agreed.
|
|
364
|
+
|
|
365
|
+
b. Any arrangements, understandings, or agreements regarding the
|
|
366
|
+
Licensed Material not stated herein are separate from and
|
|
367
|
+
independent of the terms and conditions of this Public License.
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
Section 8 -- Interpretation.
|
|
371
|
+
|
|
372
|
+
a. For the avoidance of doubt, this Public License does not, and
|
|
373
|
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
|
374
|
+
conditions on any use of the Licensed Material that could lawfully
|
|
375
|
+
be made without permission under this Public License.
|
|
376
|
+
|
|
377
|
+
b. To the extent possible, if any provision of this Public License is
|
|
378
|
+
deemed unenforceable, it shall be automatically reformed to the
|
|
379
|
+
minimum extent necessary to make it enforceable. If the provision
|
|
380
|
+
cannot be reformed, it shall be severed from this Public License
|
|
381
|
+
without affecting the enforceability of the remaining terms and
|
|
382
|
+
conditions.
|
|
383
|
+
|
|
384
|
+
c. No term or condition of this Public License will be waived and no
|
|
385
|
+
failure to comply consented to unless expressly agreed to by the
|
|
386
|
+
Licensor.
|
|
387
|
+
|
|
388
|
+
d. Nothing in this Public License constitutes or may be interpreted
|
|
389
|
+
as a limitation upon, or waiver of, any privileges and immunities
|
|
390
|
+
that apply to the Licensor or You, including from the legal
|
|
391
|
+
processes of any jurisdiction or authority.
|
|
392
|
+
|
|
393
|
+
=======================================================================
|
|
394
|
+
|
|
395
|
+
Creative Commons is not a party to its public
|
|
396
|
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
|
397
|
+
its public licenses to material it publishes and in those instances
|
|
398
|
+
will be considered the “Licensor.” The text of the Creative Commons
|
|
399
|
+
public licenses is dedicated to the public domain under the CC0 Public
|
|
400
|
+
Domain Dedication. Except for the limited purpose of indicating that
|
|
401
|
+
material is shared under a Creative Commons public license or as
|
|
402
|
+
otherwise permitted by the Creative Commons policies published at
|
|
403
|
+
creativecommons.org/policies, Creative Commons does not authorize the
|
|
404
|
+
use of the trademark "Creative Commons" or any other trademark or logo
|
|
405
|
+
of Creative Commons without its prior written consent including,
|
|
406
|
+
without limitation, in connection with any unauthorized modifications
|
|
407
|
+
to any of its public licenses or any other arrangements,
|
|
408
|
+
understandings, or agreements concerning use of licensed material. For
|
|
409
|
+
the avoidance of doubt, this paragraph does not form part of the
|
|
410
|
+
public licenses.
|
|
411
|
+
|
|
412
|
+
Creative Commons may be contacted at creativecommons.org.
|
|
413
|
+
|
vartrace-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: vartrace
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Estimates whether a variant seen in single-cell RNA-seq is present in the genome
|
|
5
|
+
Author-email: Kamen Yovchev <kamen.yovchev@gmail.com>
|
|
6
|
+
License-Expression: PolyForm-Noncommercial-1.0.0 AND CC-BY-NC-4.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
License-File: LICENSE-MODELS
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Requires-Dist: altair
|
|
11
|
+
Requires-Dist: joblib==1.5.3
|
|
12
|
+
Requires-Dist: numpy==2.4.6
|
|
13
|
+
Requires-Dist: pandas==3.0.5
|
|
14
|
+
Requires-Dist: requests
|
|
15
|
+
Requires-Dist: scikit-learn==1.9.0
|
|
16
|
+
Requires-Dist: streamlit
|
|
17
|
+
Requires-Dist: xgboost==3.4.0
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# VarTrace
|
|
21
|
+
|
|
22
|
+
VarTrace estimates, for each variant observed in single-cell RNA sequencing, the
|
|
23
|
+
probability that the variant is not present in the genome of that cell. It works
|
|
24
|
+
from the RNA data alone, without paired DNA sequencing.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Why
|
|
28
|
+
|
|
29
|
+
A variant seen in RNA may be present in the genome, or it may arise only at the
|
|
30
|
+
RNA level. Telling the two apart normally requires sequencing the DNA of the same
|
|
31
|
+
cell, which is expensive and often not possible. The common shortcut, checking
|
|
32
|
+
whether the variant is listed in public databases, misclassifies a large share of
|
|
33
|
+
cases in both directions.
|
|
34
|
+
|
|
35
|
+
VarTrace answers the question from the RNA data and returns a calibrated
|
|
36
|
+
probability rather than a yes or no. A score of 0.87 means that of a hundred
|
|
37
|
+
variants scored that way, about 87 really are absent from the genome.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## Installing
|
|
41
|
+
|
|
42
|
+
pipx install vartrace
|
|
43
|
+
|
|
44
|
+
Or, for the latest state of the source:
|
|
45
|
+
|
|
46
|
+
pipx install "git+https://codeberg.org/KamenYovchev/vartrace.git"
|
|
47
|
+
|
|
48
|
+
The trained models come with the package and the web interface is included, so
|
|
49
|
+
nothing else has to be downloaded or installed separately.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Using it
|
|
53
|
+
|
|
54
|
+
Run it with nothing after it and the web interface opens in the browser. It
|
|
55
|
+
listens only on your own machine, so the files you load stay on it.
|
|
56
|
+
|
|
57
|
+
vartrace
|
|
58
|
+
|
|
59
|
+
Give it files instead and it works from the command line, one file per cell or
|
|
60
|
+
one file holding many cells:
|
|
61
|
+
|
|
62
|
+
vartrace cell_01.vcf
|
|
63
|
+
vartrace cells/*.tsv --threshold 0.867 --output results.tsv
|
|
64
|
+
|
|
65
|
+
Options:
|
|
66
|
+
|
|
67
|
+
--threshold 0.5 by default. 0.867 is the high confidence mode, where
|
|
68
|
+
precision is about 0.99 at the cost of some recall.
|
|
69
|
+
--no-annotate do not ask Ensembl for dbSNP and gnomAD when the input
|
|
70
|
+
carries no annotation of its own.
|
|
71
|
+
--output where to write the table. A second file with the same name
|
|
72
|
+
and .info.txt records what produced it.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Input
|
|
76
|
+
|
|
77
|
+
A plain VCF, as it comes from the variant caller, or a table annotated with
|
|
78
|
+
ANNOVAR, where the VCF fields sit in the Otherinfo columns.
|
|
79
|
+
|
|
80
|
+
A VCF may hold one sample or many. One column per cell barcode is read as many
|
|
81
|
+
cells, and a cell is counted for a variant only when its genotype or its allele
|
|
82
|
+
depth says it carries it.
|
|
83
|
+
|
|
84
|
+
Only biallelic single base substitutions are used, because that is what the
|
|
85
|
+
models were trained on. Anything else is counted and skipped, and the count is
|
|
86
|
+
reported.
|
|
87
|
+
|
|
88
|
+
If the input carries no database annotation, VarTrace looks up dbSNP and gnomAD
|
|
89
|
+
through the public Ensembl service. That needs an internet connection and can be
|
|
90
|
+
switched off. Of the five database features these two carry nearly all of the
|
|
91
|
+
weight, which is why the other two are used when present but never fetched.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## Output
|
|
95
|
+
|
|
96
|
+
A table with one row per variant: the cell, the position, the alleles, the
|
|
97
|
+
score, the call at the chosen threshold, and which model was used.
|
|
98
|
+
|
|
99
|
+
Alongside it a short record of what produced those numbers, including the model
|
|
100
|
+
file and its fingerprint, and where the annotation came from.
|
|
101
|
+
|
|
102
|
+
The tool also states in words why it chose the model it did, for example that
|
|
103
|
+
the input had dbSNP and gnomAD but not REDIportal or COSMIC.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## The models
|
|
107
|
+
|
|
108
|
+
Five models come with the package and one is chosen automatically from what the
|
|
109
|
+
input supports. No database annotation at all, or all four databases, is served
|
|
110
|
+
by a model trained for exactly that case, with or without the cross-cell
|
|
111
|
+
features depending on whether more than one cell was given. Anything in between
|
|
112
|
+
goes to a model trained with feature groups withheld at random, which is the
|
|
113
|
+
only one that can take a partial input.
|
|
114
|
+
|
|
115
|
+
Each model carries a description in JSON next to it: the algorithm, its
|
|
116
|
+
settings, the features it expects in order, what it was trained on, and its
|
|
117
|
+
validation metrics.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## Scope and limitations
|
|
121
|
+
|
|
122
|
+
The models were trained on 45 single cells from three cell lines, sequenced with
|
|
123
|
+
one technology, with paired DNA sequencing as the ground truth. They have not
|
|
124
|
+
been validated on primary tissue or on other protocols.
|
|
125
|
+
|
|
126
|
+
The score answers one question: is the variant present in the genome. It does
|
|
127
|
+
not say which biological process produced a variant that is absent from it.
|
|
128
|
+
|
|
129
|
+
The models were trained on gnomAD as ANNOVAR supplies it. When VarTrace fetches
|
|
130
|
+
the frequencies from Ensembl instead, the release may differ; which one answered
|
|
131
|
+
is recorded in the output.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## Licence
|
|
135
|
+
|
|
136
|
+
Code: PolyForm Noncommercial License 1.0.0, see LICENSE.
|
|
137
|
+
Trained models: Creative Commons Attribution-NonCommercial 4.0, see
|
|
138
|
+
LICENSE-MODELS.
|
|
139
|
+
|
|
140
|
+
Free for research and any other non-commercial use. Commercial use is not
|
|
141
|
+
permitted.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## Citation
|
|
145
|
+
|
|
146
|
+
To follow.
|