7 Genetic Diversity

➡️ This section contains four subpages: Diversity Parameter, Circos Plot, Genetic Distance, and AMOVA, allowing you to conduct various population diversity and differentiation analyses.

7.1 Diversity Parameter

Calculate key diversity parameters for each SNP site. This approach is performed using the function from snpReady package (Granato et al. 2018).

Required Datasets:
  • data.frame
  • Site Info. (RDS) of the current data.frame, downloadable from Data Input or Data QC pages.
Steps:
  1. Upload Site Info. (required).

  2. Upload Group Info. from DAPC (optional). If uploaded, population-based parameters will be calculated.

  3. Click the Run Diversity Analysis button to generate genetic diversity and the following downloadable files.

Outputs:
  • Plot of Genetic Diversity Statistics per Site (PDF): A genome-wide scatter plot visualizing the user-selected parameter.

  • Plot of Genetic Diversity Statistics by Group (PDF): A lollipop plot visualizing the user-selected parameter.

  • Genetic Diversity per Site (RDS): Contains site information and diversity statistics, can be used as input data in the Selection Sweep/Manhattan PlotPlus.

  • Genetic Diversity Object (RDS): Contains all genetic diversity results for future use and reproducibility.

  • Genetic Diversity by Group (CSV): A table showing genetic diversity based on defined group assignments.

  • Fst Matrix (CSV): A table showing pairwise Fst based on defined group assignments.

Diversity Analysis Complete!

7.2 Circos Plot

Genome-wide diversity is visualized using Circos plots generated with the circlize package (Gu et al. 2014) based on results of diversity parameters in a sliding window format.

Required Dataset:
  • Auto-import the results from the Genetic Diversity/Diversity Parameter subpage.

  • Chromosome Info. (CSV): Reference genome information of the current study. For more details about this file, refer to Section 4.3 (SNP Density).

Step 1: Sliding Window
  1. Select parameters to generate sliding window data.

  2. Choose window size (kb) and step size (kp).

  3. Click the Run Sliding Window button to generate sliding window data for circos plot.

Step 2: Circos Plot
  1. Upload Chromosome Info. (CSV).

  2. Select a parameter for each track, and add tracks if necessary (up to a maximum of 6).

  3. Click the Run Circos Plot button to generate the circos plot.

Outputs:
  • Sliding Window Data (CSV): A sliding window dataset based on user-selected parameters.

  • Circos Plot (PDF): A circos plot visualizing the user-selected parameters, with the top 1% of each parameter colored in red.

Circos Plot Complete!

7.3 Genetic Distance

Pairwise genetic distance between populations is computed using hierfstat package. For more information, visit https://rdrr.io/cran/hierfstat/man/genet.dist.html.

Required Dataset:
  • genind with ‘Group Info.’, downloadable from Data Conversion page after you have both the data.frame and Group Info.
Steps:
  1. Select a method.

  2. Click the Run Genetic Distance button to generate the pairwise genetic distance.

Outputs:
  • Genetic Distance Plot (PDF): A plot of the pairwise genetic distance matrix based on the user-selected method.

  • Genetic Distance Matrix (CSV): A pairwise genetic distance matrix based on the user-selected method.

Genetic Distance Complete!

7.4 AMOVA (Analysis of MOlecular VAriance)

A method for assessing genetic variations and relationships within and between populations (Excoffier, Smouse, and Quattro 1992).This approach is performed using the function from hierfstat and poppr packages (Kamvar, Tabima, and Grünwald 2014; GOUDET 2004).

Required Dataset:
  • genind with ‘Group Info.’, downloadable from Data Conversion page after you have both the data.frame and Group Info.
Step 1: Run AMOVA
  1. Click the Run AMOVA button to partition genetic variation among and within populations.
Step 2: Run Permutation Test
  1. Choose the number of randomizations for the permutation test to detect the significance of three hierarchical levels. We recommend using 9, 99 (default), 199, 499, 799, or 999 permutations for more classical p-values.

  2. Click the Run Permutation Test button to perform the statistical test.

Outputs:
  • AMOVA Variance Plot (PDF): A pie chart showing the explained genetic variance of population strata among defined groups.

  • AMOVA Variance Test (PDF): A plot showing the significance test of population strata among defined groups. The histograms depict randomized strata distributions, with the black line representing genetic variance components.

  • AMOVA Table (CSV): A table with detailed AMOVA results.

AMOVA Complete!

References

Excoffier, L, P E Smouse, and J M Quattro. 1992. “Analysis of Molecular Variance Inferred from Metric Distances Among DNA Haplotypes: Application to Human Mitochondrial DNA Restriction Data.” Genetics 131 (2): 479–91. https://doi.org/10.1093/genetics/131.2.479.
GOUDET, JÉRÔME. 2004. “Hierfstat, a Package for r to Compute and Test Hierarchical F-Statistics.” Molecular Ecology Notes 5 (1): 184–86. https://doi.org/10.1111/j.1471-8286.2004.00828.x.
Granato, Italo S. C., Giovanni Galli, Evellyn Giselly de Oliveira Couto, Massaine Bandeira e Souza, Leandro Freitas Mendonça, and Roberto Fritsche-Neto. 2018. “snpReady: A Tool to Assist Breeders in Genomic Analysis.” Molecular Breeding 38 (8). https://doi.org/10.1007/s11032-018-0844-8.
Gu, Zuguang, Lei Gu, Roland Eils, Matthias Schlesner, and Benedikt Brors. 2014. Circlizeimplements and Enhances Circular Visualization in R.” Bioinformatics 30 (19): 2811–12. https://doi.org/10.1093/bioinformatics/btu393.
Kamvar, Zhian N., Javier F. Tabima, and Niklaus J. Grünwald. 2014. Poppr: An R Package for Genetic Analysis of Populations with Clonal, Partially Clonal, and/or Sexual Reproduction.” PeerJ 2 (March): e281. https://doi.org/10.7717/peerj.281.