Package install :: Package MoSTBioDat :: Package DataBase :: Package ImportData :: Package Data2DB :: Module PropDrugBank :: Class PropDrugBank
[hide private]
[frames] | no frames]

Class PropDrugBank

source code

                                          object --+        
                                                   |        
MoSTBioDat.DataBase.ImportData.Data2DB.DBFile.DBFile --+    
                                                       |    
MoSTBioDat.DataBase.ImportData.Data2DB.PropFile.PropFile --+
                                                           |
                                                          PropDrugBank

Instance Methods [hide private]
 
__init__(self, propfile=None, **kwargs)
Property Drug Bank File parser INPUT: propfile - property file path, str, default=None dictpath - str - path to dictionary dictfilename - str - dictionary filename dbfile - str - database file path format - str - logging file format, default "%(levelname)s %(asctime)s %(ip)s %(username)s %(filename)s %(module)s %(funcName)s %(lineno)d >> %(message)s " filter - specified record to be logged datefmt - str - date format path - str - path to log files filename - str - log filename, default 'log' filemode - str - log file mode, default 'wa' level - str - logging level, default logging.DEBUG logfilelevel - log file level temporary - str - temporary directory OUTPUT: dictionary object
source code
 
getCard(self)
get DrugCard frame INPUT: class object OUTPUT: DrugCard string
source code
 
parseCard(self, card)
parse DrugCard INPUT: class object card - str, card frame OUTPUT: result - dict, result dictionary
source code
 
proParse(self, spacedelim='\t')
Property text file parser, first line - property definition INPUT: class object spacedelim - space delimiter specificator, default = ' ' OUTPUT:
source code
 
proParseonDrugDBNum(self, spacedelim='\t')
Property text file parser based on DrugBank DataBase Number INPUT: class object spacedelim - space delimiter specificator, default = ' ' OUTPUT:
source code

Inherited from MoSTBioDat.DataBase.ImportData.Data2DB.DBFile.DBFile: closeDict, createdict, delAttrDict, delDictKey, findFile, getDict, getLength, insAttrDict, insertDict, openDict, retDict, shoValue, showDict, showDictKey, showPropTag, showPropTagonZINCode

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, propfile=None, **kwargs)
(Constructor)

source code 

Property Drug Bank File parser INPUT: propfile - property file path, str, default=None dictpath - str - path to dictionary dictfilename - str - dictionary filename dbfile - str - database file path format - str - logging file format, default "%(levelname)s %(asctime)s %(ip)s %(username)s %(filename)s %(module)s %(funcName)s %(lineno)d >> %(message)s " filter - specified record to be logged datefmt - str - date format path - str - path to log files filename - str - log filename, default 'log' filemode - str - log file mode, default 'wa' level - str - logging level, default logging.DEBUG logfilelevel - log file level temporary - str - temporary directory OUTPUT: dictionary object

Overrides: object.__init__

proParse(self, spacedelim='\t')

source code 

Property text file parser, first line - property definition INPUT: class object spacedelim - space delimiter specificator, default = ' ' OUTPUT:

Overrides: MoSTBioDat.DataBase.ImportData.Data2DB.PropFile.PropFile.proParse