Skip to content

Proper computation of SYSTEM quality - #504

Merged
comcon1 merged 2 commits into
mainfrom
403-fix-system-quality
Jun 8, 2026
Merged

Proper computation of SYSTEM quality#504
comcon1 merged 2 commits into
mainfrom
403-fix-system-quality

Conversation

@comcon1

@comcon1 comcon1 commented Jun 7, 2026

Copy link
Copy Markdown
Member

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) where w is 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/

…It fixes SYSTEM quality for single-lipid non-fully populated MD-experiment pairs

@markussmiettinen markussmiettinen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@comcon1
comcon1 merged commit 96d102d into main Jun 8, 2026
8 of 9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants