Title: | Phylogenies for a List of Finned-Ray Fishes |
---|---|
Description: | Provides an alternative to facilitate the construction of a phylogeny for fish species from a list of species or a community matrix using as a backbone the phylogenetic tree proposed by Rabosky et al. (2018) <doi:10.1038/s41586-018-0273-1>. |
Authors: | Gabriel Nakamura [aut, cre] , Aline Richter [aut], Bruno Soares [aut] |
Maintainer: | Gabriel Nakamura <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0 |
Built: | 2024-11-20 04:36:00 UTC |
Source: | https://github.com/gabrielnakamura/fishphylomaker |
Obtaining fish phylogeny according to a local pool of species
FishPhyloMaker( data, insert.base.node = FALSE, return.insertions = TRUE, progress.bar = TRUE )
FishPhyloMaker( data, insert.base.node = FALSE, return.insertions = TRUE, progress.bar = TRUE )
data |
A data frame with three columns containing the name of species (s), the Family (f) and the Order (o). This data frame can be generated with tab_function function. |
insert.base.node |
Logical argument indicating if the species must be added automatically in the family and order (when needed) nodes. Default is FALSE |
return.insertions |
Logical, if TRUE (default) the output is a list of length two containing the phylogeny and a dataframe with a column indicating at which level each species was inserted. |
progress.bar |
Logical argument. If TRUE (default) a progress bar will be shown in console. |
A newick object containing the phylogeny with the species in data object. If return.insertions = TRUE the output will be a list of length two containing the newick phylogeny and a data frame equal that provided in data plus a column indicating at which level each species was inserted in the tree.
data("taxon_data_PhyloMaker") res_phylo <- FishPhyloMaker(data = taxon_data_PhyloMaker, insert.base.node = TRUE, return.insertions = TRUE, progress.bar = TRUE)
data("taxon_data_PhyloMaker") res_phylo <- FishPhyloMaker(data = taxon_data_PhyloMaker, insert.base.node = TRUE, return.insertions = TRUE, progress.bar = TRUE)
Generate a list of species Auxiliary function to obtain taxonomic classification and check the names of species present in species pool
FishTaxaMaker(data, allow.manual.insert = TRUE)
FishTaxaMaker(data, allow.manual.insert = TRUE)
data |
A character vector with species names or a community matrix with species names in columns |
allow.manual.insert |
Logical, if TRUE (default), the user must type the names of Family and Order of species not found in Fishbase |
List with three elements.
- A data frame containing the taxonomic classification of valid species accordingy to Fishbase - A data frame with three columns containing the name of species (s), the Family (f) and Order (o) that can be used in FishPhyloMaker function - A character vector containing all names of species that was not find in Fishbase
## Not run: data(neotropical_comm) data_comm <- neotropical_comm[, -c(1, 2)] taxon_data <- FishTaxaMaker(data_comm, allow.manual.insert = TRUE) Characidae Characiformes Characidae Characiformes Characidae Characiformes Loricariidae Siluriformes Characidae Characiformes Cichlidae Cichliformes Crenuchidae Characiformes Gymnotidae Gymnotiformes Loricariidae Siluriformes Loricariidae Siluriformes Loricariidae Siluriformes Loricariidae Siluriformes Heptapteridae Siluriformes Characidae Characiformes Loricariidae Siluriformes Characidae Characiformes ## End(Not run)
## Not run: data(neotropical_comm) data_comm <- neotropical_comm[, -c(1, 2)] taxon_data <- FishTaxaMaker(data_comm, allow.manual.insert = TRUE) Characidae Characiformes Characidae Characiformes Characidae Characiformes Loricariidae Siluriformes Characidae Characiformes Cichlidae Cichliformes Crenuchidae Characiformes Gymnotidae Gymnotiformes Loricariidae Siluriformes Loricariidae Siluriformes Loricariidae Siluriformes Loricariidae Siluriformes Heptapteridae Siluriformes Characidae Characiformes Loricariidae Siluriformes Characidae Characiformes ## End(Not run)
A dataset containing the abundance of stream fish species distributed in streams of Parana and Paraguay river Basins
neotropical_comm
neotropical_comm
A data frame with 20 rows and 61 variables:
Article published in Neotropical Ichthyology doi:10.1590/1982-0224-2020-0126
Title Calculate the amount of phylogenetic deficit in assemblages
PD_deficit(phylo, data, level = "Congeneric_insertion")
PD_deficit(phylo, data, level = "Congeneric_insertion")
phylo |
Phylogenetic tree in newick format, can be an object from |
data |
A data frame containing the classification informing the level of insertions. This can be obtained
from |
level |
Character indicating which level must be considered in the calculation of PD deficit. Can be a vector with the levels ("Congeneric_insertion", "Congeneric_Family_level", "Family_insertion", "Order_insertion") which will be considered in the calculation of phylogenetic deficit. default is "Congeneric_insertion". |
A vector containing four values:
- Amount phylogenetic information present in the tree before insertions (PDintree) - Amount of phylogenetic information inserted in the tree (PDdeficit) - Total Phylogenetic information of the tree (PDtotal) - A ratio calculated as PDdeficit/PDtotal (Darwinian_deficit)
FishPhyloMaker
for phylogeny and data frame containing the classification of insertions
A list of species that occur in basins of Afrotropical ecoregion
spp_afrotropic
spp_afrotropic
A character vector with 767 species names:
https://www.nature.com/articles/sdata2017141
A data frame that can be directly used in FishPhyloMaker to obtain a phylogenetic tree
taxon_data_PhyloMaker
taxon_data_PhyloMaker
A data frame with taxonomic classification (species, family and order) of 45 species
Species that make up the dataset in the paper published in Neotropical Ichthyology doi:10.1590/1982-0224-2020-0126
Function to inform which species must be added to the mega-tree phylogeny in the insertion process.
whichFishAdd(data)
whichFishAdd(data)
data |
A data frame with three column containing the name of species (s), the Family (f) and Order (o). This
can be generated with function |
This function can be used in order to known which species that must be added in the insertion process
made by FishPhyloMaker
.
A data frame containing a column informing at which level the species in data must be added.
data("taxon_data_PhyloMaker") res_test <- whichFishAdd(data = taxon_data_PhyloMaker)
data("taxon_data_PhyloMaker") res_test <- whichFishAdd(data = taxon_data_PhyloMaker)