Data Integrator (Python API)
Public Member Functions | List of all members
cls.DrugBankParser.CDrugBankParser Class Reference

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...
 

Detailed Description

DrugBank XML file parsing.

Constructor & Destructor Documentation

◆ __init__()

def cls.DrugBankParser.CDrugBankParser.__init__ (   s,
  paths 
)

Constructor.

    @param paths  common.Paths.CPaths object.

Member Function Documentation

◆ GetDrugs()

def cls.DrugBankParser.CDrugBankParser.GetDrugs (   s)

Get list of drugs contained in the XML file.

    @return @c List of cls.DrugBankDrug.CDrugBankDrug objects.

◆ GetPartners()

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.

◆ Parse()

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.

The documentation for this class was generated from the following file: