Skip to content

Commit

Permalink
Use correct collection for metap functions
Browse files Browse the repository at this point in the history
  • Loading branch information
naglepuff committed Dec 4, 2024
1 parent 8a8456c commit f6a77d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nmdc_server/ingest/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def load(db: Session, function_limit=None, skip_annotation=False):
),
pipeline.load_mp_analysis,
WorkflowActivityTypeEnum.metaproteomic_analysis.value,
annotations=mongodb["functional_annotation_agg"],
annotations=mongodb["metap_gene_function_aggregation"],
function_limit=function_limit,
)
db.commit()
Expand Down
4 changes: 2 additions & 2 deletions nmdc_server/ingest/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def load_mp_analysis(db: Session, obj: Dict[str, Any], **kwargs) -> LoadObjectRe

query = annotations.find(
{
"was_generated_by": pipeline.id,
"metaproteomic_analysis_id": pipeline.id,
"gene_function_id": {
"$regex": gene_regex,
},
Expand All @@ -97,7 +97,7 @@ def load_mp_analysis(db: Session, obj: Dict[str, Any], **kwargs) -> LoadObjectRe
no_cursor_timeout=True,
projection={
"_id": False,
"was_generated_by": True,
"metaproteomic_analysis_id": True,
"count": True,
"gene_function_id": True,
"best_protein": True,
Expand Down

0 comments on commit f6a77d1

Please sign in to comment.