How to plot PCA figure using Genesis software?
0
0
Entering edit mode
3.8 years ago

I have generated PCA files using plink (eigenvec and eigenval). now I am trying to plot PCA figure using genesis software. but the figure doesn’t give me any information about group showing no group. how can I sort out this error. genesis need phenotype file and have no phenotype file.

PCA genesis plink R • 1.3k views
ADD COMMENT
2
Entering edit mode

On Page 16 of Genesis manual, they describe the expected input. It is a reformatted version of output from SNPRelate R package.

How does your input data looks like? Try to reformat it to match with the manual and test.

ADD REPLY
1
Entering edit mode

If you have the data already in the plink output format, it's easy to plot in R. If you have a column for population, you could do something like:

eigenvectors %>%
    ggplot(aes(x=PC1, y=PC2, colour=pop)) +
    geom_point()

Which avoids the need to convert to a different format.

ADD REPLY
0
Entering edit mode

i have data in plink output format but i have no information about different groups in data output.

ADD REPLY
0
Entering edit mode

You need to add those yourself.

ADD REPLY

Login before adding your answer.

Traffic: 1945 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6