Skip to content
Snippets Groups Projects
Commit 1fd11fa3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

translate SBO terms to types

parent d1c9360a
No related branches found
No related tags found
1 merge request!248Resolve "validation of bioEntity response"
Pipeline #95496 passed
export const getTypeBySBOTerm = (sbo: string | undefined): string => {
return sbo || '';
switch (sbo) {
case 'SBO:0000334':
return 'Antisense RNA';
case 'SBO:0000253':
case 'SBO:0000297':
return 'Complex';
case 'SBO:0000289':
return 'Hypothetical Complex';
case 'SBO:0000291':
return 'Degraded';
case 'SBO:0000298':
return 'Drug';
case 'SBO:0000243':
return 'Gene';
case 'SBO:0000252':
case 'SBO:0000421':
case 'SBO:0000284':
case 'SBO:0000244':
return 'Protein';
case 'SBO:0000327':
return 'Ion';
case 'SBO:0000358':
return 'Phenotype';
case 'SBO:0000278':
return 'RNA';
case 'SBO:0000247':
case 'SBO:0000299':
return 'Simple molecule';
case 'SBO:0000285':
return 'Unknown';
default:
return '---';
}
};
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