Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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
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
Loading