Skip to content

Make RefSequence a container for all contigs#610

Merged
marcelm merged 5 commits into
mainfrom
refseq
Jul 3, 2026
Merged

Make RefSequence a container for all contigs#610
marcelm merged 5 commits into
mainfrom
refseq

Conversation

@marcelm

@marcelm marcelm commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

This contains all of the purely refactoring commits of PR #607. That is, we can just merge this without having to wait for the other minor things that need to be done in that PR.

Instead of a single PackedSeq, the change is to store a Vec<PackedSeq> in RefSequence. So this means that what gets passed to a function that needs to know about the reference is no longer a &[RefSequence], but a &RefSequence.

This lets us have a single data structure that stores the full genome sequence.

Also, this moves the RefSequence to a new refseq module (refseq.rs).

marcelm added 5 commits July 3, 2026 15:25
Instead of a single `PackedSeq`, it now stores `Vec<PackedSeq>`. Type of
function parameters are adjusted accordingly from `&[RefSequence]` to
`&RefSequence`.

This lets us have a single data structure that stores the full genome
sequence.
@marcelm

marcelm commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

By the way, to avoid getting confused, I’m now trying to consistently use the term reference for the full genome and the term contig for the parts it is made of (a FASTA record, so a single chromosome or contig).

@ksahlin

ksahlin commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Okay, approved!

@marcelm marcelm merged commit 99000e9 into main Jul 3, 2026
7 checks passed
@marcelm marcelm deleted the refseq branch July 3, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants