-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added chemimg method - added cas validation with check digit verification - added inchikey validation - improved query to check for '*' and added exact option - improved key2cas to get casrn of smallest molecule (assuming other hits are polymers)
- Loading branch information
Showing
3 changed files
with
135 additions
and
21 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
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,10 +1,12 @@ | ||
from comchem import * | ||
|
||
name = detail("9003-07-0", "properties") | ||
print(name) | ||
# name = detail("9003-07-0", "properties") | ||
# print(name) | ||
# | ||
# find = query("trifluoro*") | ||
# print(find) | ||
|
||
find = query("trifluoro*") | ||
print(find) | ||
# find = key2cas('UHOVQNZJYSORNB-UHFFFAOYSA-N') | ||
# print(find) | ||
|
||
find = key2cas('UHOVQNZJYSORNB-UHFFFAOYSA-N') | ||
print(find) | ||
chemimg("71-43-2", 'png') |
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