MetaPhyloTools is an R package that provides a collection of tools to process and analyse phylogeographic patterns from metabarcoding data, thus analysing hundreds of Operational Taxonomic Units at the same time. This package provides functions to obtain Molecular Operational Taxonomic Units (MOTUs) and the Exact Sequence Variants (ESV) that cluster into theese MOTUs from fasta files (in development). In addition, the package includes functions for data normalization, phylogenetic analysis, and visualization of results.
The package is designed to work with standard data table formats (data.frames) as input and output publication-ready ggplot2 visualizations, making it easy to incorporate into existing R workflows and customize plots according to specific research needs.
You can install the development version of MetaPhyloTools from GitHub:
# install.packages("devtools")
devtools::install_github("adriantich/MetaPhyloTools")edenetwork_percolation(): Calculate percolation thresholds for ecological networkspairwise_djost(): Calculate pairwise Jost's D differentiation indiceshaplo_ggplot(): Create haplotype network visualizationshaploNet_data()&haploNet_plot(): Process and plot haplotype networksrarefy_within_motu(): Rarefy data within MOTUsprint_network()&print_network_ggplot(): Network printing utilities
declu_seq(): Denoising + Clustering of Sequencesentropy_calculator(): Computes the entropy values of each position in the codond_calibrator(): rapid assessment of d curves for swarm clusteringfasta2tab(): converts fasta files into table format using vsearch
library(MetaPhyloTools)
# Calculate percolation threshold
dist_mat <- as.matrix(dist(iris[1:10, 1:4]))
result <- edenetwork_percolation(dist_mat)GPL-3
Adrià Antich (a.antich@ceab.csic.es)
The funding for the contract of the author comes from the European Union's Recovery and Resilience Facility-Next Generation, in the framework of the General Invitation of the Spanish Government’s public business entity Red.es to participate in talent attraction and retention programmes within Investment 4 of Component 19 of the Recovery, Transformation and Resilience Plan.
