Package CHEM :: Package CombiCDB :: Module Util
[hide private]
[frames] | no frames]

Module Util



Miscellaneous utility functions used across the application

Functions [hide private]
 
readIDFile(idFile)
Given a file of database IDs, return a list of the IDs.
 
main(argv)
Main method, callable from command line
Variables [hide private]
  log = logging.getLogger(Const.APPLICATION_NAME)
  handler = logging.StreamHandler(sys.stderr)
  formatter = logging.Formatter(Const.LOGGER_FORMAT)
Function Details [hide private]

readIDFile(idFile)

 
Given a file of database IDs, return a list of the IDs. Expect one ID per line of the file. The file can contain other contents, the ID value just has to be the last whitespace-separated item on each line. The rest of the contents will be ignored.