Skip to content

Commit

Permalink
hide nmf algorithm options when unweighted genecart is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Dec 15, 2023
1 parent 3cf97aa commit 7a72a9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions www/js/projection.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,13 @@ $("#projection_source").on('change', (_event) => {
const gctype = $("#projection_source").data("gctype");

$("#binary_algo_form_check").hide();
$("$nmf_algo_form_check").show();
$("#fixed_algo_form_check").show();
$('#multi_pattern_group').show();
if (gctype === "unweighted-list") {
$("#binary_algo_form_check").show();
$("$nmf_algo_form_check").hide();
$("#fixed_algo_form_check").hide();
$('#multi_pattern_group').hide();
}

Expand Down
8 changes: 4 additions & 4 deletions www/projection.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,20 @@ <h3 id="projection_source_label">Select Pattern Source</h3>
<div id="projection_algorithm_c" class="form-group form-group-sm" data-toggle="tooltip" data-placement="right" title="Choose which projection algorithm to use">
<h3>Select Algorithm</h3>
<!-- TODO: Add help text for each algorithm (consult Carlo) -->
<div class="form-check">
<div class="form-check" id="pca_algo_form_check">
<input class="form-check-input" type="radio" name="projection_algo" id="pca_algo" value="pca" checked>
<label class="form-check-label" for="pca_algo">
Principal Component Analysis (PCA)
</label>
</div>
<div class="form-check">
<div class="form-check" id="nmf_algo_form_check">
<input class="form-check-input" type="radio" name="projection_algo" id="nmf_algo" value="nmf">
<label class="form-check-label" for="nmf_algo">
Least-squares optimiazation for NMF
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="projection_algo" id="nmf_algo" value="fixednmf">
<div class="form-check" id="fixednmf_algo_form_check">
<input class="form-check-input" type="radio" name="projection_algo" id="fixednmf_algo" value="fixednmf">
<label class="form-check-label" for="fixednmf_algo">
Fixed gene weights in NMF re-run
</label>
Expand Down

0 comments on commit 7a72a9e

Please sign in to comment.