Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
COVID-19
models
Commits
2b614cee
Commit
2b614cee
authored
Apr 01, 2021
by
Marek Ostaszewski
Browse files
Merge branch 'repo_update' into 'master'
small update See merge request
!288
parents
6bb36b61
dd38f3a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Integration/MINERVA_access/get_identifiers.R
View file @
2b614cee
...
...
@@ -13,7 +13,7 @@ source("https://git-r3lab.uni.lu/covid/models/-/raw/master/Integration/MINERVA_a
### The address of the COVID-19 Disease Map in MINERVA
map
<-
"https://covid19map.elixir-luxembourg.org/minerva/api/"
components
<-
get_map_components
(
map
)
components
<-
get_map_components
(
map
,
project_id
=
"covid19_map_11Mar21"
)
### You may want to save components to JSON if you want to explore the structure of MINERVA's output
...
...
@@ -35,6 +35,7 @@ get_annotations <- function(model_elements, annotation_type) {
}
### Get all HGNC symbols
all_hgncs
<-
sapply
(
components
$
map_elements
,
get_annotations
,
"HGNC_SYMBOL"
)
all_hgncs
<-
lapply
(
components
$
map_elements
,
function
(
x
)
lapply
(
x
$
references
,
get_annotation
,
"HGNC_SYMBOL"
))
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment