-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smiles_to_descriptors now accepts a list of smiles strings
- Loading branch information
Showing
5 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from alvadescpy.wrapper import alvadesc | ||
from alvadescpy.functions import smiles_to_descriptors | ||
from alvadescpy.wrapper import CONFIG | ||
__version__ = '0.1.1' | ||
__version__ = '0.1.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# -*- coding: utf-8 -*- | ||
# | ||
# alvadescpy/functions.py | ||
# v.0.1.1 | ||
# v.0.1.2 | ||
# Developed in 2019 by Travis Kessler <[email protected]> | ||
# | ||
# contains functions for common alvaDesc tasks | ||
|
@@ -25,7 +25,7 @@ def smiles_to_descriptors(smiles: str, descriptors: _DESC='ALL', | |
molecule (represented by its SMILES string) | ||
Args: | ||
smiles (str): SMILES string for a given molecule | ||
smiles (str, list): SMILES string for a given molecule | ||
descriptors (str, list): `ALL` for all descriptors, or list containing | ||
individual descriptors (str's) | ||
labels (bool): if `True`, labels are included in return value (dict); | ||
|
@@ -36,4 +36,7 @@ def smiles_to_descriptors(smiles: str, descriptors: _DESC='ALL', | |
else a dict | ||
''' | ||
|
||
if type(smiles) == list: | ||
return [alvadesc(ismiles=smi, descriptors=descriptors, labels=labels)[0] | ||
for smi in smiles] | ||
return alvadesc(ismiles=smiles, descriptors=descriptors, labels=labels)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# -*- coding: utf-8 -*- | ||
# | ||
# alvadescpy/wrapper.py | ||
# v.0.1.1 | ||
# v.0.1.2 | ||
# Developed in 2019 by Travis Kessler <[email protected]> | ||
# | ||
# contains `alvadesc` function, a wrapper for alvaDesc software | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters