Devel#38
Open
huiwenke wants to merge 31 commits into
Open
Conversation
…r short sub-blocks
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 PR introduces significant refactoring and improvements to the flexible alignment (
flexalign) functionality, centralizing the core logic into a unified dispatch engine, introducing a powerful FATCAT-hybrid mode, and exposing fine-grained optimization controls for secondary structures.Key Changes & Features:
Unified Alignment Engine (
flexalign_unified) &FlexAlignMode:Consolidated disparate flexible alignment workflows into a single entry routine named
flexalign_unified. The execution flow is directly governed by theFlexAlignModeenum, which maps to the command-line-mmoptions as follows:FLEX_STANDARD: The standard mode. Used by-mm 7(passed withss_opt = 0) and-mm 8(passed withss_opt = 1).FLEX_BEST: Used by-mm 9. This mode dynamically overrides the singless_optto evaluate both secondary structure configurations and find the best result.FLEX_FATCAT: Used by-mm 10. Dispatches execution to the new FATCAT-style flexible alignment pipeline (flexalign_fatcat_main).Secondary Structure Optimization (
ss_opt) and-mm 7/8/9:Implemented an evaluation loop (
for (int cur_ss_opt = start_ss; cur_ss_opt <= end_ss; cur_ss_opt++)) inflexalign_unifiedto control secondary structure-aware scoring.-mm 7: Enables secondary structure optimization (ss_opt = 0).-mm 8: Disables secondary structure optimization (ss_opt = 1).-mm 9: Loops through bothss_opt = 0(enabled) andss_opt = 1(disabled), benchmarking the alignments to automatically retain the structural configuration that yields the highest overall TM-score.FATCAT-style Flexible Alignment (
flexalign_fatcat_mainvia-mm 10):Introduced a robust hybrid alignment module that synergizes FATCAT’s topological flexibility with US-align’s accurate TM-score optimization.
-mm 9). If the structure already aligns excellently (global TM-scoregenerate_bounds) to optimally chain AFPs and split domains at geometrically justified hinge points.execute_flexalign_with_fallback), optimizing the local sub-alignments while assembling them into the final global flexible alignment.CLI Enhancements:
Exposed the
-hingeoption in the mainUSaligncommand-line help menu (previously commented out). Added internal parsing (hinge_set) so users can explicitly define the maximum number of hinges allowed during flexible alignments, or omit the-hingeoption to remove the hinge limit for processing large and complex structures.