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

Normalization of the WGBS smooth data #114

Open
priyatamapandey opened this issue Aug 19, 2022 · 5 comments
Open

Normalization of the WGBS smooth data #114

priyatamapandey opened this issue Aug 19, 2022 · 5 comments

Comments

@priyatamapandey
Copy link

Hi,
How can I normalize my smooth data?

Thank you for the help,
Priya

@priyatamapandey
Copy link
Author

Hi,
I am finding methylation signal low in some of the my samples and suspecting batch effect and want to normalize the smooth beta values (returned after getMeth() function). Want to feed this matrix into the object again but as bsseq object does not keep smoothed matrix directly. It looks to me it keep coef matrix which transform in smooth data. So I am unable to find the way where I can replace my smooth methylated profile/matrix with normalize smooth profile as I want to feed this object file in the DMRcate tool to identify DMRs.
Looking forward for suggestions.
Thank you,
Priya

@PeteHaitch
Copy link
Contributor

PeteHaitch commented Sep 13, 2022

I've never done any normalization of the data following smoothing.
@kasperdanielhansen have you?

As you note, the BSseq object does not contain the smoothed values, only the parameters, but the smoothed values can be obtained with getMeth().
I don't know how DMRcate works, but perhaps there's a way to pass in (normalized) values of getMeth() as input rather than a BSseq object to the DMRcate functions you want to use?
That's a question for the developers of that package.

@kasperdanielhansen
Copy link
Contributor

kasperdanielhansen commented Sep 14, 2022 via email

@priyatamapandey
Copy link
Author

priyatamapandey commented Sep 14, 2022

Thank you for considering my question. I have visualized a DMR region of the smooth data and suspecting the batch effect. I want to identify drms using the smooth quantile normalized data with DMRcate as I have many covariates.
I checked DMRcate uses bsseq object not any data frame/matrix.

Here is the screenshot I am sending for understanding..
Screen Shot 2022-08-22 at 9 27 28 PM

Thank you for any help and suggestions.
Priya

@PeteHaitch
Copy link
Contributor

Sorry, I don't understand what you're trying to show with that screenshot.

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

3 participants