Skip to content

Commit f6a77d1

Browse files
committed
Use correct collection for metap functions
1 parent 8a8456c commit f6a77d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nmdc_server/ingest/all.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def load(db: Session, function_limit=None, skip_annotation=False):
225225
),
226226
pipeline.load_mp_analysis,
227227
WorkflowActivityTypeEnum.metaproteomic_analysis.value,
228-
annotations=mongodb["functional_annotation_agg"],
228+
annotations=mongodb["metap_gene_function_aggregation"],
229229
function_limit=function_limit,
230230
)
231231
db.commit()

nmdc_server/ingest/pipeline.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def load_mp_analysis(db: Session, obj: Dict[str, Any], **kwargs) -> LoadObjectRe
8888

8989
query = annotations.find(
9090
{
91-
"was_generated_by": pipeline.id,
91+
"metaproteomic_analysis_id": pipeline.id,
9292
"gene_function_id": {
9393
"$regex": gene_regex,
9494
},
@@ -97,7 +97,7 @@ def load_mp_analysis(db: Session, obj: Dict[str, Any], **kwargs) -> LoadObjectRe
9797
no_cursor_timeout=True,
9898
projection={
9999
"_id": False,
100-
"was_generated_by": True,
100+
"metaproteomic_analysis_id": True,
101101
"count": True,
102102
"gene_function_id": True,
103103
"best_protein": True,

0 commit comments

Comments
 (0)