feat(domain): add receptor domain/joint config + parser (Phase 4 task 1)#26
Merged
Conversation
added 3 commits
May 18, 2026 03:27
Adds ReceptorDomainConfig / DomainSpec / JointSpec in inc/f3dock/domain/DomainSpec.h plus a DomainSpecParser that mirrors the existing FlexSampler::parse_param pattern. Three new parameter- file keys: receptorDomain, receptorJointFixed, receptorJointHinge. Validation covers duplicate ids, unknown joint endpoints, multi-parent edges, and multi-root graphs; build_graph() populates an f3dock::domain::DomainGraph with rest-pose joint transforms using Rodrigues rotation about an arbitrary axis line for hinges. PARAMS_IN::receptorDomains carries the parsed config; it is read but not yet acted on at runtime (atom partitioning is task 2, scoring-loop refactor is task 3). Existing F2Dock behaviour is untouched when no receptorDomain keys are present.
Drop the _MSC_VER/strings.h-conditional F3DOCK_STRCASECMP macro in FlexSampler.cpp and the ad-hoc tolower lambda in DomainSpec.cpp in favor of a single inline f3dock::util::iequals(string_view, string_view) in inc/f3dock/util/StringUtil.h. Pure C++20 standard library, no POSIX or MSVC-specific headers needed at the call site.
- .github/workflows/ci.yml: include feature/** branches so stacked feature PRs run CI. - tests/unit/test_f3dock_domain_spec.cpp: clang-format-18 reflow (flagged by CI on PR #26).
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.
Adds ReceptorDomainConfig / DomainSpec / JointSpec in inc/f3dock/domain/DomainSpec.h plus a DomainSpecParser that mirrors the existing FlexSampler::parse_param pattern. Three new parameter-file keys: receptorDomain, receptorJointFixed, receptorJointHinge. Validation covers duplicate ids, unknown joint endpoints, multi-parent edges, multi-root graphs; build_graph() populates an f3dock::domain::DomainGraph with rest-pose joint transforms using Rodrigues rotation about an arbitrary axis line for hinges. PARAMS_IN::receptorDomains carries the parsed config; it is read but not yet acted on at runtime (atom partitioning is task 2, scoring-loop refactor is task 3). Existing F2Dock behaviour is untouched when no receptorDomain keys are present. Unit tests in tests/unit/test_f3dock_domain_spec.cpp. Updates migration matrix. [Phase 4 task 1]