ExposuresProvider / cam-pipeline

Data loading pipeline for CAM database
https://exposuresprovider.github.io/cam-pipeline/
MIT License
2 stars 4 forks source link

Make sure that it responds correctly to all the integration tests in CAM-KP-API repository #91

Open gaurav opened 1 year ago

gaurav commented 1 year ago

This issue compares the queries in the CAM-KP-API Integration Tests with the output from Automat-CAM-KP. Just running the test against the new endpoint doesn't work (it returns a 422 Unprocessable Entity error), and I can't immediately figure out why. However, running these queries directly against CAM-KP-API and Automat-CAM-KP using the Swagger endpoint works.

Tests returning results on both CAM-KP-API and Automat-CAM-KP.

{"message":{"query_graph":{"nodes":{"n0":{"categories":["biolink:BiologicalProcessOrActivity"]},"n1":{"ids":["GO:0005737"],"categories":["biolink:AnatomicalEntity"]}},"edges":{"e0":{"predicates":["biolink:occurs_in"],"subject":"n0","object":"n1"}}}}}
{"message":{"query_graph":{"nodes":{"n0":{"categories":["biolink:GeneOrGeneProduct"]},"n1":{"ids":["GO:0005634"],"categories":["biolink:AnatomicalEntity"]}},"edges":{"e0":{"predicates":["biolink:part_of"],"subject":"n0","object":"n1"}}}}}

Tests failing

Here are some queries that currently work on CAM-KP-API but fail on Automat-CAM-KP with an Internal Server Error:

{"message":{"query_graph":{"nodes":{"n0":{"categories":["biolink:BiologicalProcessOrActivity"]},"n1":{"ids":["GO:0004707"]}},"edges":{"e0":{"predicates":["biolink:positively_regulates"],"subject":"n0","object":"n1"}}}}}
{"message":{"query_graph":{"nodes":{"n0":{"categories":["biolink:GeneOrGeneProduct"]},"n1":{"ids":["UniProtKB:Q9HC97"],"categories":["biolink:GeneOrGeneProduct"]},"n2":{"ids":["CL:0000738"],"categories":["biolink:AnatomicalEntity"]}},"edges":{"e0":{"predicates":["biolink:affects_activity_of"],"subject":"n0","object":"n1"},"e1":{"predicates":["biolink:part_of"],"subject":"n1","object":"n2"}}}}}

Tests that return results on CAM-KP-API but return no results on Automat-CAM-KP

{"message":{"query_graph":{"nodes":{"n0":{"ids":["CHEBI:39867"]},"n1":{"categories":["biolink:NamedThing"]}},"edges":{"e0":{"predicates":["biolink:related_to"],"subject":"n0","object":"n1"}}}}}
{"message":{"query_graph":{"nodes":{"n0":{"ids":["CHEBI:15361"]},"n1":{"categories":["biolink:NamedThing"]}},"edges":{"e0":{"predicates":["biolink:related_to"],"subject":"n0","object":"n1"}}}}}
gaurav commented 11 months ago

The examples tests have been ported over in https://github.com/ExposuresProvider/cam-pipeline/pull/111. The others will take longer to work through, and probably aren't a high priority for us right now.