Skip to content

Commit

Permalink
Merge branch 'master' into mech-graph
Browse files Browse the repository at this point in the history
  • Loading branch information
qu-y committed Nov 20, 2024
2 parents c36ec86 + ade8027 commit 9b760fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/PigeanTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DataDownload from "@/components/DataDownload.vue";
import keyParams from "@/utils/keyParams";
import PigeanTable from "./PigeanTable.vue";
import ResearchPheWAS from "@/components/researchPortal/ResearchPheWAS.vue";
import { DEFAULT_SIGMA } from "@/utils/bioIndexUtils";
import uiUtils from "@/utils/uiUtils";
import alertUtils from "@/utils/alertUtils";
import plotUtils from "@/utils/plotUtils";
Expand Down Expand Up @@ -166,14 +167,14 @@ export default Vue.component("pigean-table", {
}
},
phewasKey(item) {
return `${item.phenotype},${this.genesetSize},${this.traitGroup},${item.factor}`;
return `${item.phenotype},${DEFAULT_SIGMA},${this.genesetSize},${item.factor}`;
},
subtableKey(item) {
if (this.config.queryParam === "cluster") {
return `${item.phenotype},${this.genesetSize},${this.traitGroup},${item.factor}`;
return `${item.phenotype},${DEFAULT_SIGMA},${this.genesetSize},${item.factor}`;
}
return `${item.phenotype},${item[this.config.queryParam]},${
this.genesetSize},${this.traitGroup}`;
DEFAULT_SIGMA},${this.genesetSize}`;
},
generateId(label) {
return label.replaceAll(",", "").replaceAll(" ", "_");
Expand Down
3 changes: 2 additions & 1 deletion src/views/PIGEAN/Gene/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export default new Vuex.Store({
if (!!name) {
context.dispatch("gene/query", { q: name });
context.dispatch("pigeanGene/query", { q:
`${traitGroup},${name},${bioIndexUtils.DEFAULT_SIGMA},${genesetSize}` });
`${traitGroup},${name},${bioIndexUtils.DEFAULT_SIGMA},${genesetSize}`,
limit: 1000 });
}
},
async getPigeanPhenotypes(context) {
Expand Down

0 comments on commit 9b760fd

Please sign in to comment.