Feature/16s standalone#14
Open
KWchip wants to merge 6 commits intothh32:masterfrom
Open
Conversation
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.
Description
This PR introduces a
16sstandalone mode and significantly improves the execution time of the IMNGS ecological analysis through multithreading.As a researcher utilizing Protologger for environmental ecosystem profiling, I found the IMNGS module incredibly powerful, but frequently needed to contextualize 16S isolates without running the full WGS pipeline.
Key Changes
16sexecution mode: Bypasses WGS requirements (CheckM, GTDB-Tk, PROKKA, etc.) to strictly execute taxonomic placement, tree building, and IMNGS prevalence analysis.concurrent.futures.ThreadPoolExecutorfor the IMNGS amplicon BLAST loop. Controlled via a new-t/--threadsargument (default: 1). In local testing on 70 threads, this reduced the ecological analysis step time by ~91%.musclecommand flags to be compatible with Muscle v5 (-alignand-output).fastANIto prevent crashes when GTDB-Tk does not return reference genomes (e.g., when using modern GTDB releases like r226 that lack thefastanidatabase folder).usearchis proprietary and frequently unavailable in standard bioinformatics environments.Testing
16smode: Successfully completes taxonomic and ecological analysis, exiting cleanly before genome steps.fullmode: Successfully runs end-to-end, inheriting the new multithreaded IMNGS logic. Ecological prevalence outputs have been verified 1:1 against the original sequential pipeline.