Skip to content

Commit

Permalink
Merge branch 'ui-v2' of github.com:IGS/gEAR into ui-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jorvis committed Sep 10, 2024
2 parents 46b8b58 + a4513fb commit a9bf900
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions www/api/resources/tsne_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,6 @@ def post(self, dataset_id):
if flip_y:
adata.obsm[key][:,1] = -1 * adata.obsm[key][:,1]

# We also need to change the adata's Raw var dataframe
# We can't explicitly reset its index so we reinitialize it with
# the newer adata object.
# https://github.com/theislab/anndata/blob/master/anndata/base.py#L1020-L1022
if adata.raw is not None:
adata.raw = adata

# Reorder the categorical values in the observation dataframe
# Currently in UI only "plot_by_group" has reordering capabilities
if order:
Expand Down
2 changes: 2 additions & 0 deletions www/js/classes/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,8 @@ class AnalysisSteptSNE {
this.tsneCalculated = Boolean(computeTsne);
this.umapCalculated = Boolean(computeUmap);
this.genesToColor = document.querySelector(UI.tsneGenesToColorElt).value;
this.nNeighbors = document.querySelector(UI.dimReductionNNeighborsElt).value;
this.nPcs = document.querySelector(UI.tsneNPcsElt).value;
this.plotTsne = plotTsne;
this.plotUmap = plotUmap;
this.updateUIWithResults();
Expand Down
2 changes: 1 addition & 1 deletion www/js/curator_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ const analysisSelectUpdate = async () => {
*/
const chooseAnalysis = async () => {
const analysisValue = analysisSelect.selectedOptions.length ? getSelect2Value(analysisSelect) : undefined;
const analysisId = (analysisValue && analysisValue > 0) ? analysisValue : null;
const analysisId = analysisValue || null;
const analysisText = (analysisId?.length) ? analysisId : "Primary Analysis";

// Display current selected analysis
Expand Down

0 comments on commit a9bf900

Please sign in to comment.