feat: improve organism name handling and symbol annotation in pgx-annot #422
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.
Summary
This PR improves the robustness and consistency of organism name handling and symbol annotation in the
pgx-annot.Rmodule.Key Changes
1. Organism Name Normalization
getProbeAnnotation()for common organism namescanis.*familiaris|^dog$getGeneAnnotation()andgetHumanOrtholog.biomart()2. Symbol Handling Improvements
{feature}notation instead of empty string{ENSG00000123456}gene_titleto "Unknown feature" for features with missing symbols3. Error Handling Enhancements
AnnotationHub::query()inprobe2symbol()Files Changed
R/pgx-annot.R(27 insertions, 14 deletions)Impact
These changes improve:
Test Plan
Migration Notes
The main user-visible change is that features without symbols will now display as
{feature_id}instead of empty strings. This should improve readability in plots and reports.🤖 Generated with Claude Code