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

SNP weights from covariance matrix #605

Open
Tannervanorden opened this issue Nov 15, 2023 · 1 comment
Open

SNP weights from covariance matrix #605

Tannervanorden opened this issue Nov 15, 2023 · 1 comment

Comments

@Tannervanorden
Copy link

Hey!

I having been using ANGSD for a population genetics study and it has been super great. I am creating a covariance matrix using doCov 1. The output is awesome and splits all of my populations really well. My one question is if there is a way to find out which SNPs are being weighted the most by the analysis. Any help would be appreciated.

Thanks,
Tanner

@aalbrechtsen
Copy link
Collaborator

Using this method it is not possible since when you create the covariance matrix you loose any information of which SNPs in important.
To find out which SNPs have the highest weights my suggestion would be to either

  1. use PCAngsd instead which can output the weights using the --selection options
  2. extract the PC you want the weights for and then use that PC as a quantitative phenotype and perform a GWAS analysis using the -doAsso option in ANGSD

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