bayesianflow-for-chem 1.2.6__tar.gz → 1.2.7__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.
Potentially problematic release.
This version of bayesianflow-for-chem might be problematic. Click here for more details.
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/PKG-INFO +3 -2
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/__init__.py +1 -1
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/tool.py +11 -1
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/PKG-INFO +3 -2
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/LICENSE +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/README.md +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/data.py +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/model.py +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/scorer.py +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/train.py +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem/vocab.txt +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/SOURCES.txt +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/dependency_links.txt +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/requires.txt +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/top_level.txt +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/pyproject.toml +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/setup.cfg +0 -0
- {bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: bayesianflow_for_chem
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.7
|
|
4
4
|
Summary: Bayesian flow network framework for Chemistry
|
|
5
5
|
Home-page: https://augus1999.github.io/bayesian-flow-network-for-chemistry/
|
|
6
6
|
Author: Nianze A. Tao
|
|
@@ -39,6 +39,7 @@ Dynamic: description-content-type
|
|
|
39
39
|
Dynamic: home-page
|
|
40
40
|
Dynamic: keywords
|
|
41
41
|
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
42
43
|
Dynamic: project-url
|
|
43
44
|
Dynamic: provides-extra
|
|
44
45
|
Dynamic: requires-dist
|
|
@@ -161,6 +161,8 @@ def split_dataset(
|
|
|
161
161
|
:return:
|
|
162
162
|
:rtype: None
|
|
163
163
|
"""
|
|
164
|
+
if isinstance(file, Path):
|
|
165
|
+
file = file.__str__()
|
|
164
166
|
assert file.endswith(".csv")
|
|
165
167
|
assert len(split_ratio) == 3
|
|
166
168
|
assert method in ("random", "scaffold")
|
|
@@ -170,7 +172,7 @@ def split_dataset(
|
|
|
170
172
|
raw_data = data[1:]
|
|
171
173
|
smiles_idx = [] # only first index will be used
|
|
172
174
|
for key, h in enumerate(header):
|
|
173
|
-
if h.lower()
|
|
175
|
+
if "smiles" in h.lower():
|
|
174
176
|
smiles_idx.append(key)
|
|
175
177
|
assert len(smiles_idx) > 0
|
|
176
178
|
data_len = len(raw_data)
|
|
@@ -186,6 +188,14 @@ def split_dataset(
|
|
|
186
188
|
scaffolds: Dict[str, List] = {}
|
|
187
189
|
for key, d in enumerate(raw_data):
|
|
188
190
|
# compute Bemis-Murcko scaffold
|
|
191
|
+
if len(smiles_idx) > 1:
|
|
192
|
+
warnings.warn(
|
|
193
|
+
"\033[32;1m"
|
|
194
|
+
f"We found {len(smiles_idx)} SMILES strings in a row!"
|
|
195
|
+
" Only the first SMILES will be used to compute the molecular scaffold."
|
|
196
|
+
"\033[0m",
|
|
197
|
+
stacklevel=2,
|
|
198
|
+
)
|
|
189
199
|
scaffold = MurckoScaffoldSmiles(d[smiles_idx[0]])
|
|
190
200
|
if scaffold in scaffolds:
|
|
191
201
|
scaffolds[scaffold].append(key)
|
{bayesianflow_for_chem-1.2.6 → bayesianflow_for_chem-1.2.7}/bayesianflow_for_chem.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: bayesianflow_for_chem
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.7
|
|
4
4
|
Summary: Bayesian flow network framework for Chemistry
|
|
5
5
|
Home-page: https://augus1999.github.io/bayesian-flow-network-for-chemistry/
|
|
6
6
|
Author: Nianze A. Tao
|
|
@@ -39,6 +39,7 @@ Dynamic: description-content-type
|
|
|
39
39
|
Dynamic: home-page
|
|
40
40
|
Dynamic: keywords
|
|
41
41
|
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
42
43
|
Dynamic: project-url
|
|
43
44
|
Dynamic: provides-extra
|
|
44
45
|
Dynamic: requires-dist
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|