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 construct Evolutionary Tree using SSR data

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

In this issue, the editor will bring you about how to use R language to use SSR data to build an evolutionary tree. The article is rich and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Today, a reader left a message asking how to draw a tree map with SSR data.

SSR data is also my first contact, I took a look at the data he sent me, is in csv format, each row is a sample, each column is a site. The values of the site are 0 and 1. This format seems to be called binary format. It's like the following.

Image.png

The first column is the sample name, and each subsequent column is a locus.

I searched the relevant tutorials and found one. Need to use the ape package, if it is the first time to use it, you need to install it first

Install.packages ("ape")

Later, the visualization of the evolutionary tree also needs to use ggtree, if it is used for the first time, it should also be installed.

BiocManager::install ("ggtree")

BiocManager must be installed the first time it is used.

Install.packages ("BiocManager")

The link to the tutorial found is https://www.biostars.org/p/100432/

The first is to read in the data df

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