kg_idg.utils.transform_utils¶
Functions
|
Given a UniProtKB curie for an isoform such as UniprotKB:P63151-1 or UniprotKB:P63151-2, collapse to parent protein (UniprotKB:P63151 / UniprotKB:P63151) |
|
Zip up two lists to make a dict |
|
Utility fxn to get header from (first page of) a table. |
|
Retrieve item from a dict using a list of keys, in descending order of priority |
|
Guess category for a given identifier. |
|
Method to turn table data returned from tabula.io.read_pdf(), possibly broken over several pages, into a list of dicts, one dict for each row. |
|
Parses header data. |
|
Methods processes a line of text from the csv file. |
|
|
|
Given a Uniprot dat.gz file, like this: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/HUMAN_9606_idmapping.dat.gz makes dict with name to id mapping |
|
Uniprot name to ID mapping |
|
|
|
Write out a single line for a node or an edge in *.tsv :param fh: file handle of node or edge file :param header: list of header items :param data: data for line to write out :param sep: separator [ ] |
Exceptions
|
Raised when the input value is too small |
|
Base class for other exceptions |