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

EVA-3365 Filter by taxonomy when getting active contigs #412

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

nitin-ebi
Copy link
Contributor

No description provided.

Comment on lines 111 to 115
private static List<Bson> buildAggregationForActiveContigs(String assemblyAccession, int taxonomyAccession) {
Bson match = Aggregates.match(Filters.and(Filters.eq(ACTIVE_REFERENCE_ASSEMBLY_FIELD, assemblyAccession),
Filters.eq(ACTIVE_REFERENCE_TAXONOMY_FIELD, taxonomyAccession)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This aggregation applies to the clusteredVariantEntities but the taxonomy field is not really informative there.
The only reliable one is in the submittedVariantEntities.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@sundarvenkata-EBI
Copy link
Member

Looks good! Will approve after CI is fixed.

@tcezard tcezard merged commit bf5b123 into EBIvariation:master Aug 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants