Commit f78347ee authored by David Hoksza's avatar David Hoksza
Browse files

hgnc-based annotation information

parent 1d2cd015
Pipeline #9603 passed with stages
in 1 minute and 30 seconds
......@@ -2,6 +2,10 @@
`Drug reactions` is a plugin which allows one to explore adverse reactions of drugs which
are interacting with entities present in given disease map.
**Please bear in mind that the mapping between drugs and entities in the map
is based on HGNC symbols. Thus, if entities in the map do not contain HGNC annotations,
there will be no mapping available, i.e. you won't see any drugs in the table and icons in the map.**
### General instructions
......@@ -16,7 +20,7 @@ The plugin shows up in the plugins panel on the right hand side of the screen.
- On plugin load, the plugin connects to a data source with drug-reactions information.
- Next, MINERVA's [drug search API](https://minerva.pages.uni.lu/doc/api/12.1/projects/#drugs)
is used to retrieve the information about species in map interacting with any of the
drugs in the previously loaded data source.
drugs in the previously loaded data source (MINERVA does the mapping based on HGNC annotations).
- The data is loaded into a table in the plugin space and the species which interact
with the uploaded drugs are highlighted by icons in the map.
- The table is searchable and automatically synchronized with highlights in the map, so where the content of
......
......@@ -146,6 +146,15 @@ function initMainPageStructure(container){
<table class="adr-table"></table>
<div class="panel panel-warning error-panel hidden">
<div class="panel-heading"> Error </div>
<div class="panel-body">
No mapping found. Either the elements in the map are not targeted by any drug in the source
<a href="https://bionlp.nlm.nih.gov/tac2017adversereactions/" target="_blank">data set</a>
or the respective elements are not annotated by HGNC.
</div>
</div>
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
......@@ -169,6 +178,11 @@ function initMainPageStructure(container){
}
function initAdrTable($container) {
if (globals.adrDataMap.length === 0){
$container.find('.error-panel').removeClass('hidden');
return;
}
$adrTable = $container.find('.adr-table');
$adrTable.bootstrapTable({
columns: [{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment