Skip to content

iramosgutierrez/rEDGE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rEDGE

Package to calculate EDGE scores and more phylogenetic-based indicators in R

Documentation of website under current development…

The EDGE index

The EDGE index is a metric that aims to prioritize species’ conservation bsed on both theis phylogenetic singularity (i.e. ED, Evolutionaty Distinctiveness) and their extinction risk (GE, Globally Endangered). Based on this idea, several methods have been developed in order to calculate individual EDGE scores.

To illustrate the differences among methods ant their implementationn within rEDGE package, we will see some examples using monotremates (i.e. platypus and echidna species).

EDGE1

Index based on Isaac et al., 2007. This first approach used evolutionary distinctiveness (ED) and a transformation of extinction risk (GE) in which each IUCN Red List category is twice as probable of becoming extinct. The EDGE score is calculated ussing the following formula:

EDGE = log(1+ED)+GE∗log(2)

To calculate this index for monotremates, we just have to use the calculate_EDGE1 function specifying uot phylogenetic tree, and a table including all the tree’s species (in a clomn named species, and their respective IUCN category in a column named RL.cat). Note that all species must be included, so if there are species included on the tree and not evaluated, make sure to include them on the table wit a “NE” category.

EDGE1 <- calculate_EDGE1(tree = monotreme.tree, 
                         table = monotreme.table, 
                         sort.list = T # to get the list sorted by decreasing EDGE value
                         )

knitr::kable(EDGE1)
species RL.cat ED EDGE
Zaglossus_attenboroughi CR 14.23723 5.496331
Zaglossus_bruijnii CR 14.23723 5.496331
Zaglossus_bartoni VU 14.75253 4.143296
Ornithorhynchus_anatinus NT 29.83242 4.121714
Tachyglossus_aculeatus LC 18.04178 2.946636

EDGE2

In order to take into account the extinction probability of closely related taxa as well as uncertainty in the extinction probability of species, Gumbs et al., 2023 designed a new methodology, termed EDGE2.

In this new approach, a probabilty of extinction is sampled from a continuous distribution based on the IUCN Red List category, and ED2 and EDGE” values can be calculated (develop more thoroughly…).

EDGE2 <- calculate_EDGE2(tree = monotreme.tree, 
                         table = monotreme.table, 
                         sort.list = T, # to get the list sorted by decreasing EDGE value
                         verbose = F)

knitr::kable(EDGE2)
species RL.cat TBL pext ED EDGE
Zaglossus_attenboroughi CR 8.147095 0.9999000 10.43494 10.433897
Zaglossus_bruijnii CR 8.147095 0.9999000 10.43494 10.433897
Ornithorhynchus_anatinus NT 29.832422 0.1661908 29.83242 4.957875
Zaglossus_bartoni VU 9.177698 0.2003866 15.45166 3.096305
Tachyglossus_aculeatus LC 14.111567 0.0853227 17.26119 1.472770

As this EDGE score is iteration dependant (i.e. there is a random factor in the sampling of extinction probabilty), a set of EDGE2 values can be calculated and averaged posteriorly. This multiple calculation is performed by calculate_EDGE2_multiple function, which allows to parallelize in order to speed computation times. In this example we are calculating EDGE scores 50 times and averaging the results after.

EDGE2mult <- calculate_EDGE2_multiple(tree = monotreme.tree, 
                                      table = monotreme.table, 
                                      n.iter = 50,
                                      parallelize = TRUE,
                                      n.cores = 10
                                      )
#> [1] "Seed has been set to: 74593047"


# Now we summarise table results...
EDGE2mult_summ <- EDGE2mult |> 
  bind_rows()  |> 
  group_by(species) |> 
  summarise(RL.cat = paste0(unique(RL.cat)),
            TBL  = mean(TBL ),
            pext = mean(pext),
            ED   = mean(ED  ),
            EDGE = mean(EDGE) ) |> 
  arrange(desc(EDGE))

knitr::kable(EDGE2mult_summ)
species RL.cat TBL pext ED EDGE
Zaglossus_attenboroughi CR 8.147095 0.9127187 10.33977 9.441899
Zaglossus_bruijnii CR 8.147095 0.8996084 10.37114 9.335088
Ornithorhynchus_anatinus NT 29.832422 0.1246440 29.83242 3.718433
Zaglossus_bartoni VU 9.177698 0.2413737 13.95772 3.373585
Tachyglossus_aculeatus LC 14.111567 0.0563593 17.24589 0.969964

About

Package to calculate EDGE scores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages