Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use R language to construct Evolutionary Tree using SSR data

Shulou Source: shulou.com Published: 2022-06-01 22:10:17 10月04日 Update

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

Tags: Data evolution samples first time site format language good-looking binary content that is tutorials readers analysis professional small and medium rich in content names ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology Xiaomi MariaDB Apple