svphaser 2.0.1__py3-none-any.whl → 2.0.2__py3-none-any.whl
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.
- svphaser/_version.py +2 -2
- svphaser/phasing/io.py +7 -6
- {svphaser-2.0.1.dist-info → svphaser-2.0.2.dist-info}/METADATA +1 -1
- {svphaser-2.0.1.dist-info → svphaser-2.0.2.dist-info}/RECORD +7 -7
- {svphaser-2.0.1.dist-info → svphaser-2.0.2.dist-info}/WHEEL +0 -0
- {svphaser-2.0.1.dist-info → svphaser-2.0.2.dist-info}/entry_points.txt +0 -0
- {svphaser-2.0.1.dist-info → svphaser-2.0.2.dist-info}/licenses/LICENSE +0 -0
svphaser/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (2, 0,
|
|
31
|
+
__version__ = version = '2.0.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 0, 2)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
svphaser/phasing/io.py
CHANGED
|
@@ -157,7 +157,7 @@ def _vcf_info_lookup(
|
|
|
157
157
|
info_dict[info_key] = v
|
|
158
158
|
lookup[key] = {
|
|
159
159
|
"REF": rec.REF,
|
|
160
|
-
"ALT": rec.ALT
|
|
160
|
+
"ALT": ",".join(rec.ALT) if rec.ALT else "<N>",
|
|
161
161
|
"QUAL": rec.QUAL if rec.QUAL is not None else ".",
|
|
162
162
|
"FILTER": rec.FILTER if rec.FILTER else "PASS",
|
|
163
163
|
"INFO": info_dict,
|
|
@@ -196,17 +196,18 @@ def _write_headers(
|
|
|
196
196
|
out.write("#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\t" + sample_name + "\n")
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
def _compose_info_str(
|
|
200
|
-
orig_info: dict[str, object],
|
|
201
|
-
svtype: object,
|
|
202
|
-
gq_label: object,
|
|
203
|
-
) -> str:
|
|
199
|
+
def _compose_info_str(orig_info: dict[str, object], svtype: object, gq_label: object) -> str:
|
|
204
200
|
"""Compose the INFO string with SVTYPE first, original keys (no duplicate), then GQBIN."""
|
|
205
201
|
items: list[str] = []
|
|
206
202
|
for k, v in orig_info.items():
|
|
207
203
|
if k == "SVTYPE":
|
|
208
204
|
continue
|
|
209
205
|
items.append(f"{k}={v}")
|
|
206
|
+
# treat boolean True as a FLAG (bare key). Keep everything else as k=v.
|
|
207
|
+
if v is True:
|
|
208
|
+
items.append(k)
|
|
209
|
+
else:
|
|
210
|
+
items.append(f"{k}={v}")
|
|
210
211
|
if svtype:
|
|
211
212
|
items.insert(0, f"SVTYPE={svtype}")
|
|
212
213
|
if gq_label is not None and pd.notnull(gq_label):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: svphaser
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Structural-variant phasing from HP-tagged long-read BAMs
|
|
5
5
|
Project-URL: Homepage, https://github.com/your-org/svphaser
|
|
6
6
|
Project-URL: Issues, https://github.com/your-org/svphaser/issues
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
svphaser/__init__.py,sha256=ytsjARd0ZTn3FbN2BEvpPXygBwQyLiQZ5VB2SyXKL18,2485
|
|
2
2
|
svphaser/__main__.py,sha256=lWe9boXc4JIpJEknv9dXqSsjS1Glk_FnYV9eBzUEzA0,86
|
|
3
|
-
svphaser/_version.py,sha256=
|
|
3
|
+
svphaser/_version.py,sha256=UFd-y4dR-HVHWzUJlgmJ3T05hh9C4Q-la-D9QTIoZw0,704
|
|
4
4
|
svphaser/cli.py,sha256=Qbo0IPsm6_Uhj2Ri_fuqX4NJlxC9APl70rtM0vOU4jk,5335
|
|
5
5
|
svphaser/logging.py,sha256=yw7Z8az-sZL-x4qhvPmu7aGVLbhSOYiSdrNqCO8bVtw,841
|
|
6
6
|
svphaser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
svphaser/phasing/__init__.py,sha256=RcXg2EGc7Dyuq8wDP-bJmtVNKs8f3YqByjTel0mMujM,464
|
|
8
8
|
svphaser/phasing/_workers.py,sha256=C7YKx9YYq8stoyMeVQsmEnMgTqulALCjWHhhAWb1MQ8,2862
|
|
9
9
|
svphaser/phasing/algorithms.py,sha256=9UetPSi5BDCvvhmCn8t1ia08lupqTOI-68azwK46hek,1745
|
|
10
|
-
svphaser/phasing/io.py,sha256=
|
|
10
|
+
svphaser/phasing/io.py,sha256=RXsCJb88zPB1tAHhlQ2tT3kHo-inD-tsQTCyWNUzM7o,9029
|
|
11
11
|
svphaser/phasing/types.py,sha256=b0K9ORyuwv3O1VbCm_ml1nLpQQv_dJsMKO8p4uTRn4k,814
|
|
12
|
-
svphaser-2.0.
|
|
13
|
-
svphaser-2.0.
|
|
14
|
-
svphaser-2.0.
|
|
15
|
-
svphaser-2.0.
|
|
16
|
-
svphaser-2.0.
|
|
12
|
+
svphaser-2.0.2.dist-info/METADATA,sha256=7kPl92IMR91GItQ_24ZDgGr8ITh8j5UAeqvZKz3TdRE,6430
|
|
13
|
+
svphaser-2.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
+
svphaser-2.0.2.dist-info/entry_points.txt,sha256=YFeRJLvcvTc4dazgyVOg3HJ4fNrvBrVDaPX6ULapqeU,46
|
|
15
|
+
svphaser-2.0.2.dist-info/licenses/LICENSE,sha256=qsY5iOcewwIwvhQbj7naSP6tpJAc05Mv0DfhrouPoBU,1102
|
|
16
|
+
svphaser-2.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|