Closed gmhhope closed 3 years ago
class Compound:
def __init__(self):
'''
All metabolites are compounds, but the reverse is not true.
Thus, compound is a basic class.
Azimuth ID starts with `az`,
and incorporates HMDB ID (less ambiguous than KEGG) whereas possible.
'''
#Az_number + 0000001
self.internal_id = ''
self.curator = 'MG'
self.date = ''
#Common names and others
self.name = '' # common name
self.other_names = {
'iupac_name':'',
'traditional_iupac':'',
'others':[]
}
#database IDs
self.db_ids = {
'KEGG': '',
'HMDB': '',
'Azimuth': '',
'PubChem': '',
'MetaNetX': '',
'chemspider': '',
'chebi':'',
'cas_registry_number': '',
'bigg_fHMDB': '' #Here because bigg_id from HMDB is different that bigg_id in bigg database
#etc. e.g., for HMDB, can find "_id" and remove it and store here.
}
#Formulas and masses
self.formulas_masses = {
"formula_charged_state":
{'formula': '',
'mono_mass': 0.0000,
'sources': '',
'charge': '' #neutral, charged, unknown.
}
}
#Chemistry properties
self.SMILES = ''
self.inchi = ''
self.inchikey = ''
#normal concentration and other biological properties.
self.norm_concentrations = []
'''
{'biospecimen': '', #Blood, Sera or serum
'concentration_value': '', #0.04 +/- 0.03
'concentration_units': '', #uM
'subject_age': '', #Adult (>18 years old)
'subject_sex': '', #Female
'subject_condition': '', #Normal
'reference_pubmed_id':[] #{'reference_text': '...Biomed Chromatogr. 2008 Jan;22(1):73-80.',
#'pubmed_id': '17668437'}
}
'''
Reaction