-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 1-indexing for exon numbers in convert coordinates #341
Conversation
@@ -254,13 +254,13 @@ const GetCoordinates: React.FC = () => { | |||
{genomicEnd != null ? renderRow("Genomic end", genomicEnd) : null} | |||
{renderRow("Transcript", results.tx_ac)} | |||
{txSegStart?.exon_ord != null | |||
? renderRow("Exon start", txSegStart.exon_ord) | |||
? renderRow("Exon start", txSegStart.exon_ord + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we append 1 to the Tx Segment elements for these as well? If not but the behavior is different, we might want to take a look at if we should fix this in fusor instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the JSON output represents the exon numbers using 0-indexing, but since the human-readable nomenclature string that populates above the Transcript Segment Element uses 1-indexing, I thought it would be good to use 1-indexing in this case since the convert coordinates output is also human readable
client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
closes #340