Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .infra/rdev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack:
services:
explorer:
image:
tag: sha-38afd6b
tag: sha-da493ac
replicaCount: 1
env:
# env vars common to all deployment stages
Expand Down
7 changes: 5 additions & 2 deletions client/__tests__/e2e/cell-guide.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/**
* Smoke test suite that will be run in GHA
* Tests included in this file are expected to be relatively stable and test core features
Expand Down Expand Up @@ -132,11 +132,14 @@
// Refresh the page
await page.reload();

// Wait for page to fully load after reload
await page.waitForLoadState("networkidle");

await expandMarkerGeneSetsHeader(page);

// Check if the geneset is added back
const genesetPresence = await page.locator(
`div[data-testid="geneset"]:has-text("enteric smooth muscle cell")`
const genesetPresence = await page.getByTestId(
"enteric smooth muscle cell - marker genes:geneset-name"
);
await expect(genesetPresence).toBeVisible();
});
Expand Down
2 changes: 1 addition & 1 deletion client/__tests__/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ test("categories and values from dataset appear and properly truncate if applica
.getByTestId("categorical-row")
.all();

expect(Object.keys(categoryRows).length).toBe(1001);
expect(Object.keys(categoryRows).length).toBe(1101);
},
{ page }
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,21 @@ class GeneExpression extends React.Component<{}, State> {
const displayName = name.replace(MARKER_GENE_SUFFIX_IDENTIFIER, "");
const updatedGenes = new Map();

// find ensembl IDs for each gene in the geneset
for (const [geneName, geneData] of geneset.genes) {
const geneIdIndex = geneIds.indexOf(geneName);
const geneNameIndex = geneNames.indexOf(geneName);

const geneId = geneIds
? geneIds[geneNames.indexOf(geneName)] || ""
? geneIds[geneNameIndex] || geneIds[geneIdIndex] || ""
Comment thread
kaloster marked this conversation as resolved.
: "";

const actualGeneName =
geneIdIndex === -1 ? geneName : geneNames[geneIdIndex];
Comment thread
kaloster marked this conversation as resolved.

if (geneId) {
updatedGenes.set(geneId, geneData);
genesetIds.push(geneId);
genesetNames.push(geneName);
genesetNames.push(actualGeneName);
} else {
console.warn(`No ID found for gene: ${geneName}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ class Gene extends React.Component<Props, State> {

handleDeleteGeneFromSet = (): void => {
const { dispatch, gene, geneset } = this.props;
dispatch(actions.genesetDeleteGenes(geneset, [gene.name]));

const isDEGeneSet = geneset ? geneset.startsWith("Pop") : false;

const nameToDelete = isDEGeneSet ? gene.id : gene.name;

dispatch(actions.genesetDeleteGenes(geneset, [nameToDelete]));
};

handleOpenMultiomeViz = (): void => {
Expand Down
2 changes: 1 addition & 1 deletion server/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
about_legal_privacy: null

presentation:
max_categories: 1000
max_categories: 30000
custom_colors: true

embeddings:
Expand Down
2 changes: 1 addition & 1 deletion server/tests/unit/common/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def custom_app_config(
inline_scripts=None,
about_legal_tos="null",
about_legal_privacy="null",
max_categories=1000,
max_categories=30000,
custom_colors="true",
enable_users_annotations="true",
annotation_type="local_file_csv",
Expand Down
2 changes: 1 addition & 1 deletion server/tests/unit/common/config/test_dataset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_config(self, **kwargs):

def test_init_datatset_config_sets_vars_from_default_config(self):
app_config = AppConfig()
self.assertEqual(app_config.default_dataset__presentation__max_categories, 1000)
self.assertEqual(app_config.default_dataset__presentation__max_categories, 30000)
self.assertEqual(app_config.default_dataset__diffexp__lfc_cutoff, 0.01)

def test_app_sets_script_vars(self):
Expand Down
Loading