Skip to content

Commit

Permalink
Improve names of queries from pathway view
Browse files Browse the repository at this point in the history
Refs #2346
  • Loading branch information
kimrutherford committed Mar 8, 2025
1 parent 90311b9 commit 9ae46a9
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class GeneResultsSubsetCountComponent implements OnInit {
return;
}

this.gotoGenes(gocamTitle, gocamId, true, genes);
this.gotoGenes(gocamTitle, gocamId, false, genes);
}

gotoGenesInSubset(gocamTitle: string, gocamId: GoCamId): void {
Expand All @@ -61,14 +61,16 @@ export class GeneResultsSubsetCountComponent implements OnInit {
return;
}

this.gotoGenes(gocamTitle, gocamId, false, genes);
this.gotoGenes(gocamTitle, gocamId, true, genes);
}

private gotoGenes(gocamTitle: string, gocamId: string, allGenes: boolean, genes: string[]) {
let displayName = `genes from GO-CAM pathway "${gocamTitle}"`;
let displayName = `GO-CAM pathway "${gocamTitle}"`;

if (allGenes && this.geneListDescription) {
displayName += ' in ' + this.geneListDescription;
if (allGenes) {
displayName = 'All genes from ' + displayName;
} else {
displayName = 'Genes from ' + this.geneListDescription + ' in ' + displayName;
}
const part = new GeneListNode(displayName, genes);
const geneQuery = new GeneQuery(part);
Expand Down

0 comments on commit 9ae46a9

Please sign in to comment.