yclade 0.0.0__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.
- yclade/__init__.py +0 -0
- yclade/const.py +9 -0
- yclade/find.py +36 -0
- yclade/find_test.py +71 -0
- yclade/snps.py +11 -0
- yclade/snps_test.py +34 -0
- yclade/tree.py +88 -0
- yclade/tree_test.py +98 -0
- yclade/types.py +34 -0
- yclade-0.0.0.dist-info/LICENSE +21 -0
- yclade-0.0.0.dist-info/METADATA +30 -0
- yclade-0.0.0.dist-info/RECORD +14 -0
- yclade-0.0.0.dist-info/WHEEL +5 -0
- yclade-0.0.0.dist-info/top_level.txt +1 -0
yclade/__init__.py
ADDED
|
File without changes
|
yclade/const.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Constants for yclade."""
|
|
2
|
+
|
|
3
|
+
YTREE_DEFAULT_VERSION = "13.01.0"
|
|
4
|
+
YTREE_URL = (
|
|
5
|
+
"https://github.com/YFullTeam/YTree/raw/refs/heads/master/"
|
|
6
|
+
"ytree/tree_{version}.zip"
|
|
7
|
+
)
|
|
8
|
+
YTREE_ZIP_FILENAME = "tree_{version}.zip"
|
|
9
|
+
YTREE_JSON_FILENAME = "tree_{version}.json"
|
yclade/find.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Tools for finding the best sublade for a given set of SNPs."""
|
|
2
|
+
|
|
3
|
+
from yclade.types import CladeMatchInfo, CladeName, SnpResults, YTreeData
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def find_nodes_with_positive_matches(
|
|
7
|
+
tree: YTreeData, snps: SnpResults
|
|
8
|
+
) -> set[CladeName]:
|
|
9
|
+
"""Find the nodes in the tree that have at least one matching positive SNP."""
|
|
10
|
+
nodes = set()
|
|
11
|
+
positives = set(tree.snp_aliases.get(snp, snp) for snp in snps.positive)
|
|
12
|
+
for clade, clade_snps in tree.clade_snps.items():
|
|
13
|
+
if positives & clade_snps:
|
|
14
|
+
nodes.add(clade)
|
|
15
|
+
return nodes
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def get_nodes_with_match_info(
|
|
19
|
+
tree: YTreeData, snps: SnpResults
|
|
20
|
+
) -> dict[CladeName, CladeMatchInfo]:
|
|
21
|
+
"""Find the nodes in the tree that have overlap with postive or negative SNPs."""
|
|
22
|
+
node_info = {}
|
|
23
|
+
positives = set(tree.snp_aliases.get(snp, snp) for snp in snps.positive)
|
|
24
|
+
negatives = set(tree.snp_aliases.get(snp, snp) for snp in snps.negative)
|
|
25
|
+
for clade, clade_snps in tree.clade_snps.items():
|
|
26
|
+
if len(clade_snps) == 0:
|
|
27
|
+
continue
|
|
28
|
+
clade_positives = len(positives & clade_snps)
|
|
29
|
+
clade_negatives = len(negatives & clade_snps)
|
|
30
|
+
if clade_positives or clade_negatives:
|
|
31
|
+
node_info[clade] = CladeMatchInfo(
|
|
32
|
+
positive=clade_positives,
|
|
33
|
+
negative=clade_negatives,
|
|
34
|
+
length=len(clade_snps),
|
|
35
|
+
)
|
|
36
|
+
return node_info
|
yclade/find_test.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Unit tests for the yclade.find module."""
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
from yclade import tree
|
|
6
|
+
import yclade.find
|
|
7
|
+
import yclade.snps
|
|
8
|
+
from yclade.tree import _build_graph, _get_clade_snps, _clade_snps_to_snp_aliases
|
|
9
|
+
from yclade.types import CladeMatchInfo, YTreeData
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@pytest.fixture
|
|
13
|
+
def tree_data():
|
|
14
|
+
raw_data = {
|
|
15
|
+
"id": "root",
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "A",
|
|
19
|
+
"snps": "a, b, c",
|
|
20
|
+
"children": [
|
|
21
|
+
{
|
|
22
|
+
"id": "B",
|
|
23
|
+
"snps": "a, b, d, e, f/z",
|
|
24
|
+
"children": [
|
|
25
|
+
{"id": "C", "snps": "a, b, d, e, f/z, g", "children": []},
|
|
26
|
+
],
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
}
|
|
32
|
+
graph = _build_graph(raw_data)
|
|
33
|
+
clade_snps = _get_clade_snps(raw_data)
|
|
34
|
+
snp_aliases = _clade_snps_to_snp_aliases(clade_snps)
|
|
35
|
+
return YTreeData(graph=graph, clade_snps=clade_snps, snp_aliases=snp_aliases)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def test_find_nodes_with_positive_matches(tree_data):
|
|
39
|
+
snps = yclade.snps.parse_snp_results("a+,b-,d+")
|
|
40
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
41
|
+
assert nodes == {"A", "B", "C"}
|
|
42
|
+
|
|
43
|
+
def test_find_nodes_with_positive_matches_unknown(tree_data):
|
|
44
|
+
snps = yclade.snps.parse_snp_results("x+")
|
|
45
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
46
|
+
assert nodes == set()
|
|
47
|
+
|
|
48
|
+
def test_find_nodes_with_positive_matches_single(tree_data):
|
|
49
|
+
snps = yclade.snps.parse_snp_results("g+")
|
|
50
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
51
|
+
assert nodes == {"C"}
|
|
52
|
+
|
|
53
|
+
def test_get_nodes_with_match_info(tree_data):
|
|
54
|
+
snps = yclade.snps.parse_snp_results("a+,b-,d+")
|
|
55
|
+
node_info = yclade.find.get_nodes_with_match_info(tree_data, snps)
|
|
56
|
+
assert node_info == {
|
|
57
|
+
"A": CladeMatchInfo(positive=1, negative=1, length=3),
|
|
58
|
+
"B": CladeMatchInfo(positive=2, negative=1, length=5),
|
|
59
|
+
"C": CladeMatchInfo(positive=2, negative=1, length=6),
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
def test_find_nodes_with_positive_matches_alias(tree_data):
|
|
63
|
+
snps = yclade.snps.parse_snp_results("f+")
|
|
64
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
65
|
+
assert nodes == {"B", "C"}
|
|
66
|
+
snps = yclade.snps.parse_snp_results("z+")
|
|
67
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
68
|
+
assert nodes == {"B", "C"}
|
|
69
|
+
snps = yclade.snps.parse_snp_results("f/z+")
|
|
70
|
+
nodes = yclade.find.find_nodes_with_positive_matches(tree_data, snps)
|
|
71
|
+
assert nodes == {"B", "C"}
|
yclade/snps.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Tools for working with SNPs"""
|
|
2
|
+
|
|
3
|
+
from yclade.types import SnpResults
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def parse_snp_results(snp_string: str) -> SnpResults:
|
|
7
|
+
"""Parse a string of comma separate SNPs into SnpResults."""
|
|
8
|
+
snps = [snp.strip() for snp in snp_string.split(",")]
|
|
9
|
+
positive_snps = {snp.rstrip("+") for snp in snps if snp.endswith("+")}
|
|
10
|
+
negative_snps = {snp.rstrip("-") for snp in snps if snp.endswith("-")}
|
|
11
|
+
return SnpResults(positive=positive_snps, negative=negative_snps)
|
yclade/snps_test.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Tests for the yclade.snps module."""
|
|
2
|
+
|
|
3
|
+
import yclade.snps
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_parse_snp_results_with_white_space():
|
|
7
|
+
"""Test the parse_snp_results function with white space present."""
|
|
8
|
+
snp_string = "A+, Bb-, Ccc-, D+"
|
|
9
|
+
results = yclade.snps.parse_snp_results(snp_string)
|
|
10
|
+
assert results.positive == {"A", "D"}
|
|
11
|
+
assert results.negative == {"Bb", "Ccc"}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def test_parse_snp_results_without_white_space():
|
|
15
|
+
"""Test the parse_snp_results function without white space present."""
|
|
16
|
+
snp_string = "A+,Bb-,Ccc-,D+"
|
|
17
|
+
results = yclade.snps.parse_snp_results(snp_string)
|
|
18
|
+
assert results.positive == {"A", "D"}
|
|
19
|
+
assert results.negative == {"Bb", "Ccc"}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def test_parse_snp_results_empty():
|
|
23
|
+
"""Test the parse_snp_results function with an empty string."""
|
|
24
|
+
snp_string = ""
|
|
25
|
+
results = yclade.snps.parse_snp_results(snp_string)
|
|
26
|
+
assert results.positive == set()
|
|
27
|
+
assert results.negative == set()
|
|
28
|
+
|
|
29
|
+
def test_parse_snp_results_invalid():
|
|
30
|
+
"""Test the parse_snp_results function with an invalid string."""
|
|
31
|
+
snp_string = "invalid"
|
|
32
|
+
results = yclade.snps.parse_snp_results(snp_string)
|
|
33
|
+
assert results.positive == set()
|
|
34
|
+
assert results.negative == set()
|
yclade/tree.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Utilities to handle the Y tree data."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import logging
|
|
7
|
+
import urllib.request
|
|
8
|
+
import zipfile
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
import networkx as nx
|
|
12
|
+
from platformdirs import user_data_dir
|
|
13
|
+
|
|
14
|
+
from yclade.const import (
|
|
15
|
+
YTREE_DEFAULT_VERSION,
|
|
16
|
+
YTREE_URL,
|
|
17
|
+
YTREE_ZIP_FILENAME,
|
|
18
|
+
)
|
|
19
|
+
from yclade.types import CladeSnps, YTreeData, Snp
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def download_yfull_tree(
|
|
23
|
+
version: str | None = None, data_dir: Path | None = None, force: bool = False
|
|
24
|
+
) -> None:
|
|
25
|
+
"""Download the YFull tree."""
|
|
26
|
+
version = version or YTREE_DEFAULT_VERSION
|
|
27
|
+
data_dir = data_dir or Path(user_data_dir("yclade"))
|
|
28
|
+
data_dir.mkdir(parents=True, exist_ok=True)
|
|
29
|
+
file_path = data_dir / YTREE_ZIP_FILENAME.format(version=version)
|
|
30
|
+
if file_path.exists() and not force:
|
|
31
|
+
logging.info("YFull tree already downloaded to %s", file_path)
|
|
32
|
+
return
|
|
33
|
+
url = YTREE_URL.format(version=version)
|
|
34
|
+
urllib.request.urlretrieve(url, file_path)
|
|
35
|
+
logging.info("Downloaded YFull tree to %s", file_path)
|
|
36
|
+
with zipfile.ZipFile(file_path, "r") as zip_ref:
|
|
37
|
+
zip_ref.extractall(data_dir)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _build_graph(
|
|
41
|
+
node, graph: nx.DiGraph | None = None, parent: str | None = None
|
|
42
|
+
) -> nx.DiGraph:
|
|
43
|
+
"""Recursively build a DiGraph from the tree data."""
|
|
44
|
+
if graph is None:
|
|
45
|
+
graph = nx.DiGraph()
|
|
46
|
+
graph.add_node(node["id"])
|
|
47
|
+
if parent:
|
|
48
|
+
graph.add_edge(parent, node["id"])
|
|
49
|
+
for child in node.get("children", []):
|
|
50
|
+
_build_graph(node=child, graph=graph, parent=node["id"])
|
|
51
|
+
return graph
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _get_clade_snps(tree_data, snps: CladeSnps | None = None) -> CladeSnps:
|
|
55
|
+
"""Recursively get the dictionary of clade SNPs from the tree data."""
|
|
56
|
+
if not snps:
|
|
57
|
+
snps = {}
|
|
58
|
+
if "snps" in tree_data:
|
|
59
|
+
if tree_data["snps"]:
|
|
60
|
+
snps[tree_data["id"]] = set(tree_data["snps"].split(", "))
|
|
61
|
+
else:
|
|
62
|
+
snps[tree_data["id"]] = set()
|
|
63
|
+
else:
|
|
64
|
+
snps[tree_data["id"]] = set()
|
|
65
|
+
for child in tree_data.get("children", []):
|
|
66
|
+
_get_clade_snps(child, snps)
|
|
67
|
+
return snps
|
|
68
|
+
|
|
69
|
+
def _clade_snps_to_snp_aliases(clade_snps: CladeSnps) -> dict[Snp, Snp]:
|
|
70
|
+
"""Create a dictionary of SNP aliases from the clade SNPs."""
|
|
71
|
+
snp_aliases = {}
|
|
72
|
+
for snps in clade_snps.values():
|
|
73
|
+
for snp in snps:
|
|
74
|
+
if "/" in snp:
|
|
75
|
+
alias1, alias2 = snp.split("/", 1)
|
|
76
|
+
snp_aliases[alias1] = snp
|
|
77
|
+
snp_aliases[alias2] = snp
|
|
78
|
+
return snp_aliases
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def yfull_tree_to_tree_data(file_path: Path) -> YTreeData:
|
|
82
|
+
"""Convert a YFull tree file to a tree data dictionary."""
|
|
83
|
+
with open(file_path) as f:
|
|
84
|
+
tree_data = json.load(f)
|
|
85
|
+
graph = _build_graph(tree_data)
|
|
86
|
+
clade_snps = _get_clade_snps(tree_data)
|
|
87
|
+
snp_aliases = _clade_snps_to_snp_aliases(clade_snps)
|
|
88
|
+
return YTreeData(graph=graph, clade_snps=clade_snps, snp_aliases=snp_aliases)
|
yclade/tree_test.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""Unit tests for the yclade.tree module."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import tempfile
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import networkx as nx
|
|
8
|
+
import pytest
|
|
9
|
+
|
|
10
|
+
import yclade.tree
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@pytest.fixture
|
|
14
|
+
def tree_data():
|
|
15
|
+
return {
|
|
16
|
+
"id": "root",
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"id": "A",
|
|
20
|
+
"snps": "",
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"id": "B",
|
|
24
|
+
"snps": "s1/t1, s2",
|
|
25
|
+
"children": [
|
|
26
|
+
{"id": "C", "children": []},
|
|
27
|
+
{"id": "D", "children": []},
|
|
28
|
+
],
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "E",
|
|
34
|
+
"snps": "s3",
|
|
35
|
+
"children": [
|
|
36
|
+
{"id": "F", "children": [{"id": "G", "children": []}]},
|
|
37
|
+
{"id": "H", "children": []},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def test_build_graph(tree_data):
|
|
45
|
+
graph = yclade.tree._build_graph(tree_data)
|
|
46
|
+
assert set(graph.nodes) == {
|
|
47
|
+
"root",
|
|
48
|
+
"A",
|
|
49
|
+
"B",
|
|
50
|
+
"C",
|
|
51
|
+
"D",
|
|
52
|
+
"E",
|
|
53
|
+
"F",
|
|
54
|
+
"G",
|
|
55
|
+
"H",
|
|
56
|
+
}
|
|
57
|
+
assert list(nx.dfs_preorder_nodes(graph, source="root")) == [
|
|
58
|
+
"root",
|
|
59
|
+
"A",
|
|
60
|
+
"B",
|
|
61
|
+
"C",
|
|
62
|
+
"D",
|
|
63
|
+
"E",
|
|
64
|
+
"F",
|
|
65
|
+
"G",
|
|
66
|
+
"H",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def test_yfull_tree_to_tree_data(tree_data):
|
|
71
|
+
content = json.dumps(tree_data)
|
|
72
|
+
with tempfile.NamedTemporaryFile("w") as f:
|
|
73
|
+
f.write(content)
|
|
74
|
+
f.seek(0)
|
|
75
|
+
tree_data_object = yclade.tree.yfull_tree_to_tree_data(Path(f.name))
|
|
76
|
+
assert set(tree_data_object.graph.nodes) == {
|
|
77
|
+
"root",
|
|
78
|
+
"A",
|
|
79
|
+
"B",
|
|
80
|
+
"C",
|
|
81
|
+
"D",
|
|
82
|
+
"E",
|
|
83
|
+
"F",
|
|
84
|
+
"G",
|
|
85
|
+
"H",
|
|
86
|
+
}
|
|
87
|
+
assert tree_data_object.clade_snps == {
|
|
88
|
+
"root": set(),
|
|
89
|
+
"A": set(),
|
|
90
|
+
"B": {"s1/t1", "s2"},
|
|
91
|
+
"C": set(),
|
|
92
|
+
"D": set(),
|
|
93
|
+
"E": {"s3"},
|
|
94
|
+
"F": set(),
|
|
95
|
+
"G": set(),
|
|
96
|
+
"H": set(),
|
|
97
|
+
}
|
|
98
|
+
assert tree_data_object.snp_aliases == {"s1": "s1/t1", "t1": "s1/t1"}
|
yclade/types.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Types for yclade."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
import networkx as nx
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Snp = str
|
|
9
|
+
CladeName = str
|
|
10
|
+
CladeSnps = dict[CladeName, set[Snp]]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class YTreeData:
|
|
15
|
+
"""Y tree data structure."""
|
|
16
|
+
|
|
17
|
+
graph: nx.DiGraph
|
|
18
|
+
clade_snps: CladeSnps
|
|
19
|
+
snp_aliases: dict[Snp, Snp]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass
|
|
23
|
+
class SnpResults:
|
|
24
|
+
"""A set of positive and negative Y SNP test results."""
|
|
25
|
+
positive: set[Snp]
|
|
26
|
+
negative: set[Snp]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@dataclass
|
|
30
|
+
class CladeMatchInfo:
|
|
31
|
+
"""A data type containing the number of positive and negative SNPs matched."""
|
|
32
|
+
positive: int
|
|
33
|
+
negative: int
|
|
34
|
+
length: int
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 David Straub
|
|
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,30 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: yclade
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: A Python library to find the position on the human Y chromosome tree given a set of single nucleotide polymorphisms (SNPs).
|
|
5
|
+
Author-email: David Straub <straub@protonmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: platformdirs
|
|
11
|
+
Requires-Dist: networkx
|
|
12
|
+
Provides-Extra: test
|
|
13
|
+
Requires-Dist: pytest>=8.0.0; extra == "test"
|
|
14
|
+
Requires-Dist: mypy; extra == "test"
|
|
15
|
+
|
|
16
|
+
# yclade
|
|
17
|
+
|
|
18
|
+
A Python library to find the position on the human Y chromosome tree given a set of single nucleotide polymorphisms (SNPs).
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install yclade
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Credits
|
|
27
|
+
|
|
28
|
+
The Y tree data is from [YFull](https://www.yfull.com/) and [is shared](https://github.com/YFullTeam/YTree) under the [Creative Commons Attribution 4.0 International Public License](https://github.com/YFullTeam/YTree/blob/master/LICENSE.md).
|
|
29
|
+
|
|
30
|
+
The code has been tested on SNP data obtained from [YSEQ](https://www.yseq.net/) test results.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
yclade/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
yclade/const.py,sha256=mdkhQlciLRmLwbKBZLJXCNZ9xq7m6ocw-fPuVgif_lc,260
|
|
3
|
+
yclade/find.py,sha256=xnBTmjHVYnYPrp3QVAZnzSZmLgYHzVh6NsTggoiRXIQ,1390
|
|
4
|
+
yclade/find_test.py,sha256=8hzjk7-RtfrihCNGT6VpKsBGkIRKVRISYq3zCS-lqMk,2556
|
|
5
|
+
yclade/snps.py,sha256=E_Il2uuhSucC741uh-aHq_BZs9pnpnkEY_Q9RR9YYnI,470
|
|
6
|
+
yclade/snps_test.py,sha256=uAdGKP8P4nAN82mUVRnRwocPEBcHdVTeSyPB0cBj7a8,1187
|
|
7
|
+
yclade/tree.py,sha256=1uJjQOhuEjB4JUZp8SGwhiCnmPdQVlTjjcov8KVf4YE,2888
|
|
8
|
+
yclade/tree_test.py,sha256=GTTWLcf_7c5B8t18bOoAIy2l7RQ0FNgtUBgvpLG-_zU,2140
|
|
9
|
+
yclade/types.py,sha256=o1_wPiOScjYcy5_9ItVNe9D7kLeXjuq6sjZLFtV-2x0,599
|
|
10
|
+
yclade-0.0.0.dist-info/LICENSE,sha256=zeO4W8lrIFQRpHzQ88dbNM0gDi03IflvyswHwogi-5M,1069
|
|
11
|
+
yclade-0.0.0.dist-info/METADATA,sha256=aqgVuWFzz_qou_HheFpayXFYwjsRSE21nSS3-l2yZWU,1023
|
|
12
|
+
yclade-0.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
13
|
+
yclade-0.0.0.dist-info/top_level.txt,sha256=bBA9FrfLDaCxPWHBV2GcXnJ_kt1K1yxWzG-JphOnoAM,7
|
|
14
|
+
yclade-0.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
yclade
|