Skip to content
Snippets Groups Projects
Commit a6876a0a authored by Carlos Vega's avatar Carlos Vega
Browse files

added method to extract entity code from uri

parent d224ed53
No related branches found
No related tags found
No related merge requests found
def uri_to_code(uri: str) -> str:
"""Translates URIs such as http://lcsb.uni.lu/biokb/entities/BTO_0001043 to BTO_0001043
Arguments:
uri {str} -- [description]
Returns:
str -- [description]
"""
return uri.split('/')[-1]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment