Commit 2988e8da authored by Martino Bertoni's avatar Martino Bertoni 🌋

input of predict can be a single string molecule

parent 198a77fb
......@@ -140,6 +140,9 @@ class Signaturizer(object):
results: `SignaturizerResult` class. The ordering of input SMILES
is preserved.
"""
# input must be a list, otherwise we make it so
if isinstance(molecules, str):
molecules = [molecules]
# convert input molecules to InChI
inchies = list()
if keytype.upper() == 'SMILES':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment