MASSA-Algorithm 0.9.3__py3-none-any.whl → 0.9.4__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.
- MASSA_Algorithm/MASSAdescriptors.py +22 -5
- MASSA_Algorithm/MASSAlogos.py +1 -1
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/METADATA +6 -6
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/RECORD +8 -8
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/WHEEL +1 -1
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/LICENSE +0 -0
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/entry_points.txt +0 -0
- {MASSA_Algorithm-0.9.3.dist-info → MASSA_Algorithm-0.9.4.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import pandas as pd
|
|
2
2
|
from rdkit.Chem import Descriptors
|
|
3
|
-
from rdkit.Chem import
|
|
4
|
-
from rdkit.
|
|
3
|
+
from rdkit.Chem import AllChem
|
|
4
|
+
# from rdkit.Chem import rdMolDescriptors
|
|
5
|
+
# from rdkit.DataStructs import cDataStructs
|
|
5
6
|
|
|
6
7
|
def physicochemical_descriptors(file):
|
|
7
8
|
NumHAcceptors = {}
|
|
@@ -33,9 +34,25 @@ def physicochemical_descriptors(file):
|
|
|
33
34
|
def atompairs_fingerprint(file):
|
|
34
35
|
FP_dict = {}
|
|
35
36
|
for i in file['molecules']:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
# Updated AtomPair Fingerprint (without count).
|
|
38
|
+
# To use AtomPairCount use the function (fpgen.GetCountFingerprintAsNumPy).
|
|
39
|
+
# 1) Determine the fingerprint generator using AtomPairs Fingerprint.
|
|
40
|
+
# 2) Generate the numpy array fingerprint using the generator.
|
|
41
|
+
# 3) Transform the np.array in list.
|
|
42
|
+
fpgen = AllChem.GetAtomPairGenerator(fpSize=1024) # 1
|
|
43
|
+
FPasBinary = fpgen.GetFingerprintAsNumPy(i) # 2
|
|
44
|
+
BinaryAsList = list(FPasBinary) # 3
|
|
45
|
+
|
|
46
|
+
# DEPRECATED (by RDKit):
|
|
47
|
+
# 1) Determine the fingerprint of the molecule using AtomPairs Fingerprint.
|
|
48
|
+
# 2) Convert fingerprint to text.
|
|
49
|
+
# 3) Each bit of fingerprint will be a string item of a list.
|
|
50
|
+
# FPasBitVect = rdMolDescriptors.GetHashedAtomPairFingerprintAsBitVect(
|
|
51
|
+
# i, nBits=1024
|
|
52
|
+
# ) # 1
|
|
53
|
+
# FPasBinary = cDataStructs.BitVectToText(FPasBitVect) # 2
|
|
54
|
+
# BinaryAsList = list(FPasBinary) # 3
|
|
55
|
+
|
|
39
56
|
BinaryAsNewList = []
|
|
40
57
|
for a in BinaryAsList:
|
|
41
58
|
b = int(a) # Each bit of fingerprint will be a int item of a list.
|
MASSA_Algorithm/MASSAlogos.py
CHANGED
|
@@ -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. 0.9.
|
|
23
|
+
█▓▓▓███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███▓▓▓█ Version: v. 0.9.4
|
|
24
24
|
█▒▓▓▒▒▒████░░░░░░░░░░░░░░░░░░░░░░░░░░░░████▒▒▓▓▒█
|
|
25
25
|
██▓▒▒▒▓▓▓▓██████████████████████████████▓▓▓▒▒▒▒▓█ Developed by: Gabriel Corrêa Veríssimo
|
|
26
26
|
██▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▓▓▒▒██ LICENSE: AGPL-3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MASSA-Algorithm
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
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
|
|
@@ -18,13 +18,13 @@ Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
|
18
18
|
Requires-Python: >=3.8
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: numpy <2.0
|
|
21
|
+
Requires-Dist: numpy (<2.0)
|
|
22
22
|
Requires-Dist: rdkit
|
|
23
23
|
Requires-Dist: pandas
|
|
24
|
-
Requires-Dist: matplotlib >=3.2
|
|
25
|
-
Requires-Dist: scipy >=1.6
|
|
26
|
-
Requires-Dist: scikit-learn >0.24
|
|
27
|
-
Requires-Dist: kmodes >=0.10
|
|
24
|
+
Requires-Dist: matplotlib (>=3.2)
|
|
25
|
+
Requires-Dist: scipy (>=1.6)
|
|
26
|
+
Requires-Dist: scikit-learn (>0.24)
|
|
27
|
+
Requires-Dist: kmodes (>=0.10)
|
|
28
28
|
|
|
29
29
|
# MASSA Algorithm
|
|
30
30
|
MASSA Algorithm: A tool for separating data sets of molecules into training and test sets. Developed with the objective of preparing data sets for the generation of prediction models in cheminformatics.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
MASSA_Algorithm/MASSA.py,sha256=PltTwmOsK-_q6MzmCxqY1AQMTXM-5XKB-3S6Yqe_VTo,9196
|
|
2
2
|
MASSA_Algorithm/MASSAargs.py,sha256=MCOBlRm6sx6TUQHLwJrW-ktdSNiQltyFjyfJbS-1dVc,6777
|
|
3
3
|
MASSA_Algorithm/MASSAcluster.py,sha256=orRK3rqEpH4j-C4LiS2rp3z4f1gM_rvsjgqiljvtlUI,11293
|
|
4
|
-
MASSA_Algorithm/MASSAdescriptors.py,sha256=
|
|
4
|
+
MASSA_Algorithm/MASSAdescriptors.py,sha256=3wd4MXfqTJU6w-sUolEhsCKIOCS2ye1tSkXvOXwFn2c,2716
|
|
5
5
|
MASSA_Algorithm/MASSAextraction.py,sha256=bADEWtpEE5P0hg9O-8piD659GrPfHUeqyyaAYCWlsAs,4976
|
|
6
|
-
MASSA_Algorithm/MASSAlogos.py,sha256=
|
|
6
|
+
MASSA_Algorithm/MASSAlogos.py,sha256=gu5suAiFlp1Dfn-Zcvl80oDEq4sVsdXSjfrduXvZ_mU,3528
|
|
7
7
|
MASSA_Algorithm/MASSAmoloutput.py,sha256=LsyeCvIc9SPiFjVXTOQ3GVXDzhB9sc-MYWGGvIbOcwQ,2512
|
|
8
8
|
MASSA_Algorithm/MASSAod.py,sha256=y0tizbYYtw34iJEf8c_5XPfQHHxF9RSRGjbmSZ0qRWk,487
|
|
9
9
|
MASSA_Algorithm/MASSAopen_files.py,sha256=aPYCBNSmSPasL1wyuYvM7Nd1mTyGG9GMcyDdOAYQ3GE,1600
|
|
10
10
|
MASSA_Algorithm/MASSApreparation.py,sha256=I4JpddMfBX1btYomNI5vflN1gyllJKodbQgtYf9imWY,3208
|
|
11
11
|
MASSA_Algorithm/MASSAsplit.py,sha256=qsZgvXAat4UleaF0Qaa4Y-CtsMQU_NaIJvK-ypOzkbw,5330
|
|
12
12
|
MASSA_Algorithm/__init__.py,sha256=yY3Tbs-t4HSl4I0Ev0RcHMnHU7SwljlWRveiRJkeCB8,10
|
|
13
|
-
MASSA_Algorithm-0.9.
|
|
14
|
-
MASSA_Algorithm-0.9.
|
|
15
|
-
MASSA_Algorithm-0.9.
|
|
16
|
-
MASSA_Algorithm-0.9.
|
|
17
|
-
MASSA_Algorithm-0.9.
|
|
18
|
-
MASSA_Algorithm-0.9.
|
|
13
|
+
MASSA_Algorithm-0.9.4.dist-info/LICENSE,sha256=bx5iLIKjgAdYQ7sISn7DsfHRKkoCUm1154sJJKhgqnU,35184
|
|
14
|
+
MASSA_Algorithm-0.9.4.dist-info/METADATA,sha256=_bGdINXx2Z0BpgKn7uo8W49wvnWfDfwZLGQtL1huBpc,6552
|
|
15
|
+
MASSA_Algorithm-0.9.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
16
|
+
MASSA_Algorithm-0.9.4.dist-info/entry_points.txt,sha256=oMtqswy07Di-w2uIYAEvenBKl0ovsr9AYm_yxn6LGtU,63
|
|
17
|
+
MASSA_Algorithm-0.9.4.dist-info/top_level.txt,sha256=IZyttJ20RSD8w9nAcaTHWAvkvxHV5FGaVGB7mDrw9Cc,16
|
|
18
|
+
MASSA_Algorithm-0.9.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|