-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multivalue support and better DrugBank preset
* add value delimiter and multi-value support * improve DrugBank preset * remove code duplications and overall code improvements * remove additionalType support (requires more user knowledge to use)
- Loading branch information
1 parent
66fbb8b
commit 50eeb44
Showing
5 changed files
with
123 additions
and
199 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
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,28 +1,25 @@ | ||
#!/usr/bin/env python | ||
|
||
# default value delimiter | ||
VALUE_DELIMITER = ' | ' | ||
|
||
# default base URI of molecule | ||
BASE_URI_MOLECULE = 'http://example.com/molecule/' | ||
|
||
# default column names | ||
IDENTIFIER = 'identifier' | ||
NAME = 'name' | ||
INCHIKEY = 'inChIKey' | ||
INCHI = 'inChI' | ||
SMILES = 'smiles' | ||
URL = 'url' | ||
IUPAC_NAME = 'iupacName' | ||
MOLECULAR_FORMULA = 'molecularFormula' | ||
MOLECULAR_WEIGHT = 'molecularWeight' | ||
MONOISOTOPIC_MOLECULAR_WEIGHT = 'monoisotopicMolecularWeight' | ||
DESCRIPTION = 'description' | ||
DISAMBIGUATING_DESCRIPTION = 'disambiguatingDescription' | ||
IMAGE = 'image' | ||
ADDITIONAL_TYPE = 'additionalType' | ||
ALTERNATE_NAME = 'alternateName' | ||
SAME_AS = 'sameAs' | ||
|
||
DEFAULT_COLUMN_NAMES = [IDENTIFIER, NAME, INCHIKEY, INCHI, SMILES, URL, IUPAC_NAME, MOLECULAR_FORMULA, | ||
MOLECULAR_WEIGHT, | ||
MONOISOTOPIC_MOLECULAR_WEIGHT, DESCRIPTION, DISAMBIGUATING_DESCRIPTION, IMAGE, | ||
ADDITIONAL_TYPE, | ||
ALTERNATE_NAME, SAME_AS] | ||
# column names | ||
COLUMNS = {'identifier': 'identifier', | ||
'name': 'name', | ||
'inChIKey': 'inChIKey', | ||
'inChI': 'inChI', | ||
'smiles': 'smiles', | ||
'url': 'url', | ||
'iupacName': 'iupacName', | ||
'molecularFormula': 'molecularFormula', | ||
'molecularWeight': 'molecularWeight', | ||
'monoisotopicMolecularWeight': 'monoisotopicMolecularWeight', | ||
'description': 'description', | ||
'disambiguatingDescription': 'disambiguatingDescription', | ||
'image': 'image', | ||
'alternateName': 'alternateName', | ||
'sameAs': 'sameAs' | ||
} |
Oops, something went wrong.