Description:
To maintain API compatibility with upstream bio-forge 0.4.0, dreid-forge must support the newly introduced his_salt_bridge_protonation parameter in HydroConfig. This parameter enables geometric detection of histidine-carboxylate salt bridges (HIS-ASP⁻/GLU⁻/C-term COO⁻), automatically converting HIS to HIP (+1 charge) when nitrogen atoms (ND1/NE2) are within 4.0Å of carboxylate oxygens.
Tasks:
Description:
To maintain API compatibility with upstream
bio-forge0.4.0,dreid-forgemust support the newly introducedhis_salt_bridge_protonationparameter inHydroConfig. This parameter enables geometric detection of histidine-carboxylate salt bridges (HIS-ASP⁻/GLU⁻/C-term COO⁻), automatically converting HIS to HIP (+1 charge) when nitrogen atoms (ND1/NE2) are within 4.0Å of carboxylate oxygens.Tasks:
Phase 1: API Extension (
src/io/mod.rs)his_salt_bridge_protonation: boolfield toProtonationConfig(default:true).ProtonationConfig::default()implementation.Phase 2: CLI Integration (
src/bin/dforge/cli.rs,src/bin/dforge/config/bio.rs)--no-his-salt-bridgeflag toProtonationOptions.build_protonate_config()to map CLI flag to config field.Phase 3: Conversion Layer (
src/io/util.rs)to_bf_hydro_config()to pass throughhis_salt_bridge_protonation.--no-*).Phase 4: Documentation & Testing
MANUAL.mdwith salt bridge detection explanation and use cases.protonate_config_defaults_enable_salt_bridge().cli_flag_disables_salt_bridge_detection().conversion_preserves_salt_bridge_setting().README.mdexample showing both enabled/disabled modes.Phase 5: Dependency Upgrade
Cargo.toml:bio-forge = "0.4.0".cargo testto verify all 225 tests pass.dforge bio --ph 7.4 [--no-his-salt-bridge] input.pdb.