bblean 0.7.5__cp313-cp313-win_amd64.whl → 0.7.6__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.
- bblean/_cpp_similarity.cp313-win_amd64.pyd +0 -0
- bblean/_version.py +3 -3
- bblean/bitbirch.py +18 -7
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/METADATA +1 -1
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/RECORD +9 -9
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/WHEEL +0 -0
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/entry_points.txt +0 -0
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/licenses/LICENSE +0 -0
- {bblean-0.7.5.dist-info → bblean-0.7.6.dist-info}/top_level.txt +0 -0
|
Binary file
|
bblean/_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 = '0.7.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 7,
|
|
31
|
+
__version__ = version = '0.7.6'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 7, 6)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g9e33f7183'
|
bblean/bitbirch.py
CHANGED
|
@@ -532,6 +532,7 @@ class _CentroidsMolIds(tp.TypedDict):
|
|
|
532
532
|
|
|
533
533
|
|
|
534
534
|
class _MedoidsMolIds(tp.TypedDict):
|
|
535
|
+
medoid_idxs: NDArray[np.int64]
|
|
535
536
|
medoids: NDArray[np.uint8]
|
|
536
537
|
mol_ids: list[list[int]]
|
|
537
538
|
|
|
@@ -926,32 +927,42 @@ class BitBirch:
|
|
|
926
927
|
input_is_packed: bool = True,
|
|
927
928
|
n_features: int | None = None,
|
|
928
929
|
) -> _MedoidsMolIds:
|
|
929
|
-
"""Get a dict with medoids and mol indices of the leaves
|
|
930
|
+
r"""Get a dict with medoid idxs, medoids and mol indices of the leaves
|
|
931
|
+
|
|
932
|
+
The medoid indices are indices into the cluster mol ids, not into the fps array
|
|
933
|
+
"""
|
|
930
934
|
cluster_members = self.get_cluster_mol_ids(
|
|
931
935
|
sort=sort, global_clusters=global_clusters
|
|
932
936
|
)
|
|
933
937
|
|
|
934
938
|
if input_is_packed:
|
|
935
939
|
fps = _unpack_fingerprints(fps, n_features=n_features)
|
|
936
|
-
cluster_medoids = self._unpacked_medoids_from_members(
|
|
940
|
+
cluster_medoid_idxs, cluster_medoids = self._unpacked_medoids_from_members(
|
|
941
|
+
fps, cluster_members
|
|
942
|
+
)
|
|
937
943
|
if pack:
|
|
938
944
|
cluster_medoids = pack_fingerprints(cluster_medoids)
|
|
939
|
-
return {
|
|
945
|
+
return {
|
|
946
|
+
"medoid_idxs": cluster_medoid_idxs,
|
|
947
|
+
"medoids": cluster_medoids,
|
|
948
|
+
"mol_ids": cluster_members,
|
|
949
|
+
}
|
|
940
950
|
|
|
941
951
|
@staticmethod
|
|
942
952
|
def _unpacked_medoids_from_members(
|
|
943
953
|
unpacked_fps: NDArray[np.uint8], cluster_members: tp.Sequence[list[int]]
|
|
944
|
-
) -> NDArray[np.uint8]:
|
|
954
|
+
) -> tuple[NDArray[np.int64], NDArray[np.uint8]]:
|
|
945
955
|
cluster_medoids = np.zeros(
|
|
946
956
|
(len(cluster_members), unpacked_fps.shape[1]), dtype=np.uint8
|
|
947
957
|
)
|
|
958
|
+
cluster_medoid_idxs = np.zeros((len(cluster_members),), dtype=np.int64)
|
|
948
959
|
for idx, members in enumerate(cluster_members):
|
|
949
|
-
cluster_medoids[idx, :] = jt_isim_medoid(
|
|
960
|
+
cluster_medoid_idxs[idx], cluster_medoids[idx, :] = jt_isim_medoid(
|
|
950
961
|
unpacked_fps[members],
|
|
951
962
|
input_is_packed=False,
|
|
952
963
|
pack=False,
|
|
953
|
-
)
|
|
954
|
-
return cluster_medoids
|
|
964
|
+
)
|
|
965
|
+
return cluster_medoid_idxs, cluster_medoids
|
|
955
966
|
|
|
956
967
|
def get_medoids(
|
|
957
968
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bblean
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: BitBirch-Lean Python package
|
|
5
5
|
Author: The Miranda-Quintana Lab and other BitBirch developers
|
|
6
6
|
Author-email: Ramon Alain Miranda Quintana <quintana@chem.ufl.edu>, Krisztina Zsigmond <kzsigmond@ufl.edu>, Ignacio Pickering <ipickering@ufl.edu>, Kenneth Lopez Perez <klopezperez@chem.ufl.edu>, Miroslav Lzicar <miroslav.lzicar@deepmedchem.com>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
bblean/__init__.py,sha256=9cudBHEt0H5p0jKEvgrhLZIHPSzwNAx0uJRp-_iM32I,686
|
|
2
2
|
bblean/_config.py,sha256=WaONZilOWCLFdZulqWLKRqNM-ZLhY0YCXfwk-84FYmQ,1813
|
|
3
3
|
bblean/_console.py,sha256=Mk1hi1NdPw2HDmjWj1LLbCuV3vCxL5l6u2gXaEeOFBM,8021
|
|
4
|
-
bblean/_cpp_similarity.cp313-win_amd64.pyd,sha256=
|
|
4
|
+
bblean/_cpp_similarity.cp313-win_amd64.pyd,sha256=PyKPVtf3GKHyfY6e6_Mx6Fg4iEL_id1MEkmnUy-oLlI,182272
|
|
5
5
|
bblean/_memory.py,sha256=eycXzXV_O_VEyIKpAv3QpbxtpB5WkBLChzm_e2Dqaw0,6892
|
|
6
6
|
bblean/_merges.py,sha256=xwFMJUPJ9VMujf2nSROx0NhsPoQ_R84KIxBF81x2hks,6432
|
|
7
7
|
bblean/_py_similarity.py,sha256=VYWu7gVCEDjNaRLgxiCxCGjCfmTity86UPC0dfT83Ok,9633
|
|
8
8
|
bblean/_timer.py,sha256=D1-_tTQFJqIQgzl4HSE__-P3Scw72EIVlNDaChJT8Qs,1402
|
|
9
|
-
bblean/_version.py,sha256=
|
|
9
|
+
bblean/_version.py,sha256=bwKQ_uDpwTpN7m7IV7It5CXoAE3-f3ybK5tSUKeK8bA,746
|
|
10
10
|
bblean/analysis.py,sha256=apD5OgSoNGbIuBLSJFFzlUkVjZHBtb3fVEeEUJGbyqc,8118
|
|
11
|
-
bblean/bitbirch.py,sha256=
|
|
11
|
+
bblean/bitbirch.py,sha256=gvcaJwtJzDEPJeAZgMpRZMNQSxEUygfNK1LCHQLAIUE,60713
|
|
12
12
|
bblean/cli.py,sha256=1vbUEbuCTpl_tczHp-DiufoL6Ev6cNoCzLe55nHhkrE,70994
|
|
13
13
|
bblean/fingerprints.py,sha256=nbdTjBXVvaBJ9ralIva4vl5qtpPFxtHtZ0bp_R7R_jI,16176
|
|
14
14
|
bblean/metrics.py,sha256=4KB-PIQJtFMsNg7lG2uM1HEId_eR5vhqcdLpCVLuI5Y,7280
|
|
@@ -23,9 +23,9 @@ bblean/_legacy/bb_int64.py,sha256=Otqxu8NBLrfOMpJoMrLgWtDP_9Hn4joQXZVkU1hjges,45
|
|
|
23
23
|
bblean/_legacy/bb_uint8.py,sha256=8kbeVAq7MxiR8hS_6lKhSDhVWc6acjLmLzNFCR466iA,41573
|
|
24
24
|
bblean/csrc/README.md,sha256=qOPPK6sTqkYgnlPWtcNu9P3PwuLH8cCNJ1FwJeewsrk,59
|
|
25
25
|
bblean/csrc/similarity.cpp,sha256=q6oMg9Vd0REPmqze8xToTmeXZiEuHTmOfL6QsTRFkDE,23122
|
|
26
|
-
bblean-0.7.
|
|
27
|
-
bblean-0.7.
|
|
28
|
-
bblean-0.7.
|
|
29
|
-
bblean-0.7.
|
|
30
|
-
bblean-0.7.
|
|
31
|
-
bblean-0.7.
|
|
26
|
+
bblean-0.7.6.dist-info/licenses/LICENSE,sha256=Dq9t2XHr5wSrykVuVo8etKsAS35ENnDobU1h7t3H_-k,2598
|
|
27
|
+
bblean-0.7.6.dist-info/METADATA,sha256=pbAdu9nVi48j5vhMfvF1Qso5Hnm9kp7Y4M4GLtL49W4,13051
|
|
28
|
+
bblean-0.7.6.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
|
|
29
|
+
bblean-0.7.6.dist-info/entry_points.txt,sha256=a0jb2L5JFKioMD6CqbvJiI2unaArGzi-AMZsyY-uyGg,38
|
|
30
|
+
bblean-0.7.6.dist-info/top_level.txt,sha256=ybxTonvTC9zR25yR5B27aEDLl6CiwID093ZyS_--Cq4,7
|
|
31
|
+
bblean-0.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|