Skip to content

Commit

Permalink
Aggregate omics counts for gene function search
Browse files Browse the repository at this point in the history
  • Loading branch information
naglepuff committed Oct 27, 2023
1 parent 7d3815e commit b2f3057
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nmdc_server/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ def _inject_omics_data_summary(self, db: Session, query: Query) -> Query:
# Here we only insert filter conditions that are actually relevant for
# this aggregation. This reduces the complexity of subquery greatly.
op_filter_conditions = [
c for c in self.conditions if c.table.value in {"omics_processing", "biosample"}
c
for c in self.conditions
if c.table.value in {"omics_processing", "biosample", "gene_function"}
]
op_summary_subquery = self._count_omics_processing_summary(
db, op_filter_conditions
Expand Down

0 comments on commit b2f3057

Please sign in to comment.