remove spike via mapping#112
Open
Sam-Sims wants to merge 9 commits into
Open
Conversation
adds a step to preprocess workflow that removes any spiked reads before running anything else. onyx percentages will now be percentages excluding spike
…_mapping_stats tuple
no longer semantically a "pass" or "fail" since reads should be removed
…en classifications
4 tasks
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.
addresses #100
Initial stab at this, so things can change if needed.
Essentially adds a mapping step to the
preprocessworkflow that runs before anything else and removes any mapped reads to be stored as a*_spikes.fastqfile (currently output to the classifications subfolder). This should also handle spike ins that contain multiple species by mapping to a concatenated reference of each in those cases. All of the unmapped reads continue through fastp, and then to the rest of Scylla.Secondly the
check_spike_statusworkflow has been changed so that it does not repeat the mapping. It still reports any detected spike ins from kraken, but the mapping stats stored inspike_count_summary.jsonnow come from the new mapping step in thepreprocessworkflow.This could be confusing as
mapped_countnow means reads removed, andclassified_countmeans any reads kraken has classified as spike after the removal process (some reads might not be removed in some scenarios I guess) - so these fields names may benefit from being changed a bit.Updated tests to reflect new bahaviour