Skip to content
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

wilson-prior-b flag value inconsistent with B-factor value for output mtz #106

Open
DorisMai opened this issue Jun 12, 2023 · 5 comments
Open

Comments

@DorisMai
Copy link
Contributor

Does the wilson-prior-b flag enforce the global Wilson-B factor on the output? I tried to ask Careless to apply a B-factor of 10, but when I run phenix.xtriage on the output .mtz file, I got:

ML estimate of overall B value:
2.11 A**2
Estimated -log of scale factor:
-2.38

Here's the command I used for Careless:
careless mono
--disable-image-scales
--wilson-prior-b=10
--studentt-likelihood-dof=16
--iterations=30_000
--merge-half-datasets
--test-fraction=0.05
"BATCH,dHKL,XDET,YDET"
../integrate_gemmi.mtz
wb10_studentt16_out

@kmdalton
Copy link
Member

kmdalton commented Jun 12, 2023

The prior-b changes the b-factor of the prior distribution. There is some wiggle room in how well the output reflects the prior value. I wouldn't expect it to match exactly. May I ask the resolution of your data? Also, where did the number 10 come from?

@kmdalton
Copy link
Member

kmdalton commented Jun 12, 2023

I have been thinking about this problem a bit. I see two possibly helpful things I can two.

  • Output normalized structure factors (E)
  • Rescale the output to match the desired b-factor

Are either or both of those options helpful?

@DorisMai
Copy link
Contributor Author

The molecule diffracts to < 1 A.

I simply noticed that some settings (e.g. different metadata used) of Careless gave worse (in terms of R factors) preliminary solutions than others, and those settings happen to have apparently negative B-factor. Therefore, I wondered if trying to enforce a positive (unknown) B-factor would help. Do you think it makes sense to rescale the output to match a particular b-factor value? Any suggestion on finding the desired b-factor?

@kmdalton
Copy link
Member

I think it most likely makes more sense to rescale the output than to use the prior b. I fear the prior b might lead to precision loss at higher resolution. I can think about it a little more, but I'm definitely open to including some tools to rescale the output.

@kmdalton
Copy link
Member

I'll add that this has been an issue for other users as well. I am motivated to address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants