Add cohort_geometries() to access cohort GeoJSON metadata - #1053
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1053 +/- ##
==========================================
+ Coverage 90.25% 90.27% +0.02%
==========================================
Files 51 51
Lines 5631 5678 +47
==========================================
+ Hits 5082 5126 +44
- Misses 549 552 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6989ac6 to
0606d4b
Compare
|
Hi @jonbrenas, CI checks are passing now. |
|
Hi @adilraza99, could you create a notebook with an example of how to use this new function? |
|
Thanks for taking a look! Sure, I can add a small example notebook showing how to use the |
|
@jonbrenas Also noting that the work for this issue is split across two PRs - this one and the earlier PR that addressed the first part of #435. |
5cdd0e7 to
25efaa0
Compare
- improve validation and handling of cohort metadata - ensure consistent behaviour when cohort data is missing - maintain compatibility with cohort_geometries changes introduced in malariagen#1053 - add tests covering edge cases and error handling
Summary
Add a new
cohort_geometries()method to expose cohort boundary geometries through the API.Changes
cohort_geometries()toAnophelesSampleMetadatajsonlibrarycohort_setvaluesImpact
Provides access to cohort geometry metadata while keeping the API simple and dependency-free.
Part of #435