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

Include covariates for residual CPM #11

Open
quattro opened this issue Jun 25, 2020 · 1 comment
Open

Include covariates for residual CPM #11

quattro opened this issue Jun 25, 2020 · 1 comment

Comments

@quattro
Copy link

quattro commented Jun 25, 2020

Hi all, thanks for developing this wonderful tool--it is SO much faster than existing methods and very intuitive!

I have a feature request: is it possible to add optional covariate parameters to the primary inference functions? The idea is to use these features to residualize the CPMs in the bulk data, before matching with reference panel data (or within the reference-free approach).

Off hand, one approach would be to estimate logCPMs, regress out covariates, then take exp of the residuals to place values back into CPM-space.

thanks!

@brandonjew
Copy link
Collaborator

Hi Nick,

Thanks, glad to hear it!

Covariate adjustment is something a few people have expressed interest in. I'll implement this (or something similar, still need to discuss this with others) as a test feature in the next week or so and include it in the github version of the package. I'll send you an update here when it's updated.

Thanks again and let me know if you have any other questions or suggestions.
Brandon

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