-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make changing spacegroups easy #5
Comments
I agree that this makes a lot of sense to implement. There are a lot of gotchas to changing spacegroup, so it makes sense to include a built-in method that handles this correctly. Also, the current intuitive method of changing spacegroup by just calling the spacegroup setter-method will not end up doing anything more than storing a new We have to make sure the convention being used is to first apply basisop then apply symops. Otherwise, I agree that your method descriptions seem appropriate. Just a note about
|
As we discussed offline, another gotcha that is worth documenting here is that such a method may also have to update the For example, this would be true if one wanted to change spacegroup from |
I am just linking a related |
FYI. I added partly-working function:
This is equivalent to program I'll improve it when I find out what doesn't work – I haven't tested it much. You're of course welcome to test it. If you write me when it gives wrong results I should be able to fix it. In particular, I expect that it doesn't work correctly for reindexing that changes the volume of unit cell – I didn't have such a test case. |
We'll have to think about how to test that. Maybe we can use More to the point, I think the hard part about reindexing from a user perspective is knowing what the correct reindexing op is. Every time I need to work this out for my projects, I end up staring confusedly at the international tables. Shouldn't it be possible to automate? Is there a way to write a function |
PHENIX, according to docs, has program phenix.reindex. I tried to use equivalent cctbx command, for example:
but I got I think the reindexing operator between different settings of the same space group would be the change-of-basis operator (possibly inverted, or a combination of two c-o-b operators). These operators are tabulated in Gemmi. |
PHENIX also has phenix.reflection_file_converter HEWL_sg96.mtz --expand_to_p1 --change_to_space_group=4 --mtz=HEWL_sg4.mtz I'm not quite sure if this is a useful way to generate test data for this sort of operation, but it may at least point us in relevant directions in cctbx. |
Right now there is no obvious way to change a
DataSet
instance to a different spacegroup which possibly has a differentbasisop
and/or reciprocal asu. For unmerged data, I think something along the lines of the following is probably sufficient:For merged data, I think in addition to the basisop application, you would want to expand the asu to P1 and select the new asu.
IMHO there is enough nuance to this problem that we should provide a well tested method for this.
The text was updated successfully, but these errors were encountered: