dials.reindex reference.file= refuses a reference in the enantiomorphic space group, contrary to help text

Đang mở
#3,353 0 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 1 ngày

@spmeisburger đang làm issue này rồi.

Từ ngày 2/12/2026.

  • #3355 của @spmeisburger — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/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
tooling

Hướng nghiên cứu

Start with command_line/reindex.py and its reference.file branch, then trace dials.util.reindex.change_of_basis_op_against_reference into algorithms/symmetry/reindex_to_reference.determine_reindex_operator_against_reference. Compare this behavior with the working reference handling in dials.cosym. The change is done when dials.reindex accepts reference files from a different space group, resolves the indexing ambiguity, and outputs experiments in the reference space group as documented.

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

Mô tả

The help for reference.file in dials.reindex says:

A file containing a reference set of intensities e.g. MTZ/cif, or a file from which a reference
set of intensities can be calculated e.g. .pdb or .cif . The space group of the reference file
will be used and if an indexing ambiguity is present, the input data will be reindexed to be
consistent with the indexing mode of this reference file.

But when the data's space group differs from the reference's, it stops before any comparison:

Sorry: Space groups are not equal. Can only reindex against a
reference dataset if both dataset are in the same spacegroup.

It's possible to work around this by calling dials.reindex twice, first to put in the reference's space group, and then to resolve the ambiguity. But it would be a simple fix, I think, to make it work as advertised.

Here's what Claude found after some digging:

  • command_line/reindex.py, the reference.file branch, calls
    dials.util.reindex.change_of_basis_op_against_reference. That builds the test miller set in the
    experiments' own space group and passes it to
    algorithms/symmetry/reindex_to_reference.determine_reindex_operator_against_reference, which
    raises the Sorry when the space group numbers differ.
  • After the operator is found, the output's space group comes only from params.space_group
    (space_group = params.space_group → reindex_experiments(..., space_group=space_group)). The
    reference's space group is never applied, and the check runs before space_group= could take
    effect.
  • dials.cosym has the same help text for its own reference=, and there it holds: cosym's
    __init__ takes space_group_info from extract_reference_intensities and uses it ("Using
    space group ... from reference"). The help for dials.reindex seems to have come with #2420.
Ngôn ngữ chính
Python
Star
107
Fork
61
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
12

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

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 dials/dials

Tất cả issue của dials/dials

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.