Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
signaturizer
Commits
f57cddee
Commit
f57cddee
authored
Jul 01, 2020
by
Martino Bertoni
🌋
Browse files
global signature naming
parent
8cf0fed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
signaturizer/signaturizer.py
View file @
f57cddee
...
...
@@ -18,7 +18,7 @@ class Signaturizer():
"""Class loading TF-hub module and performing predictions."""
def
__init__
(
self
,
model_name
,
verbose
=
True
,
base_url
=
"https://
dynbench3d.irbbarcelona.org/.well-known/acme-challenge
/"
):
base_url
=
"https://
chemicalchecker.org/signaturizer
/"
):
"""Initialize the Signaturizer.
Args:
...
...
@@ -26,11 +26,12 @@ class Signaturizer():
- the model name (the bioactivity space (e.g. "B1") )
- the model path (the directory containing 'saved_model.pb')
- a list of models names or paths (e.g. ["B1", "B2", "E5"])
- 'ALL' to get the stacked bioactivity signatures
- 'GLOBAL' to get the global (i.e. horizontally stacked)
bioactivity signature.
base_url(str): The ChemicalChecker getModel API URL.
"""
self
.
verbose
=
verbose
if
model_name
==
'AL
L'
:
if
model_name
.
upper
()
==
'GLOBA
L'
:
models
=
list
(
itertools
.
product
(
"ABCDE"
,
"12345"
))
elif
not
isinstance
(
model_name
,
list
):
models
=
[
model_name
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment