Skip to content

Commit

Permalink
Use gene query logic for all gene table values
Browse files Browse the repository at this point in the history
  • Loading branch information
naglepuff committed Dec 19, 2024
1 parent 46e369f commit 204bcd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nmdc_server/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,13 @@ def query(self, db) -> Query:

# Gene function queries are treated differently because they join
# in three different places (metaT, metaG and metaP).
if table == Table.gene_function:
if table in [
Table.gene_function,
Table.kegg_function,
Table.go_function,
Table.pfam_function,
Table.cog_function,
]:
metag_matches = filter.matches(db, self.table)
metap_conditions = [
SimpleConditionSchema(
Expand Down

0 comments on commit 204bcd6

Please sign in to comment.