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

Calculating Geometric Mean Fluorescence Intensity (gMFI) #392

Open
carduncombe opened this issue Sep 20, 2023 · 1 comment
Open

Calculating Geometric Mean Fluorescence Intensity (gMFI) #392

carduncombe opened this issue Sep 20, 2023 · 1 comment

Comments

@carduncombe
Copy link

I am trying to calculate the gMFI from a data set.

I had a couple questions about how this pop.MFI data type is calculated. What is the transformation/equation that is applied to the raw values (produced when inverse.transform = TRUE) to create the output table of pop.MFI values?

Was there a way to calculate the geometric MFI with this function?

Example code:
MFI_df <- gs_pop_get_stats(gs, nodes = "/Lymphocytes/Single Cells/live/CD3+", type = pop.MFI, inverse.transform = FALSE)

@mikejiang
Copy link
Member

mikejiang commented Sep 23, 2023

Transformation is whatever is stored/attached to gatingset. Which can be inspected by trans <- gh_get_transformations(gh, inverse = TRUE)

You can follow the example of pop.MFI https://github.com/RGLab/flowWorkspace/blob/devel/R/getStats.R#L232 to write your own custom function to calculate your geometric MFI (whatever it means), it should receive flowFrame data object, return a named numeric vector, pass the function to type in the similar way

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