Data Integrator (Python API)
|
DrugBank XML file parsing. More...
Public Member Functions | |
def | __init__ (s, paths) |
Constructor. More... | |
def | Parse (s, verify=False) |
Parse the XML file. More... | |
def | GetDrugs (s) |
Get list of drugs contained in the XML file. More... | |
def | GetPartners (s) |
Get list of drug interaction partners contained in the XML file. More... | |
DrugBank XML file parsing.
def cls.DrugBankParser.CDrugBankParser.__init__ | ( | s, | |
paths | |||
) |
Constructor.
@param paths common.Paths.CPaths object.
def cls.DrugBankParser.CDrugBankParser.GetDrugs | ( | s | ) |
Get list of drugs contained in the XML file.
@return @c List of cls.DrugBankDrug.CDrugBankDrug objects.
def cls.DrugBankParser.CDrugBankParser.GetPartners | ( | s | ) |
Get list of drug interaction partners contained in the XML file.
@return @c List of cls.DrugBankPartner.CDrugBankPartner objects.
def cls.DrugBankParser.CDrugBankParser.Parse | ( | s, | |
verify = False |
|||
) |
Parse the XML file.
@param verify If set to @c True, the XML file's content is checked for syntactical correctness using its associated XML schema file.