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

Correct grouped ENFC implementation #23

Closed
rbpatt2019 opened this issue Jan 25, 2022 · 1 comment
Closed

Correct grouped ENFC implementation #23

rbpatt2019 opened this issue Jan 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rbpatt2019
Copy link
Collaborator

The currently implementation of ENFC for lipid classes is not consistent with past manuscripts.
Rather than finding the mean and st.dev of the ENFC for all lipids withing the class,
we should sum the expression level of all lipids,
then calculate ENFC on those summed values.

@rbpatt2019 rbpatt2019 added the bug Something isn't working label Jan 25, 2022
@rbpatt2019 rbpatt2019 self-assigned this Jan 25, 2022
@rbpatt2019
Copy link
Collaborator Author

The quickest way to implement this is to simply call a groupby().sum()
after ENFC has been calculated on the individual lipids.
This should have no downstream effects,
as A/B/U/N lipids don't use the filtered values.

Looking through the code, though,
I'm thinking a refactor might be necessary.
How everything fits together at the moment feels -
well, clunky.

rbpatt2019 added a commit that referenced this issue Jan 25, 2022
ENFC for lipid classes is now calculated on the summed total of all lipids in that class.

BREAKING CHANGE: Prior implementations had calculated the ENFC for class by taking the mean and st.dev of the individual lipid ENFC for all lipids in a class. While not incorrect, this was inconsistent with prior work of this framework. Closes #23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant