Fold renumbered TS guesses only when the map fixes every reactive atom

Đang mở
#1,135 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, machine-learning

Hướng nghiên cứu

Start with ARCSpecies.cluster_tsgs, almost_equal_tsgs, and the scheduler call sites run_ts_conformer_jobs and determine_most_likely_ts_conformer; trace how get_bond_change_candidates(reaction) supplies reactive atoms to the NMD check. Then inspect TestTSGuessPermutedFold and the #1116 pilot cases. Done means both pilot pairs fold safely, the three existing guards stay green, and an unoptimized guess cannot absorb an optimized one.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

ARCSpecies.cluster_tsgs folds two TS guesses only when their geometries agree in the given atom
order. Guesses that are the same TS with equivalent atoms numbered differently stay apart. Examples
are two methyl H atoms swapped, or an adapter that lists heavy atoms first. The fold that #1116
first proposed showed that a geometry-only atom map is unsafe:

  1. It folded a converged guess into a guess whose conformer opt failed. The survivor had no
    optimized geometry or energy.
  2. It dropped a guess in the reaction's atom order for an earlier one with the migrating H swapped
    with a spectator H. The survivor fails the NMD check.
  3. It folded a TS into its renumbered mirror image. In a chiral system the two connect different
    reactant wells.

On one 17-reaction pilot, the safe part of this fold would have saved 37 of 362 TS-guess conformer
opts, 32 of them in OH + CH4 and CH3 + C2H6. After the opts, it would have folded 156 guesses.

Design

Pass the reaction's reactive atoms into the fold. Fold under a non-identity map σ only when all of
these hold:

  • The map fixes every reactive atom. cluster_tsgs(reactive_atoms=...) takes the atom indices
    of the bonds that break, form or change order. These are the bonds
    get_bond_change_candidates(reaction) gives, the same ones the NMD check uses. The scheduler
    passes them at both call sites (run_ts_conformer_jobs and
    determine_most_likely_ts_conformer). σ must map each of these indices to itself. When any
    candidate set is ambiguous, use the union of all candidates. With no reactive atoms known, there
    is no permuted fold.
  • Elements, isotopes, bonds and distances match. σ keeps elements, isotopes and the perceived
    bond graph, and compare_confs passes on the re-ordered geometry. This is the #1116 search: a
    backtracking search pruned by bonds and pairwise distances.
  • Handedness matches. The signed volume of the most non-planar mapped quadruple has the same
    sign in both geometries. The search goes on past an improper map, so an achiral TS still finds
    its proper map.
  • Both guesses are optimized. Both carry opt_xyz. A guess without a converged opt is never
    a survivor and never absorbs a converged guess.

When σ fixes every reactive atom, both guesses are map-consistent or neither is, so the survivor
choice no longer matters.

Acceptance: the #1116 pilot pair (goflow / linear, heavy atoms first) and the methyl-H swap fold.
The three guards in TestTSGuessPermutedFold stay green.

Also: the identity path has fault 1 too (older than #1116, filed here, not fixed there)

almost_equal_tsgs compares get_xyz(), which falls back to initial_xyz when opt_xyz is
None, and its energy gate is skipped when either energy is None. So a converged guess whose
optimized geometry matches an unconverged guess's initial geometry, in the same atom order,
still folds into the unconverged one. The survivor then carries no energy, and a TS that converged
can be reported as having no converged guess. The fix: never let a guess without opt_xyz absorb
one that has it. Either skip the fold, or keep the converged guess as the survivor.

Ngôn ngữ chính
Python
Star
55
Fork
26
Merge trung bình
7 ngày 8 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ReactionMechanismGenerator/ARC

Tất cả issue của ReactionMechanismGenerator/ARC

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.