Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: make sure hare concept id is part of histogram and overlap queries #1228

Merged
Merged
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
6 changes: 4 additions & 2 deletions src/Analysis/GWASV2/Utils/cohortMiddlewareApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const fetchSimpleOverlapInfo = async (
{
variable_type: 'concept',
concept_id: hareConceptId,
}],
}].filter(Boolean), // filter out any undefined or null items (e.g. in some
// scenarios "outcome" and "selectedCovariates" are still null and/or empty)
};
const statsEndPoint = `${cohortMiddlewarePath}cohort-stats/check-overlap/by-source-id/${sourceId}/by-cohort-definition-ids/${cohortAId}/${cohortBId}`;
const reqBody = {
Expand Down Expand Up @@ -48,7 +49,8 @@ export const fetchHistogramInfo = async (
{
variable_type: 'concept',
concept_id: hareConceptId,
}],
}].filter(Boolean), // filter out any undefined or null items (e.g. in some
// scenarios "outcome" and "selectedCovariates" are still null and/or empty)
};
const endPoint = `${cohortMiddlewarePath}histogram/by-source-id/${sourceId}/by-cohort-definition-id/${cohortId}/by-histogram-concept-id/${selectedConceptId}`;
const reqBody = {
Expand Down