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

Pattern Search on Sequence Data #167

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Pattern Search on Sequence Data #167

wants to merge 10 commits into from

Conversation

Taepper
Copy link
Collaborator

@Taepper Taepper commented Jul 10, 2023

Preparation of pattern search #165!

Most relevant parts of the edits should happen in the TODO marked areas. Of course, the additional data structures that need to be added in the sequence store which are not yet added, will make up a large part of this PR

@Taepper Taepper force-pushed the patternSearch branch 2 times, most recently from 0ac902a to 4a43c9e Compare July 10, 2023 14:58
@GeorgKreuzmayr GeorgKreuzmayr changed the base branch from main to insertions July 25, 2023 14:37
Comment on lines 161 to 166
const auto* negated_reference_bitmap =
this->getBitmap(genome_pos, this->reference_genome[genome_pos]);
const auto* n_symbol_bitmap = this->getBitmap(genome_pos, NUCLEOTIDE_SYMBOL::N);
auto pure_mutation = std::make_unique<roaring::Roaring>(roaring_bitmap_andnot(
&negated_reference_bitmap->roaring, &n_symbol_bitmap->roaring
));

Choose a reason for hiding this comment

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

@Taepper I did not find where the reference genome bitmap gets flipped. Does SILO still do it? Anyways, this part is not yet correct. Should we do a union over all bitmaps except the reference bitmap to get the ones that are actually mutated to a symbol other than N

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, it should definitely still happen! For now you can do that, but the bitmap flipping must have gotten lost in refactoring somewhere .. it will be reenabled. But yes, you can Save those bitmaps. I guess "mutated to other than - or N" in order to not need a workaround for that anymore!

@danielgrittner danielgrittner force-pushed the insertions branch 2 times, most recently from 38cd759 to 568909f Compare July 27, 2023 05:59
Base automatically changed from insertions to main August 1, 2023 12:24
@GeorgKreuzmayr GeorgKreuzmayr force-pushed the patternSearch branch 2 times, most recently from 970a73b to 4d783ad Compare August 19, 2023 19:56
@Taepper Taepper changed the title Pattern Search Pattern Search on Genome Data Sep 18, 2024
@Taepper Taepper changed the title Pattern Search on Genome Data Pattern Search on Sequence Data Sep 18, 2024
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