Skip to content

Commit

Permalink
add hover over titles for thresholds, new advanced filter actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnjng committed May 21, 2021
1 parent 9007f66 commit f44c932
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions LDlink/LDlink-5.1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -2644,8 +2644,8 @@ function populateSNPlistLDexpress(data) {
$("#ldexpress-snp-list").append(
$("<tr>", { class: 'ldexpress-snps-list-rows', id: 'snp__row__' + value }).append(
$("<td>", { 'style': 'white-space: nowrap; width: 150px;' }).append([
$('<input />', { type: 'checkbox', id: 'filter__snp__' + value, value: 'snp__' + value, 'style': "margin-right: 4px;", class: 'ldexpress-data-filters' }),
$('<label />', { 'for': 'filter__snp__' + value, text: value, 'style': 'white-space: nowrap;' })
$('<input />', { type: 'checkbox', id: 'filter__snp__' + value, value: 'snp__' + value, 'style': "margin-right: 4px;", class: 'ldexpress-data-filters', 'title': 'Filter on variant' }),
$('<label />', { 'for': 'filter__snp__' + value, text: value, 'style': 'white-space: nowrap;', 'title': value })
])
)
)
Expand All @@ -2660,8 +2660,8 @@ function populateGeneslistLDexpress(data) {
$("#ldexpress-genes-list").append(
$("<tr>", { class: 'ldexpress-genes-list-rows', id: 'gene__row__' + value.split("__")[0] }).append(
$("<td>", { 'style': 'white-space: nowrap; width: 150px;' }).append([
$('<input />', { type: 'checkbox', id: 'filter__gene__' + value.split("__")[0], value: 'gene__' + value.split("__")[0], 'style': "margin-right: 4px;", class: 'ldexpress-data-filters' }),
$('<label />', { 'for': 'filter__gene__' + value.split("__")[0], text: value.split("__")[0], 'style': 'white-space: nowrap;' })
$('<input />', { type: 'checkbox', id: 'filter__gene__' + value.split("__")[0], value: 'gene__' + value.split("__")[0], 'style': "margin-right: 4px;", class: 'ldexpress-data-filters', 'title': 'Filter on gene' }),
$('<label />', { 'for': 'filter__gene__' + value.split("__")[0], text: value.split("__")[0], 'style': 'white-space: nowrap;', 'title': value.split("__")[0] })
])
)
)
Expand All @@ -2676,8 +2676,8 @@ function populateTissueslistLDexpress(data) {
$("#ldexpress-tissues-list").append(
$("<tr>", { class: 'ldexpress-tissues-list-rows', id: 'tissue__row__' + value.split("__")[1] }).append(
$("<td>", { 'style': 'white-space: nowrap; width: 150px;' }).append([
$('<input />', { type: 'checkbox', id: 'filter__tissue__' + value.split("__")[1], value: 'tissue__' + value.split("__")[1], 'style': 'margin-right: 4px;', class: 'ldexpress-data-filters' }),
$('<label />', { 'for': 'filter__tissue__' + value.split("__")[1], text: value.split("__")[0], 'style': 'white-space: nowrap;' })
$('<input />', { type: 'checkbox', id: 'filter__tissue__' + value.split("__")[1], value: 'tissue__' + value.split("__")[1], 'style': 'margin-right: 4px;', class: 'ldexpress-data-filters', 'title': 'Filter on tissue' }),
$('<label />', { 'for': 'filter__tissue__' + value.split("__")[1], text: value.split("__")[0], 'style': 'white-space: nowrap;', 'title': value.split("__")[0] })
])
)
)
Expand Down
10 changes: 5 additions & 5 deletions LDlink/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,13 @@ <h2 class="text-center">LDexpress Tool<sup><a class="help-anchor-link glyphicon
<div class="input-group row" title="R2 or D' threshold for LD with query SNP">
<label id="ldexpress_r2_d_threshold_label" for="ldexpress_r2_d_threshold" style="width: 30px">R<sup>2</sup> &ge;</label>
<input id="ldexpress_r2_d_threshold" type="text" pattern="(0(\.[0-9]+)?|1(\.0+)?|\.([0-9]+)?|e\-[1-9]+)" value="0.1"
title="Threshold must be a number between 0 and 1" required>
title="Threshold must be a number between 0 and 1.&#013;Scientific notation supported (i.e. 1e-5)." required>
</div>
<div style="clear:both;"></div>
<div class="input-group row" title="P-value threshold for the QTL association">
<label id="ldexpress_p_threshold_label" for="ldexpress_p_threshold" style="width: 30px">P &nbsp;&lt;</label>
<input id="ldexpress_p_threshold" type="text" pattern="(0(\.[0-9]+)?|1(\.0+)?|\.([0-9]+)?|e\-[1-9]+)" value="0.1"
title="Threshold must be a number between 0 and 1" required>
title="Threshold must be a number between 0 and 1.&#013;Scientific notation supported (i.e. 1e-5)." required>
</div>
<div style="clear:both;"></div>
<div class="input-group row" style="min-width: 200px;">
Expand Down Expand Up @@ -872,7 +872,7 @@ <h2 class="text-center">LDexpress Tool<sup><a class="help-anchor-link glyphicon
<!-- thinned snps -->
<table class="ldexpress-table-thin table table-striped table-chip" style="position: relative;">
<caption>
<span id="toggle-show-ldexpress-thin-snps" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true"></span>
<span id="toggle-show-ldexpress-thin-snps" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true" title="Toggle show/hide SNPs"></span>
Variants in LD with GTEx QTL
</caption>
<!-- <thead>
Expand All @@ -885,7 +885,7 @@ <h2 class="text-center">LDexpress Tool<sup><a class="help-anchor-link glyphicon
<!-- thinned genes -->
<table class="ldexpress-table-thin table table-striped table-chip" style="position: relative;">
<caption>
<span id="toggle-show-ldexpress-thin-genes" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true"></span>
<span id="toggle-show-ldexpress-thin-genes" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true" title="Toggle show/hide genes"></span>
Genes with GTEx QTL
</caption>
<!-- <thead>
Expand All @@ -898,7 +898,7 @@ <h2 class="text-center">LDexpress Tool<sup><a class="help-anchor-link glyphicon
<!-- thinned tissues -->
<table class="ldexpress-table-thin table table-striped table-chip" style="position: relative;">
<caption>
<span id="toggle-show-ldexpress-thin-tissues" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true"></span>
<span id="toggle-show-ldexpress-thin-tissues" class="toggle-show-thinned mr-1 glyphicon glyphicon-minus" aria-hidden="true" title="Toggle show/hide tissues"></span>
Tissues with GTEx QTL
</caption>
<!-- <thead>
Expand Down

0 comments on commit f44c932

Please sign in to comment.