prodigy-cryst 1.0.1__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.
- prodigy_cryst/__init__.py +0 -0
- prodigy_cryst/classify.py +27 -0
- prodigy_cryst/data/List_of_features-MANY.csv +5736 -0
- prodigy_cryst/data/classifier.sav +0 -0
- prodigy_cryst/interface_classifier.py +341 -0
- prodigy_cryst/lib/__init__.py +9 -0
- prodigy_cryst/lib/aa_properties.py +133 -0
- prodigy_cryst/lib/parsers.py +120 -0
- prodigy_cryst/lib/utils.py +25 -0
- prodigy_cryst-1.0.1.dist-info/LICENSE +201 -0
- prodigy_cryst-1.0.1.dist-info/METADATA +48 -0
- prodigy_cryst-1.0.1.dist-info/RECORD +14 -0
- prodigy_cryst-1.0.1.dist-info/WHEEL +4 -0
- prodigy_cryst-1.0.1.dist-info/entry_points.txt +3 -0
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
#
|
|
3
|
+
# This code is part of the interface classifier tool distribution
|
|
4
|
+
# and governed by its license. Please see the LICENSE file that should
|
|
5
|
+
# have been included as part of this package.
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Interface classification methods developed by the Bonvin Lab.
|
|
10
|
+
|
|
11
|
+
Classifier loader.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
__author__ = ["Katarina Elez", "Anna Vangone", "Brian Jimenez"]
|
|
15
|
+
|
|
16
|
+
import os
|
|
17
|
+
import pickle
|
|
18
|
+
import sys
|
|
19
|
+
import warnings
|
|
20
|
+
|
|
21
|
+
with warnings.catch_warnings():
|
|
22
|
+
warnings.simplefilter("ignore")
|
|
23
|
+
features = sys.argv[1:]
|
|
24
|
+
base_path = os.path.dirname(os.path.realpath(__file__))
|
|
25
|
+
model = pickle.load(open(os.path.join(base_path, "data", "classifier.sav"), "rb"))
|
|
26
|
+
proba = list(model.predict_proba([features])[0])
|
|
27
|
+
print(["BIO", "XTAL"][proba.index(max(proba))], proba[0], proba[1])
|