Repository navigation
fix(mask): normalize Fmask FFT by cell volume to match Fprotein scale - #36
Conversation
|
Hey Doris, Thanks for the contribution! Some people from Phenix raised this kmask scale issue when I first presented it to them, but it was ultimately set aside. As you mentioned, the constant scale can be handled by the scaling algorithms when they are initialized with true Fo datasets as references, and we have not spent much time working on synthetic dataset generation. In the cases where I experimented with synthetic data, I typically used the kmask scales obtained from fitting real datasets. I think your change makes sense. I’ll run some tests on the R-free values for a few systems before merging it. I’m also curious whether there is a physical interpretation of the kmask value. How do you usually choose or set it when generating synthetic datasets after addressing the constant scale issue? Best, |
|
Hi Minhuan, |
|
Nice, that is good to know, are you generating synthetic maps with SFC after you fixing the ifft constant scale? For SFcalculator_torch/SFC_Torch/Fmodel.py Line 921 in f8a1df6 You can also set anisotropic solvent Bfactor at uaniso: SFcalculator_torch/SFC_Torch/Fmodel.py Line 925 in f8a1df6 |
|
Yes I am currently doing one-off generation of synthetic maps for exploration after fixing the ifft constant. Ideally later for batch generation of more synthetic datasets I would prefer to use the official SFC release (a dependency of sampleworks now). And for the |
|
I picked a few structures from PDB-REDO and the R-free (after scaling optimization) between master branch and this branch are very similar. I am attaching
The command is |
minhuanli
left a comment
There was a problem hiding this comment.
thank you for the contribution Doris. Looks solid to me!
Issue:
realmask2Fmaskusedifftn(norm="forward"), which makesFsolventpractically grid size (sampling rate) dependent, and no longer on a comparable scale toFprotein. We noticed this issue when making synthetic map which appeared dominated byFsolventcontribution. When given experimental data, the off-scale issue was silently absorbed by thekmaskscaling, but it also makeskmaskless physically interpretable.Proposed fix: use default ifftn normalization and scaled by cell volume so
Fmaskis (in theory) on the electron scale likeFprotein.