Skip to content

Commit

Permalink
Merge pull request #1007 from opencb/TASK-7272
Browse files Browse the repository at this point in the history
TASK-7272 - Cohorts column of Variant Browser includes cohorts without calculated stats
  • Loading branch information
jmjuanes authored Jan 9, 2025
2 parents f5a531d + 88c4e5f commit fd788cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/clients/opencga/opencga-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,14 @@ export class OpenCGAClient {
// Fetch all the cohort
console.log("Fetching cohorts");
const cohortsResponse = await _this.cohorts()
.search({study: study.fqn, exclude: "samples", limit: 100});
.search({
study: study.fqn,
internalStatus: "READY,CALCULATING,INVALID",
exclude: "samples",
limit: 100,
});
study.cohorts = cohortsResponse.responses[0].results
.filter(cohort => !cohort.attributes?.IVA?.ignore);
// FIXME line above should check cohort.internal instead
// .filter(cohort => cohort.internal.index?.status === "READY");

// Keep track of the studies to fetch Disease Panels
studies.push(study.fqn);
Expand Down

0 comments on commit fd788cd

Please sign in to comment.