ternary_plot





choosefile  example


choosefile  example














Function introduction

Ternary plot , has three coordinate axes. Different from the rectangular coordinate system, its three coordinate axes "end to end" form an equilateral triangle with an Angle of 60 degrees.Each end means component, or part. Ternary plot is mainly used to show the proportion of three components in different samples. In the analysis of microbial diversity, ternary plot can show the relative abundance of species in different groups.In the ternary plot, different points represent different genera, the size of points represents the average abundance of the genus in different groups, gray points represent the unenriched genus, and each color point represents the enriched genus respectively.

Input files

(1)The abundance table is the file that must be entered, which can be species or otu abundance table, and is plotted according to the annotated content..When enriched annotation information is input, an enriched ternary graph is generated;When the Focus information is input, a ternary diagram of the Focus species distribution is generated.At least one species information is input to enrich information and focus on species information.Enrich: the message of the enriched species, and the message content should correspond to the grouping table. Fill in the enrichment information of the species in the group, but fill in none that is not enriched.2. Focus on species: mark the species you care about. Type the name of the species you care about, but not the other.

(2) the grouping table is a file that must be entered, divided into three groups.In the grouping table, specify the names of the three groups and the samples. Note that this file must have a header, refer to the sample file.

(3) The sum of abundance data within all groups must be greater than 0.

(4) all tables in tab-delimited TXT format.

Parameter

(1) point size conversion (log2 conversion or not, recommended for large data differences) : default log2 conversion

(2) font size: optional font size

(3) point transparency: default transparency 0.5

(4) title: enter the name of the graph, default is Ternary plot

(5) font family: font type can be selected.

Results

(1) ternary_data.xls (general table of information of each group: the header displays species name, average abundance of each group, size of points on the species chart, and abundance ratio of species in each group from left to right)

(2) Ternary_plot.enrich.png/pdf (enrichment ternary graph: the size of the point in the graph denotes the richness of the species, and the coordinate position of the point is composed of proportions of the three groups; the color of the point denotes the enriched group, while the gray color denotes the unenriched group.)

(3) ternary_plot.Focus.png/pdf (distribution ternary graph: the size of the points in the graph indicates the abundance of the species, and the coordinate position of the points is composed of the proportion of the three groups.)

Principle

(1) According to the abundance otu table and the grouping table, the average abundance value and proportion of species abundance in the three groups were respectively calculated.

(2) Plot according to the proportion of the obtained species in each group.



example_relaive abundance example_group table

1.Input file:

Input table file, must be TXT format.Optionally, open the data in excel and save it as "text file (TAB separated)(*.txt)".

1)The abundances table(Fill out at least one column of Enrich and Focus information, which will output the corresponding result image based on the information filled.

Genus
Sand1
Sand2
Sand3
Silt1
Silt2
Silt3
Clay1
Clay2
Clay3
Enrich
Focus
Acidobacterium
0.108471
0.057683
0.050887
0.054587
0.038836
0.820473
0.851504
0.624529
0.978851
Clay
other
Edaphobacter
0.012052
0.024546
0.001272
0.0014
0.005011
0.050725
0.054818
0.086142
0.107173
Clay
Edaphobacter
CandidatusKoribacter
0.391033
1.283751
0.620826
0.282731
0.467284
0.110326
0.104763
0.163909
0.264361
Sand
CandidatusKoribacter
CandidatusSolibacter
0.433886
0.369416
0.389288
0.564062
0.804279
0.367754
0.489706
0.614958
0.370344
none
CandidatusSolibacter
Rathayibacter
0.038835
0.003682
0.008905
0.0014
0
0.092573
0.096236
0.043071
0.100029
Clay
Rathayibacter
Sinomonas
0.182125
0.288414
0.295147
0.062985
0.107738
0.007609
0.009745
0.001196
0.001191
Sand
Sinomonas
Catellatospora
0
0.024546
0.049615
0.16236
0.035078
0
0.001218
0.001196
0
Silt
other
Pilimelia
0.159359
0.204958
0.201005
0.270134
0.212971
0.003804
0.003655
0.005982
0.002382
Sand
other
Virgisporangium
0.006696
0.014728
0.021627
0.135767
0.051364
0.001268
0.008527
0.001196
0.002382
Silt
other



2)Group table

Sand
Silt Clay
Sand1
Silt1 Clay1
Sand2 Silt2 Clay2
Sand3 Silt3 Clay3

3. Result output:

1)Group information table

Groups

Sand

Silt

Clay

Ave

Enrich

Sand_ratio(%)

Silt_ratio(%)

Clay_ratio(%)

Acidobacterium

0.072347

0.304632

0.818294667

0.398424556

Clay

6.052756119

25.48638094

68.46086

Edaphobacter

0.01262333

0.019045333

0.082711

0.038126556

Clay

11.03634387

16.65097818

72.31268

CandidatusKoribacter

0.76520333

0.286780333

0.177677667

0.409887111

Sand

62.22878711

23.32189568

14.44932

CandidatusSolibacter

0.39753

0.578698333

0.491669333

0.489299222

none

27.08158811

39.42361559

33.4948

Rathayibacter

0.01714067

0.031324333

0.079778667

0.042747889

Clay

13.36570227

24.42563765

62.20866

Sinomonas

0.25522867

0.059444

0.004044

0.106238889

Sand

80.08011295

18.65104848

1.268839

Catellatospora

0.02472033

0.065812667

0.000804667

0.030445889

Silt

27.0647743

72.0542456

0.88098

Pilimelia

0.18844067

0.162303

0.004006333

0.11825

Sand

53.11928588

45.75137421

1.12934

Virgisporangium

0.01435033

0.062799667

0.004035

0.027061667

Silt

17.67608959

77.35378046

4.97013


2) output graphics

1. Enrichment ternary diagram

Note: the three coordinate axes represent three groups respectively. Each point in the figure represents each species. The position of the point is composed of the proportion of species in the three groups.


2. Distribution ternary diagram

Note:the three coordinate axes represent three groups respectively. , the size of points represents the abundance of species.