Entering edit mode
3.7 years ago
hosin
•
0
Hi there, I have genotyped CNV segments to five types (0, 1, 2,3, 4) according to its original copy number and made a matrix (sample names as Row names and CNVs as Column names). I want to plot PCA and admixture. I would be grateful if I can receive any suggestions or related R scripts.
What have you tried? Have you gone down the
prcomp
/ggfortify::autoplot
route? How about the PCAtools route?I did not try, sorry I am new to this analysis I just made a matrix according to the CNV segments as shown below, but its big(1700 rows, 9000 columns), I would be grateful if I can receive hints for Plotting PCA?
Please just google for "r pca". You'll get tons of tutorials.
I added a reply yesterday but it looks like that got lost in the website migration. Like Malte Petersen says, Google "R pca plot" and follow a basic
prcomp
tutorial.