Add sprinzl_coords parameter to plot_tRNA_structure()#21
Open
jayhesselberth wants to merge 2 commits intodevelfrom
Open
Add sprinzl_coords parameter to plot_tRNA_structure()#21jayhesselberth wants to merge 2 commits intodevelfrom
jayhesselberth wants to merge 2 commits intodevelfrom
Conversation
When `sprinzl_coords` is provided, position columns in `modifications`, `outlines`, `text_colors`, and `linkages` are interpreted as Sprinzl labels and converted to 1-based sequence positions automatically. The tRNA is resolved in the Sprinzl table via `trna_id` or auto-matched from the `trna` argument. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use plot_tRNA_structure() with linkage arcs to show significant rewiring for tRNA-Glu-TTC, replacing the chord diagram visualization. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
plot_tRNA_structure()gainssprinzl_coordsandtrna_idparameters that automatically convert Sprinzl labels (e.g., anticodon positions 34-36) to 1-based sequence positions inmodifications,outlines,text_colors, andlinkagesconvert_sprinzl_positions()helper with warning on unmatched labels and row droppingnuc--prefixed and bare tRNA IDs in Sprinzl coordinate tablesCloses #20
Test plan
convert_sprinzl_positionsmaps labels to positions correctly🤖 Generated with Claude Code