diff --git a/biokb/utils.py b/biokb/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..41ec42151f36dfa97b4f7539534f80c288a9e7f1 --- /dev/null +++ b/biokb/utils.py @@ -0,0 +1,10 @@ +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