MASSA-Algorithm 2.2.2__tar.gz → 2.2.3__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.
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAlogos.py +2 -2
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAopen_files.py +5 -8
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/PKG-INFO +1 -1
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/PKG-INFO +1 -1
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/setup.py +1 -1
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/LICENSE +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MANIFEST.in +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSA.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAargs.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAcluster.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAdescriptors.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAextraction.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAmoloutput.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAod.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSApreparation.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/MASSAsplit.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/__init__.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm/pyMASSA.py +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/SOURCES.txt +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/dependency_links.txt +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/entry_points.txt +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/requires.txt +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/top_level.txt +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/README.md +0 -0
- {massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/setup.cfg +0 -0
|
@@ -20,7 +20,7 @@ def initial_print():
|
|
|
20
20
|
██░░░▓▓▓▓░░░░░░░▓▓▓▓░░░░░░░▓▓▓▓░░░░█
|
|
21
21
|
██░░░░▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░█ MASSA Algorithm:
|
|
22
22
|
████░░░░░▓▓▓▓░░░░░░░▓▓▓▓░░░░░░░▓▓▓▓░░░░░█████ Molecular data set sampling — Training-Test Separation
|
|
23
|
-
█▓▓▓███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███▓▓▓█ Version: v. 2.2.
|
|
23
|
+
█▓▓▓███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███▓▓▓█ Version: v. 2.2.3
|
|
24
24
|
█▒▓▓▒▒▒████░░░░░░░░░░░░░░░░░░░░░░░░░░░░████▒▒▓▓▒█
|
|
25
25
|
██▓▒▒▒▓▓▓▓██████████████████████████████▓▓▓▒▒▒▒▓█ Developed by: Gabriel Corrêa Veríssimo
|
|
26
26
|
██▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▓▓▒▒██ LICENSE: AGPL-3.0
|
|
@@ -31,4 +31,4 @@ def initial_print():
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def python_logo():
|
|
34
|
-
print("🍕 MASSA Algorithm v. 2.2.
|
|
34
|
+
print("🍕 MASSA Algorithm v. 2.2.3: Molecular data set sampling")
|
|
@@ -154,18 +154,13 @@ def read_SMI_smiles(file, write_log, drop_errors):
|
|
|
154
154
|
df = pd.read_csv(file, sep="\t", header=0)
|
|
155
155
|
else:
|
|
156
156
|
df = pd.read_csv(file, sep="\t", header=None)
|
|
157
|
-
df =
|
|
158
|
-
|
|
157
|
+
df.columns = ["SMILES", "Name"] + [
|
|
158
|
+
f"Column_{i}" for i in range(3, df.shape[1] + 1)
|
|
159
|
+
]
|
|
159
160
|
|
|
160
161
|
mols_sanitized = read_df_smiles(df, write_log, drop_errors)
|
|
161
162
|
return mols_sanitized
|
|
162
163
|
|
|
163
|
-
def read_SMI_smiles(file, write_log, drop_errors):
|
|
164
|
-
df_supplier = pd.read_csv(file, sep="\t", header=None)
|
|
165
|
-
df_supplier.columns = ["SMILES", "Name"]
|
|
166
|
-
mols_sanitized = read_df_smiles(df_supplier, write_log, drop_errors)
|
|
167
|
-
return mols_sanitized
|
|
168
|
-
|
|
169
164
|
|
|
170
165
|
def read_SDF(file, write_log, drop_errors):
|
|
171
166
|
"""Reads an SDF file and returns a sanitized molecule supplier.
|
|
@@ -309,6 +304,8 @@ def read_molecules(file, write_log, drop_errors):
|
|
|
309
304
|
molecules = read_CSV_smiles(file, write_log, drop_errors)
|
|
310
305
|
elif file.endswith(".smi"):
|
|
311
306
|
molecules = read_SMI_smiles(file, write_log, drop_errors)
|
|
307
|
+
else:
|
|
308
|
+
raise ValueError(f"Unsupported file format: {file}")
|
|
312
309
|
return molecules
|
|
313
310
|
|
|
314
311
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MASSA-Algorithm
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: MASSA Algorithm is a Python package to separate data sets of molecules into training and test sets, considering the diversity of structural, physicochemical and biological characteristics of these molecules.
|
|
5
5
|
Home-page: https://github.com/gcverissimo/MASSA_Algorithm
|
|
6
6
|
Author: Gabriel Corrêa Veríssimo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MASSA-Algorithm
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: MASSA Algorithm is a Python package to separate data sets of molecules into training and test sets, considering the diversity of structural, physicochemical and biological characteristics of these molecules.
|
|
5
5
|
Home-page: https://github.com/gcverissimo/MASSA_Algorithm
|
|
6
6
|
Author: Gabriel Corrêa Veríssimo
|
|
@@ -5,7 +5,7 @@ with open('README.md', 'r') as readme:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name='MASSA-Algorithm',
|
|
8
|
-
version='2.2.
|
|
8
|
+
version='2.2.3',
|
|
9
9
|
description='MASSA Algorithm is a Python package to separate data sets of molecules into training and test sets, considering the diversity of structural, physicochemical and biological characteristics of these molecules.',
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
long_description_content_type='text/markdown',
|
|
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
|
{massa_algorithm-2.2.2 → massa_algorithm-2.2.3}/MASSA_Algorithm.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|