Skip to content

feat!: add chromosome lookup to sequence reference utils#67

Merged
jsstevenson merged 6 commits into0.2.0from
feat/get-chr-from-refget
Oct 27, 2025
Merged

feat!: add chromosome lookup to sequence reference utils#67
jsstevenson merged 6 commits into0.2.0from
feat/get-chr-from-refget

Conversation

@jsstevenson
Copy link
Member

@jsstevenson jsstevenson commented Oct 23, 2025

I just realized that you need to also know the chromosome name for your refget accession ID to do liftover, so I just moved stuff around in that module so both assembly and chromosome are returned.

I'm really hoping that I'm not messing up the refget/sequence reference terminology.

@jsstevenson jsstevenson requested a review from korikuzma October 23, 2025 18:45
@jsstevenson jsstevenson added the priority:low Low priority label Oct 23, 2025
@jsstevenson jsstevenson removed the request for review from korikuzma October 23, 2025 18:48
@jsstevenson jsstevenson marked this pull request as draft October 23, 2025 18:48
@jsstevenson jsstevenson marked this pull request as ready for review October 23, 2025 19:19
@jsstevenson jsstevenson requested a review from korikuzma October 23, 2025 19:19
REFGET_ID_LOOKUP = {v: k for k, v in REFGET_ID_INFO.items()}


_ERROR_PATTERN = re.compile(r"^SQ\.[0-9A-Za-z_\\-]{32}$")
Copy link
Member

Choose a reason for hiding this comment

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

We may consider renaming this to refget ac pattern (or something similar). Error pattern may be a little misleading

@jsstevenson jsstevenson merged commit b838b97 into 0.2.0 Oct 27, 2025
17 checks passed
@jsstevenson jsstevenson deleted the feat/get-chr-from-refget branch October 27, 2025 12:55
jsstevenson added a commit that referenced this pull request Oct 29, 2025
I just realized that you need to also know the chromosome name for your refget accession ID to do liftover, so I just moved stuff around in that module so both assembly and chromosome are returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants