-
Notifications
You must be signed in to change notification settings - Fork 19
Unmasking interchain contacts for complexes and fixing hardcoded paths#13
Open
gezmi wants to merge 3 commits intoMingchenchen:main from
Open
Unmasking interchain contacts for complexes and fixing hardcoded paths #13gezmi wants to merge 3 commits intoMingchenchen:main from
gezmi wants to merge 3 commits intoMingchenchen:main from
Conversation
This commit adds support for using inter-chain template information when scoring protein complexes, enabling AF2Rank-style evaluation. Changes: - Add allow_interchain_templates parameter to Diffuser, Evoformer, and _embed_template_pair in model.py - When True, template embeddings include both intra-chain and inter-chain distances. When False (default), only intra-chain template features are used (standard AF3 behavior) - Add --allow_interchain_templates CLI flag to run_af3score.py - Thread parameter through full call chain: CLI → process_fold_input → predict_structure → run_inference → model Use case: For scoring existing structures (--init_guess=true --diffusion_steps=0), this allows the template structure's full complex geometry (including interface contacts) to inform confidence predictions. Backward compatible: defaults to False to preserve standard AF3 behavior.
- Add command-line argument parsing to all 4 example scripts - Scripts now accept -i/--input_dir and -o/--output_dir flags - Remove hardcoded paths (./pdb, ./complex_chain_cifs, etc.) - Enables flexible directory structure for pipeline scripts - 1_extract_chains.py: Supports both PDB and CIF input files - 3_generate_json.py: Added -c/--csv_path flag for CSV input - 4_extract_iptm-ipae-pae-interaction.py: Modified update_sc_file() to accept parameters
- 1_extract_chains.py: Save complex_chain_sequences.csv to output directory instead of working directory - 4_extract_iptm-ipae-pae-interaction.py: Save failed_records.txt to same directory as output file
@gezmi
gezmi
force-pushed
the
feature/interchain-template-mask
branch
from
February 17, 2026 13:54
09dff46 to
40a8569
Compare
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.
Uh oh!
There was an error while loading. Please reload this page.