tskit 1.0.0b3__cp313-cp313-win_amd64.whl → 1.0.1__cp313-cp313-win_amd64.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.
- _tskit.cp313-win_amd64.pyd +0 -0
- tskit/_version.py +1 -1
- tskit/drawing.py +2 -4
- tskit/genotypes.py +23 -20
- tskit/metadata.py +1 -1
- tskit/tables.py +51 -26
- tskit/text_formats.py +4 -0
- tskit/trees.py +413 -245
- tskit/util.py +6 -7
- {tskit-1.0.0b3.dist-info → tskit-1.0.1.dist-info}/METADATA +8 -8
- tskit-1.0.1.dist-info/RECORD +27 -0
- {tskit-1.0.0b3.dist-info → tskit-1.0.1.dist-info}/WHEEL +1 -1
- tskit-1.0.0b3.dist-info/RECORD +0 -27
- {tskit-1.0.0b3.dist-info → tskit-1.0.1.dist-info}/entry_points.txt +0 -0
- {tskit-1.0.0b3.dist-info → tskit-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {tskit-1.0.0b3.dist-info → tskit-1.0.1.dist-info}/top_level.txt +0 -0
tskit/util.py
CHANGED
|
@@ -31,7 +31,6 @@ import json
|
|
|
31
31
|
import numbers
|
|
32
32
|
import os
|
|
33
33
|
import textwrap
|
|
34
|
-
from typing import Union
|
|
35
34
|
|
|
36
35
|
import numpy as np
|
|
37
36
|
|
|
@@ -86,9 +85,9 @@ def is_unknown_time(time):
|
|
|
86
85
|
non-NAN value.
|
|
87
86
|
|
|
88
87
|
:param time: Value or array to check.
|
|
89
|
-
:type time:
|
|
88
|
+
:type time: float | array-like
|
|
90
89
|
:return: A single boolean or array of booleans the same shape as ``time``.
|
|
91
|
-
:rtype:
|
|
90
|
+
:rtype: bool | numpy.ndarray[bool]
|
|
92
91
|
"""
|
|
93
92
|
return np.asarray(time, dtype=np.float64).view(np.uint64) == np.float64(
|
|
94
93
|
UNKNOWN_TIME
|
|
@@ -771,13 +770,13 @@ def variant_html(variant):
|
|
|
771
770
|
+ f"""
|
|
772
771
|
<tr><td>Site Id</td><td>{format_number(site_id)}</td></tr>
|
|
773
772
|
<tr><td>Site Position</td><td>{format_number(site_position)}</td></tr>
|
|
774
|
-
<tr><td>Number of
|
|
773
|
+
<tr><td>Number of Nodes</td><td>{format_number(num_samples)}</td></tr>
|
|
775
774
|
<tr><td>Number of Alleles</td><td>{format_number(num_alleles)}</td></tr>
|
|
776
775
|
"""
|
|
777
776
|
+ "\n".join(
|
|
778
777
|
[
|
|
779
|
-
f"""<tr><td>
|
|
780
|
-
|
|
778
|
+
f"""<tr><td>Nodes with Allele {'missing' if k is None
|
|
779
|
+
else "'" + k + "'"}</td><td>"""
|
|
781
780
|
+ f"{format_number(counts[k])}"
|
|
782
781
|
+ " "
|
|
783
782
|
+ f"({format_number(freqs[k] * 100, 2)}%)"
|
|
@@ -855,7 +854,7 @@ def truncate_rows(num_rows, limit=None):
|
|
|
855
854
|
)
|
|
856
855
|
|
|
857
856
|
|
|
858
|
-
def random_nucleotides(length: numbers.Number, *, seed:
|
|
857
|
+
def random_nucleotides(length: numbers.Number, *, seed: int | None = None) -> str:
|
|
859
858
|
"""
|
|
860
859
|
Returns a random string of nucleotides of the specified length. Characters
|
|
861
860
|
are drawn uniformly from the alphabet "ACTG".
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tskit
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: The tree sequence toolkit.
|
|
5
5
|
Author-email: Tskit Developers <admin@tskit.dev>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://tskit.dev/tskit
|
|
8
8
|
Project-URL: Documentation, https://tskit.dev/tskit/docs/stable
|
|
9
9
|
Project-URL: Changelog, https://tskit.dev/tskit/docs/stable/changelogs.html
|
|
@@ -17,11 +17,11 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
21
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
22
|
Classifier: Development Status :: 5 - Production/Stable
|
|
22
23
|
Classifier: Environment :: Other Environment
|
|
23
24
|
Classifier: Intended Audience :: Science/Research
|
|
24
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
25
25
|
Classifier: Operating System :: POSIX
|
|
26
26
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
27
27
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -39,9 +39,9 @@ Requires-Dist: dendropy==5.0.1; extra == "test"
|
|
|
39
39
|
Requires-Dist: kastore==0.3.3; extra == "test"
|
|
40
40
|
Requires-Dist: lshmm==0.0.8; extra == "test"
|
|
41
41
|
Requires-Dist: msgpack==1.1.0; extra == "test"
|
|
42
|
-
Requires-Dist: msprime==1.
|
|
42
|
+
Requires-Dist: msprime==1.4.0b2; extra == "test"
|
|
43
43
|
Requires-Dist: networkx==3.2.1; extra == "test"
|
|
44
|
-
Requires-Dist: numba==0.
|
|
44
|
+
Requires-Dist: numba==0.63.1; extra == "test"
|
|
45
45
|
Requires-Dist: portion==2.6.0; extra == "test"
|
|
46
46
|
Requires-Dist: pytest==8.3.5; extra == "test"
|
|
47
47
|
Requires-Dist: pytest-cov==6.0.0; extra == "test"
|
|
@@ -57,8 +57,8 @@ Requires-Dist: breathe==4.35.0; extra == "docs"
|
|
|
57
57
|
Requires-Dist: sphinx-autodoc-typehints==2.3.0; extra == "docs"
|
|
58
58
|
Requires-Dist: sphinx-issues==5.0.0; extra == "docs"
|
|
59
59
|
Requires-Dist: sphinx-argparse==0.5.2; extra == "docs"
|
|
60
|
-
Requires-Dist: msprime==1.
|
|
61
|
-
Requires-Dist: numba==0.
|
|
60
|
+
Requires-Dist: msprime==1.4.0b2; extra == "docs"
|
|
61
|
+
Requires-Dist: numba==0.63.1; extra == "docs"
|
|
62
62
|
Requires-Dist: sphinx-book-theme; extra == "docs"
|
|
63
63
|
Requires-Dist: pandas==2.2.3; extra == "docs"
|
|
64
64
|
Provides-Extra: dev
|
|
@@ -84,7 +84,7 @@ Requires-Dist: tszip; extra == "dev"
|
|
|
84
84
|
Requires-Dist: xmlunittest; extra == "dev"
|
|
85
85
|
Requires-Dist: newick; extra == "dev"
|
|
86
86
|
Requires-Dist: zarr<3; extra == "dev"
|
|
87
|
-
Requires-Dist: jupyter-book; extra == "dev"
|
|
87
|
+
Requires-Dist: jupyter-book<2; extra == "dev"
|
|
88
88
|
Requires-Dist: breathe; extra == "dev"
|
|
89
89
|
Requires-Dist: sphinx-autodoc-typehints; extra == "dev"
|
|
90
90
|
Requires-Dist: sphinx-issues; extra == "dev"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
_tskit.cp313-win_amd64.pyd,sha256=_rFzQ-21bJUg1eE4lBQ4vNZDpmcOwKoHOuzTtdmTOW8,578048
|
|
2
|
+
tskit/__init__.py,sha256=iw2dYlGVXcJUCDUpIuzj-x6h9SvF-j2wvbWkx5LUsSI,3312
|
|
3
|
+
tskit/__main__.py,sha256=Dnv25YfzrMDwYSW3pHqOdoa7EZI3oUEw81vU6x3qY_c,71
|
|
4
|
+
tskit/_version.py,sha256=uX-N5gTXhCS8F_YN-H2K2SKlta42U93gKUCKNc_D82c,146
|
|
5
|
+
tskit/cli.py,sha256=kcWbw-lujEAYT5GQXU2gzcZOW3RHhcegH1D7S1-RNFE,9029
|
|
6
|
+
tskit/combinatorics.py,sha256=tCMk1iJU5kBg-8dd_ZVy_WlTHA4VjYJsFYKUZ3MwHEE,57397
|
|
7
|
+
tskit/drawing.py,sha256=K5sTZidUpQVmE5NaO_GZ66mpZ0DvoljNuVeQJ1Kroco,114065
|
|
8
|
+
tskit/exceptions.py,sha256=1BelxLcli8oc0jnHu9BD0g1ESu8Aolw9bigfTA9GGms,2462
|
|
9
|
+
tskit/genotypes.py,sha256=WTUYJzTbjab_Rs4_sBzdCvPTpOV19hpd7vtpk33Mj4k,18269
|
|
10
|
+
tskit/intervals.py,sha256=0FLGFrxba6QzQLtd-a-xLonxM1fWwgtLpml_jOvz_Y4,24532
|
|
11
|
+
tskit/metadata.py,sha256=vApzwCVGJF-Cb4TdwX4zHBzNLDkctX3AS8qjAGzuhl8,43121
|
|
12
|
+
tskit/provenance.py,sha256=2xOYE44fTdvp857J1Y6YCDIjpZT4zDR0eM3yPIdeHII,5113
|
|
13
|
+
tskit/provenance.schema.json,sha256=flKdf8oNmUui_84lX4EKVHuxp2eUTzOCmoXWE8uAyEI,2189
|
|
14
|
+
tskit/stats.py,sha256=QAikzPcmiGzKjT4DIS09KoO5VyOgVu5I4fTGQdansE8,7243
|
|
15
|
+
tskit/tables.py,sha256=423H77OZ4iCqpKOBwrfrN82fbYyg6GSb3C1PI_xqA68,200675
|
|
16
|
+
tskit/text_formats.py,sha256=NBA9hyshoc8dMUrwAxCF0yLW4RcbZ6FhgRsNJDbadfQ,15428
|
|
17
|
+
tskit/trees.py,sha256=T3JO80vx6c-oIuyvgC76rVepGbqI-xVn848IL62nIL8,512821
|
|
18
|
+
tskit/util.py,sha256=a5I1AORM_3jPiMWxdD2fmEn7l_y-CxkIHY1vX1-wTUY,36398
|
|
19
|
+
tskit/vcf.py,sha256=U6IqXuw8mWO7K5DgjmKH9s7GjSJHrnCDK53sMoq9UNQ,8814
|
|
20
|
+
tskit/jit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
tskit/jit/numba.py,sha256=vyH3Hpa1_a3PJMGLli9Zw8_t8nPJx7pO46z5PFd7xP4,25453
|
|
22
|
+
tskit-1.0.1.dist-info/licenses/LICENSE,sha256=h92w-U3mbrRNLntc2_9qHbCB2MmJsvDSBia6BTUCwLE,1099
|
|
23
|
+
tskit-1.0.1.dist-info/METADATA,sha256=bqeeOmfzwj-MUl8ctb1CQDM0CtXQ6VFJATI4pLjRmf4,4660
|
|
24
|
+
tskit-1.0.1.dist-info/WHEEL,sha256=-WvvtQtdhM1F5HMi-4hSXLQ_1Tg6qJRWO1HnLNr4mCU,102
|
|
25
|
+
tskit-1.0.1.dist-info/entry_points.txt,sha256=3Zik1X8C9Io1WvmTRBao5yEG5Kwy_xhFdM-ABC9TkWQ,47
|
|
26
|
+
tskit-1.0.1.dist-info/top_level.txt,sha256=6GsXJYqSCR5Uhb4Js0BBzC0EFXE0FA5ywslsixSbwGM,13
|
|
27
|
+
tskit-1.0.1.dist-info/RECORD,,
|
tskit-1.0.0b3.dist-info/RECORD
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
_tskit.cp313-win_amd64.pyd,sha256=DU4BHk_OLyTqXvDxwfLVE2WCyqhz_4Q5OqVm4jQP9zk,574976
|
|
2
|
-
tskit/__init__.py,sha256=iw2dYlGVXcJUCDUpIuzj-x6h9SvF-j2wvbWkx5LUsSI,3312
|
|
3
|
-
tskit/__main__.py,sha256=Dnv25YfzrMDwYSW3pHqOdoa7EZI3oUEw81vU6x3qY_c,71
|
|
4
|
-
tskit/_version.py,sha256=756OoUWQ2Bm47KCyyo3Q9a0S2Nwk--XK57hFRaUCSZc,148
|
|
5
|
-
tskit/cli.py,sha256=kcWbw-lujEAYT5GQXU2gzcZOW3RHhcegH1D7S1-RNFE,9029
|
|
6
|
-
tskit/combinatorics.py,sha256=tCMk1iJU5kBg-8dd_ZVy_WlTHA4VjYJsFYKUZ3MwHEE,57397
|
|
7
|
-
tskit/drawing.py,sha256=SVG2r0IOne57oEKwLb7rPOhoXpz8v9r6lJmKj7rfeXs,114112
|
|
8
|
-
tskit/exceptions.py,sha256=1BelxLcli8oc0jnHu9BD0g1ESu8Aolw9bigfTA9GGms,2462
|
|
9
|
-
tskit/genotypes.py,sha256=Cj88gw7aulbcW9IxmUEDsKyUIFe977jqlHG5KhbJXVk,18042
|
|
10
|
-
tskit/intervals.py,sha256=0FLGFrxba6QzQLtd-a-xLonxM1fWwgtLpml_jOvz_Y4,24532
|
|
11
|
-
tskit/metadata.py,sha256=oEBhL3OpyvwNI9gZ2_-ee_Lo7VMixZ9SJgUNom6_w1U,43112
|
|
12
|
-
tskit/provenance.py,sha256=2xOYE44fTdvp857J1Y6YCDIjpZT4zDR0eM3yPIdeHII,5113
|
|
13
|
-
tskit/provenance.schema.json,sha256=flKdf8oNmUui_84lX4EKVHuxp2eUTzOCmoXWE8uAyEI,2189
|
|
14
|
-
tskit/stats.py,sha256=QAikzPcmiGzKjT4DIS09KoO5VyOgVu5I4fTGQdansE8,7243
|
|
15
|
-
tskit/tables.py,sha256=bEThyiCg0MNLpdCcaEmNjrUyYCUAbF22mt75T5SV-xc,199394
|
|
16
|
-
tskit/text_formats.py,sha256=ZDGEhAhar9Z8Zjjg3SZwm5-AQxHVSTjZy4kifZqTNtQ,15262
|
|
17
|
-
tskit/trees.py,sha256=YSZkvAuYn5r6NN0NSXjay6eaHx5Jo8Xe3Caoxc2fWnQ,502762
|
|
18
|
-
tskit/util.py,sha256=OYlDi5phgNiirgiG62_MMzyiMC1CSKI4IGrY4gbj4i4,36448
|
|
19
|
-
tskit/vcf.py,sha256=U6IqXuw8mWO7K5DgjmKH9s7GjSJHrnCDK53sMoq9UNQ,8814
|
|
20
|
-
tskit/jit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
tskit/jit/numba.py,sha256=vyH3Hpa1_a3PJMGLli9Zw8_t8nPJx7pO46z5PFd7xP4,25453
|
|
22
|
-
tskit-1.0.0b3.dist-info/licenses/LICENSE,sha256=h92w-U3mbrRNLntc2_9qHbCB2MmJsvDSBia6BTUCwLE,1099
|
|
23
|
-
tskit-1.0.0b3.dist-info/METADATA,sha256=USP4uEvE8mYV_9hkRl-SorYxGlQTomQAeBhs0IjpbfQ,4645
|
|
24
|
-
tskit-1.0.0b3.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
|
|
25
|
-
tskit-1.0.0b3.dist-info/entry_points.txt,sha256=3Zik1X8C9Io1WvmTRBao5yEG5Kwy_xhFdM-ABC9TkWQ,47
|
|
26
|
-
tskit-1.0.0b3.dist-info/top_level.txt,sha256=6GsXJYqSCR5Uhb4Js0BBzC0EFXE0FA5ywslsixSbwGM,13
|
|
27
|
-
tskit-1.0.0b3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|