Bugfix related to newscan.x and creation of SLP#5
Merged
maxrossi91 merged 4 commits intomaxrossi91:mainfrom Feb 25, 2024
Merged
Bugfix related to newscan.x and creation of SLP#5maxrossi91 merged 4 commits intomaxrossi91:mainfrom
maxrossi91 merged 4 commits intomaxrossi91:mainfrom
Conversation
…er to generate correct SLP downstream.
…d to unsigned chars
Contributor
Author
|
Just to followup, I found a separate bug in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Max,
There are two separate issues that occur when a reference text begins with a trigger string, where
mod p == 0. Here is a brief description of the issues.When using multiple threads,
moniwill usenewscan.xto create the*.parseand*.dictfile butnewscan.xhas a issue where it will not report the first trigger string as a phrase and this leads topfp_thresholdscreating an incorrect BWT.newscanNT.xdoes not have that same issue. It appears likenewscan.xmight require some more testing to ensure that there are no differences with the single-threaded version.When the first w-mer is a trigger string, downstream,
compress_dictionarywill write the compressed length of each phrase after stripping the trigger string but that will be 0. This causes an issue later on because whenprocdiccombines the grammar of the parse and dictionary, it will try to create a rule for the first phrase but there is no text in the*.diczto create a grammar for so it pushes all the rules off by one. Long story short, it creates an incorrect SLP so matching statistics are incorrect because the random-access to the text in the second pass it not correct.*.diczand*.dicz.lenand decrement all phrase ID in the*.parsefile to ensure the*.diczand*.parsefile have the same number of phrases and they correspond to each other.Here is an example text that causes this issue for testing: