Skip to content

Commit

Permalink
Corrected display of CRISPR feature counts in analysis mode.
Browse files Browse the repository at this point in the history
Generalized feature counts in explore mode for arbitrary modalities.
  • Loading branch information
LTLA committed Jul 25, 2023
1 parent ceb174f commit ac8b932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/AnalysisMode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ export function AnalysisMode(props) {
info.push(`${resp.num_genes.ADT} ADTs`);
}
if ("CRISPR" in resp.num_genes) {
info.push(`${resp.num_genes.ADT} Guides`);
info.push(`${resp.num_genes.CRISPR} guides`);
}
info.push(`${resp.num_cells} cells`);

Expand Down
16 changes: 5 additions & 11 deletions src/components/ExploreMode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,17 +700,11 @@ export function ExplorerMode() {
}
} else if (type === "inputs_DATA") {
var info = [];
if ("default" in resp.num_genes) {
info.push(`${resp.num_genes.default} features`);
}
if ("RNA" in resp.num_genes) {
info.push(`${resp.num_genes.RNA} genes`);
}
if ("ADT" in resp.num_genes) {
info.push(`${resp.num_genes.ADT} ADTs`);
}
if ("CRISPR" in resp.num_genes) {
info.push(`${resp.num_genes.ADT} Guides`);
for (var [k, v] of Object.entries(resp.num_genes)) {
if (k == "") {
k = "unnamed modality"
}
info.push(`${v} features for ${k}`)
}
info.push(`${resp.num_cells} cells`);

Expand Down

0 comments on commit ac8b932

Please sign in to comment.