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

Conversation

jarbesfeld
Copy link
Contributor

closes #340

@jarbesfeld jarbesfeld added the priority:medium Medium priority label Oct 3, 2024
@jarbesfeld jarbesfeld self-assigned this Oct 3, 2024
@@ -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

@jarbesfeld jarbesfeld requested a review from korikuzma October 7, 2024 12:55
Copy link
Member

@korikuzma korikuzma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

@jarbesfeld jarbesfeld merged commit c6f9cc8 into staging Oct 7, 2024
5 checks passed
@jarbesfeld jarbesfeld deleted the issue-340 branch October 7, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants