Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
1fd11fa3
Commit
1fd11fa3
authored
5 months ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
translate SBO terms to types
parent
d1c9360a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!248
Resolve "validation of bioEntity response"
Pipeline
#95496
passed
5 months ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/bioEntity/getTypeBySBOTerm.ts
+33
-1
33 additions, 1 deletion
src/utils/bioEntity/getTypeBySBOTerm.ts
with
33 additions
and
1 deletion
src/utils/bioEntity/getTypeBySBOTerm.ts
+
33
−
1
View file @
1fd11fa3
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
'
---
'
;
}
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment