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

Covariance Matrix Filled with NA #1

Open
emorywerner opened this issue Aug 23, 2019 · 5 comments
Open

Covariance Matrix Filled with NA #1

emorywerner opened this issue Aug 23, 2019 · 5 comments

Comments

@emorywerner
Copy link

The uncentered.cov.mat generated by the SampleCovSNPs function is a matrix full of NA:
Screen Shot 2019-08-23 at 4 47 06 PM

scaled.snp.by.pop looks like:

Screen Shot 2019-08-23 at 4 48 30 PM

Is there a way to overcome this issue?

@jjberg2
Copy link
Owner

jjberg2 commented Aug 23, 2019

hmm, are any of the entries in scaled.snp.by.pop NA?

@emorywerner
Copy link
Author

Yes there was. It is working once I removed them. Thank you.

@emorywerner
Copy link
Author

Removing the NA's from scaled.snp.by.pop worked for some but not all of the files. Some of the files now are generating the matrix filled with NaN's. I tried removing NaN's from scaled.snp.by.pop with no luck.

@emorywerner emorywerner reopened this Aug 28, 2019
@jjberg2
Copy link
Owner

jjberg2 commented Aug 29, 2019 via email

@emorywerner
Copy link
Author

Hi Jeremy,

Thanks so much.

There aren't SNPs where the AF is constant for all the populations but there are SNPs where the AF is 0 for all populations except for one. However I am not sure how to deal with this. Should I exclude these SNPs? Not sure if these SNPs just do not exist in these populations or they have not been recorded in the populations.

Thanks!

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