Add configurable worker and CPU counts for database searches - #718
Open
dmora127 wants to merge 4 commits into
Open
Add configurable worker and CPU counts for database searches#718dmora127 wants to merge 4 commits into
dmora127 wants to merge 4 commits into
Conversation
Author
|
@Augustin-Zidek I added a few changes to allow users to select the number of concurrent searches and number of cores to use for the database search. This has proven very useful for increasing the throughput of running AF3 in HTC computing environments. Let me know if you have any questions for your review. |
Collaborator
|
I've exposed the Hmmsearch CPU count in e2de24b. Could you rebase on top of that? |
Collaborator
|
Also note that |
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.
This pull request introduces improved configurability and resource management for running sequence alignment tools in the AlphaFold pipeline. The main focus is on allowing users to control the number of concurrent workers and CPUs for Jackhmmer, Nhmmer, and Hmmsearch processes, which can lead to better performance tuning and system utilization.
Resource Management and Parallelism Improvements:
run_alphafold.pyto configure the number of CPUs and concurrent workers for Jackhmmer, Nhmmer, and Hmmsearch (--jackhmmer_n_workers,--nhmmer_n_workers,--hmmsearch_n_cpu). These defaults and limits are chosen to optimize parallel execution without overwhelming the system. [1] [2]DataPipelineConfigclass to include new parameters for the number of workers and CPUs for each tool, and ensured these are passed throughout the pipeline. [1] [2] [3]Hmmsearch Configuration:
--cpuflag is set dynamically based on user configuration. [1] [2] [3] [4] [5] [6]These changes make the pipeline more flexible and efficient, especially on multi-core systems, by allowing fine-grained control over parallel execution and CPU allocation.