Skip to content
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

Merged
merged 4 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

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

Copy link
Contributor Author

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

: null}
{txSegStart?.offset != null
? renderRow("Exon start offset", txSegStart.offset)
: null}
{txSegEnd?.exon_ord != null
? renderRow("Exon end", txSegEnd.exon_ord)
? renderRow("Exon end", txSegEnd.exon_ord + 1)
: null}
{txSegEnd?.offset != null
? renderRow("Exon end offset", txSegEnd.offset)
Expand Down