Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use R language to realize Principal component Analysis of SSR data

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use R language to achieve principal component analysis of SSR data. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

A friend left a message asking how to do principal component analysis (PCA) on 0BI matrix. I checked the reference materials and found a way.

The first is to prepare the data.

The sample data comes from the poppr,csv file storage of the R language package in the following format

Total number of image.png1 loci 2 total number of samples 3 total number of populations 4, 5, 6 the number of samples in each population and the group name 7 is the sample number 8 is the group name 9 is the locus number 10 is 0, type 1 SSR data R language read data

The read.genalex () function poppr in the poppr package of R language needs to be installed for the first time.

Install.packages ('poppr')

Read in data

Library (poppr)

Mydf

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report