Proper computation of SYSTEM quality - #504
Merged
Merged
Conversation
…It fixes SYSTEM quality for single-lipid non-fully populated MD-experiment pairs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
According to documentation https://databank.readthedocs.io/stable/quality.html
system quality should be multiplied by (1-w) for each fragment. In the code, we had (1-w) computed for whole lipids for all fragments and then П(1-w_i) was multiplied to all averaged fragment qualities. It was a bug.
Now, the situation is fixed. We check fragment-by-fragment. If the headgroup quality is nan for 1 lipid, then we do
penalty["head"] *= (1-w)wherewis a molar fraction. It now doesn't affect at all the quality of the tails, which is proper. Now, it looks proper. Database should be recomputed after this merge is done.It's a small but very important fix.
Fixed qualities are visible in this branch https://github.com/NMRLipids/BilayerData/commits/403-view-fixed-qualities/. One may pay attention to this commit: NMRLipids/BilayerData@778dda9
📚 Documentation preview 📚: https://databank--504.org.readthedocs.build/