Add shared polygon atlas API for strict R/Python ggseg visual parity#10
Open
mqqq333 wants to merge 2 commits into
Open
Add shared polygon atlas API for strict R/Python ggseg visual parity#10mqqq333 wants to merge 2 commits into
mqqq333 wants to merge 2 commits into
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR adds a minimal polygon atlas interoperability API for rendering R
ggseg-exported 2D polygon atlas tables inpython-ggseg. The goal is to support strict visual parity between Rggsegandpython-ggsegcortical gray-matter plots by allowing both backends to render the same atlas geometry and, when desired, the same identity colors viafill_hex.This PR adds:
read_polygon_atlas(path)for loading canonical polygon atlas CSV files;validate_polygon_atlas(atlas)for schema validation;join_polygon_values(...)for explicit join-by-label / join-by-region behavior;plot_polygons(...)for rendering shared polygon atlas tables;fill_column="fill_hex"identity-color rendering for exact cross-backend color parity;The implementation is additive and does not change existing
plot_dk,plot_aseg, orplot_jhubehavior.Related Issues
No related issue yet.
Type of Change
Checklist
devtools::check()with no errors