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

NA values #323

Open
Silvia-Giorgia-Signorini opened this issue Jul 9, 2024 · 1 comment
Open

NA values #323

Silvia-Giorgia-Signorini opened this issue Jul 9, 2024 · 1 comment

Comments

@Silvia-Giorgia-Signorini

Hi!
I am analysing methylation data with methylKit on R and I got some NA values after the unite function, after merging samples:

meth=unite(myobj, destrand=FALSE)

This issue does not allow me to do:

getCorrelation(meth)
clusterSamples(meth)
PCASamples(meth)

because of this NA.
What can I do to solve this issue? Do you have any advice? I really thank you in advance for your help.
Silvia

@alexg9010
Copy link
Collaborator

Hi @Silvia-Giorgia-Signorini,

If you changed the min.per.group during merging, please see Altuna's previous comment:

This is a bug and a feature. When you use min.per.group you will have NAs in your dataset because not every CpG is covered in all samples. correlation with default arguments produces NAs if there are NAs present in one of the vectors. For now, for correlation and clustering purposes do not use min.per.group, differential methylation should work when there are NAs

Otherwise, can you share more details? Do all your rows contain NAs or only a few of them? Does using na.omit() solve your issue?

Best,
Alex

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