Type: Package
Title: Calculate Ecological Information and Diatom Based Indices
Version: 0.1.5
Maintainer: Joaquin Cochero <jcochero@ilpla.edu.ar>
Description: Calculate multiple biotic indices using diatoms from environmental samples. Diatom species are recognized by their species' name using a heuristic search, and their ecological data is retrieved from multiple sources. It includes number/shape of chloroplasts diversity indices, size classes, ecological guilds, and multiple biotic indices. It outputs both a dataframe with all the results and plots of all the obtained data in a defined output folder. - Sample data was taken from Nicolosi Gelis, Cochero & Gómez (2020, <doi:10.1016/j.ecolind.2019.105951>). - The package uses the 'Diat.Barcode' database to calculate morphological and ecological information by Rimet & Couchez (2012, <doi:10.1051/kmae/2012018>),and the combined classification of guilds and size classes established by B-Béres et al. (2017, <doi:10.1016/j.ecolind.2017.07.007>). - Current diatom-based biotic indices include the DES index by Descy (1979) - EPID index by Dell'Uomo (1996, ISBN: 3950009002) - IDAP index by Prygiel & Coste (1993, <doi:10.1007/BF00028033>) - ID-CH index by Hürlimann & Niederhauser (2007) - IDP index by Gómez & Licursi (2001, <doi:10.1023/A:1011415209445>) - ILM index by Leclercq & Maquet (1987) - IPS index by Coste (1982) - LOBO index by Lobo, Callegaro, & Bender (2002, ISBN:9788585869908) - SLA by Sládeček (1986, <doi:10.1002/aheh.19860140519>) - TDI index by Kelly, & Whitton (1995, <doi:10.1007/BF00003802>) - SPEAR(herbicide) index by Wood, Mitrovic, Lim, Warne, Dunlop, & Kefford (2019, <doi:10.1016/j.ecolind.2018.12.035>) - PBIDW index by Castro-Roa & Pinilla-Agudelo (2014) - DISP index by Stenger-Kovács et al. (2018, <doi:10.1016/j.ecolind.2018.07.026>) - EDI index by Chamorro et al. (2024, <doi:10.1021/acsestwater.4c00126>) - DDI index by Álvarez-Blanco et al. (2013, <doi:10.1007/s10661-012-2607-z>) - PDISE index by Kahlert et al. (2023, <doi:10.1007/s10661-023-11378-4>).
License: GPL-2 | GPL-3 [expanded from: GNU General Public License]
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
Depends: R (≥ 2.10), stringdist, vegan, ggplot2, tidyr
Imports: data.table, purrr, stringr, tibble
Suggests: knitr, rmarkdown,
NeedsCompilation: no
Packaged: 2024-12-20 12:02:00 UTC; Juaco
Author: Maria Mercedes Nicolosi Gelis ORCID iD [aut], Maria Belen Sathicq ORCID iD [aut], Joaquin Cochero ORCID iD [cre]
Repository: CRAN
Date/Publication: 2024-12-20 12:30:01 UTC

diathor: Calculate Ecological Information and Diatom Based Indices

Description

Calculate multiple biotic indices using diatoms from environmental samples. Diatom species are recognized by their species' name using a heuristic search, and their ecological data is retrieved from multiple sources. It includes number/shape of chloroplasts diversity indices, size classes, ecological guilds, and multiple biotic indices. It outputs both a dataframe with all the results and plots of all the obtained data in a defined output folder. - Sample data was taken from Nicolosi Gelis, Cochero & Gómez (2020, doi:10.1016/j.ecolind.2019.105951). - The package uses the 'Diat.Barcode' database to calculate morphological and ecological information by Rimet & Couchez (2012, doi:10.1051/kmae/2012018),and the combined classification of guilds and size classes established by B-Béres et al. (2017, doi:10.1016/j.ecolind.2017.07.007). - Current diatom-based biotic indices include the DES index by Descy (1979) - EPID index by Dell'Uomo (1996, ISBN: 3950009002) - IDAP index by Prygiel & Coste (1993, doi:10.1007/BF00028033) - ID-CH index by Hürlimann & Niederhauser (2007) - IDP index by Gómez & Licursi (2001, doi:10.1023/A:1011415209445) - ILM index by Leclercq & Maquet (1987) - IPS index by Coste (1982) - LOBO index by Lobo, Callegaro, & Bender (2002, ISBN:9788585869908) - SLA by Sládeček (1986, doi:10.1002/aheh.19860140519) - TDI index by Kelly, & Whitton (1995, doi:10.1007/BF00003802) - SPEAR(herbicide) index by Wood, Mitrovic, Lim, Warne, Dunlop, & Kefford (2019, doi:10.1016/j.ecolind.2018.12.035) - PBIDW index by Castro-Roa & Pinilla-Agudelo (2014) - DISP index by Stenger-Kovács et al. (2018, doi:10.1016/j.ecolind.2018.07.026) - EDI index by Chamorro et al. (2024, doi:10.1021/acsestwater.4c00126) - DDI index by Álvarez-Blanco et al. (2013, doi: 10.1007/s10661-012-2607-z) - PDISE index by Kahlert et al. (2023, doi:10.1007/s10661-023-11378-4).

Author(s)

Maintainer: Joaquin Cochero jcochero@ilpla.edu.ar (ORCID)

Authors:


CEMFGS_RB

Description

Index values for diatom species combining their ecological guilds with their size classes

Usage

data(cemfgs_rb)

Format

A data frame with the ecological values for 495 species

Source

doi:10.1016/j.ecolind.2017.07.007

References

B-Béres, V., Török, P., Kókai, Z., Lukács, Á., Enikő, T., Tóthmérész, B., & Bácsi, I. (2017). Ecological background of diatom functional groups: Comparability of classification systems. Ecological Indicators, 82, 183-188.


DBC (offline)

Description

Diatom database from the 'Diat.Barcode' project V9.0

Usage

data(dbc_offline)

Format

A data frame with ecological and morphological information for 8066 diatoms

Source

https://www.kmae-journal.org/articles/kmae/abs/2012/03/kmae120025/kmae120025.html

References

Rimet F. & Bouchez A., 2012. Life-forms, cell-sizes and ecological guilds of diatoms in European rivers. Knowledge and management of aquatic ecosystems, 406: 1-14. DOI:10.1051/kmae/2012018


DDI

Description

Index values for diatom species included in the DDI index

Usage

data(ddi)

Format

A data frame with the ecological values for 137 species

Source

https://link.springer.com/article/10.1007/s10661-012-2607-z

References

Álvarez-Blanco, I., Blanco, S., Cejudo-Figueiras, C., & Bécares, E. (2013). The Duero Diatom Index (DDI) for river water quality assessment in NW Spain: design and validation. Environmental monitoring and assessment, 185, 969-981.


DES

Description

Index values for diatom species included in the DES index

Usage

data(des)

Format

A data frame with the ecological values for 622 species

Source

https://pascal-francis.inist.fr/vibad/index.php?action=getRecordDetail&idt=PASCAL8060205402

References

Descy, J. P. 1979. A new approach to water qualityestimation using diatom. Beih. Nov Hedw. 64:305-323


DiaThor: A package to calculate multiple diatom-based biotic indices

Description

The package calculates multiple biotic indices using diatoms from environmental samples. Diatom species are recognized by their species' name using a heuristic search, and their ecological data is retrieved from multiple sources. Morphological information about the species is retrieved from the 'Diat.Barcode' project:

Size class classification is obtained from:

Guild classification is obtained from:

The combined classification of size classes and guilds is obtained from:

Van Dam classification is obtained form:

Diversity index (Shannons H') is calculated using the vegan package, following:

Species tolerance and their ecological information to calculate each biotic index is retrieved from their original sources:

Sample data included in the package is taken from:

Functions

diat_loadData() diat_morpho() diat_size() diat_diversity() diat_guilds() diat_vandam() diat_loadData() diat_ips() diat_tdi() diat_idp() diat_des() diat_epid() diat_idch() diat_ilm() diat_lobo() diat_sla() diat_spear() diat_pbidw() diat_disp() diat_idap() diat_edi() diat_ddi() diat_pdise() diat_cemfgs_rb() diat_checkName() diat_getDiatBarcode() diat_taxaList()

Author(s)

Maintainer: Joaquin Cochero jcochero@ilpla.edu.ar (ORCID)

Authors:


Runs all the DiaThor functions in a pipeline

Description

The diaThorAll function is the master function of the package. It calculates all outputs from the data, and places them in the Output folder The input file for the package is a dataframe or an external CSV file. Species should be listed as rows, with species' names in column 1 (column name should be "species") The other columns (samples) have to contain the abundance of each species (relative or absolute) in each sample. The first row of the file has to contain the headers with the sample names. Remember that a column named "species" is mandatory, containing the species' names If a dataframe is not specified as a parameter (species_df), the package will show a dialog box to search for the CSV file A second dialog box will help set up an Output folder, where all outputs from the package will be exported to (dataframes, CSV files, plots in PDF) The package also downloads and installs a wrapper for the 'Diat.Barcode' project. Besides citing the DiaThor package, the Diat.Barcode project should also be cited, as follows:

Sample data in the examples is taken from:

Usage

diaThorAll(
  species_df,
  isRelAb = FALSE,
  maxDistTaxa = 2,
  resultsPath,
  calculateguilds = TRUE,
  vandam = TRUE,
  vandamReports = TRUE,
  singleResult = TRUE,
  exportFormat = 3,
  exportName = "DiaThor_results",
  plotAll = TRUE,
  color = "#0073C2",
  updateDBC = TRUE
)

Arguments

species_df

The data frame with your species data. Species as rows, Sites as columns. If empty, a dialog will prompt for a CSV file

isRelAb

Boolean. If set to 'TRUE' it means that your species' data is the relative abundance of each species per site. If FALSE, it means that it the data corresponds to absolute densities. Default = FALSE

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

resultsPath

String. Path to the output folder. If none specified (default), a dialog box will prompt to select it

calculateguilds

Boolean. If set to 'TRUE' the percentage of abundance of each diatom guild will be calculated. Default = TRUE

vandam

Boolean. If set to 'TRUE' the Van Dam classifications will be calculated in the Output. Default = TRUE

vandamReports

Boolean. If set to 'TRUE' the detailed reports for the Van Dam classifications will be reported in the Output. Default = TRUE

singleResult

Boolean. If set to 'TRUE' all results will go into a single output file. If FALSE, separate output files will be generated. Default = TRUE

exportFormat

Integer. If = 1: only a CSV (external file) will be generated with the output matrices; 2: only an internal R dataframe will be generated; 3: both a CSV and an internal R dataframe are generated. Default = 3

exportName

String. Prefix for the CSV exported file. Default = "DiaThor_results"

plotAll

Boolean. If set to 'TRUE', plots will be generated for each Output in a PDF file. Default = TRUE

color

Color code (hex). Default color for bar charts and lolipop plots. Default = "#0073C2"

updateDBC

Boolean. If TRUE it will attempt to update the database from the DiatBarcode project, otherwise it will use the latest internal database. Default = TRUE

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# In the example, a temporary directory will be used in resultsPath
allResults <- diaThorAll(diat_sampleData, resultsPath = tempdir())


Calculate the combined classification of ecological guilds and size classes for diatoms

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate the ecological guilds for the diatoms Sample data in the examples is taken from:

Classification is obtained from:

Usage

diat_cemfgs_rb(resultLoad)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
guildsResults <- diat_cemfgs_rb(df)


Searches all the taxa database for the input name

Description

Searches all the taxa database for the input name, returns a list with the results

Usage

diat_checkName(taxaname, byword = F)

Arguments

taxaname

the name of the taxa (genus, species, variety) to be checked against the internal DB

byword

if byword = F (default), the input string will be searched without splitting words. If True, each word will be searched separately


Calculates the Duero Diatom Index (DDI)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_ddi(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
ddiResults <- diat_ddi(df)


Calculates the Descy Index (DES)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_des(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
desResults <- diat_des(df)


Calculates the Diatom Index for Soda Pans (DISP)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_disp(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
dispResults <- diat_disp(df)


Calculate diversity parameters for diatoms using the vegan package

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate diversity data using the vegan package Sample data in the examples is taken from:

Diversity index (Shannons H') is calculated using the vegan package, following:

Usage

diat_diversity(resultLoad)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function


Calculates the Ecuador Diatom Index (EDI)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_edi(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
ediResults <- diat_edi(df)


Calculates the EPID index (EPID)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_epid(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
epidResults <- diat_epid(df)


Loads the 'Diat.Barcode' database into DiaThor in the correct format

Description

The package downloads and installs a wrapper for the 'Diat.Barcode' project. Besides citing the DiaThor package, the Diat.Barcode project should also be cited, as follows:

Usage

diat_getDiatBarcode()

Calculate ecological guilds for diatoms

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate the ecological guilds for the diatoms Sample data in the examples is taken from:

Guild classification is obtained from:

Usage

diat_guilds(resultLoad)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
guildsResults <- diat_guilds(df)


Calculates the Indice Diatomique Artois-Picardie (IDAP)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_idap(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
idapResults <- diat_idap(df)


Calculates the Swiss Diatom Index (IDCH)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_idch(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
idchResults <- diat_idch(df)


Calculates the Pampean Diatom Index (IDP)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_idp(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
idpResults <- diat_idp(df)


Calculates the ILM Index (ILM)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_ilm(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
ilmResults <- diat_ilm(df)


Calculates the Specific Polluosensitivity Index (IPS) index

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_ips(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
ipsResults <- diat_ips(df)


Loads the Data into DiaThor in the correct format

Description

Loads the CSV or dataframe file, sets the Output folder for the package, and conducts both an exact and an heuristic search of the species' names.

The input file for the package is a dataframe or an external CSV file. Species should be listed as rows, with species' names in column 1 (column name should be "species") The other columns (samples) have to contain the abundance of each species (relative or absolute) in each sample. The first row of the file has to contain the headers with the sample names. Remember that a column named "species" is mandatory, containing the species' names If a dataframe is not specified as a parameter (species_df), the package will show a dialog box to search for the CSV file A second dialog box will help set up an Output folder, where all outputs from the package will be exported to (dataframes, CSV files, plots in PDF) The package also downloads and installs a wrapper for the 'Diat.Barcode' project. Besides citing the DiaThor package, the Diat.Barcode project should also be cited, as follows:

Sample data in the examples is taken from:

Usage

diat_loadData(
  species_df,
  isRelAb = FALSE,
  maxDistTaxa = 2,
  resultsPath,
  updateDBC = TRUE
)

Arguments

species_df

The data frame with your species data. Species as rows, Samples as columns. If empty, a dialog box will prompt to import a CSV file

isRelAb

Boolean. If set to 'TRUE' it means that your species' data is the relative abundance of each species per site. If FALSE, it means that it the data corresponds to absolute densities. Default = FALSE

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

resultsPath

String. Path for the output data. If empty (default), it will prompt a dialog box to select an output folder

updateDBC

Boolean. If TRUE it will attempt to update the database from the DiatBarcode project, otherwise it will use the latest internal database. Default = TRUE


Calculates the Lobo Index (LOBO)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_lobo(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
loboResults <- diat_lobo(df)


Calculate morphological parameters for diatoms

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function to calculate morphological parameters The morphological data (size classes, chlorophlasts) is obtained from the 'Diat.Barcode' project. Besides citing DiaThor, the Diat.Barcode project should also be cited if the package is used, as follows:

Sample data in the examples is taken from:

Usage

diat_morpho(resultLoad, isRelAb = FALSE)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

isRelAb

Boolean. If set to 'TRUE' it means that your species' data is the relative abundance of each species per site. If FALSE, it means that it the data corresponds to absolute densities. Default = FALSE

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
morphoResults <- diat_morpho(df)


Calculates the PBIDW Index (PBIDW)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_pbidw(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
pbidwResults <- diat_pbidw(df)


Calculates the Swedish Phosphorus Diatom Index (PDIse)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_pdise(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
pdiseResults <- diat_pdise(df)


Sample Data

Description

This sample data is a dataset used in: Nicolosi Gelis, María Mercedes; Cochero, Joaquín; Donadelli, Jorge; Gómez, Nora. 2020. "Exploring the use of nuclear alterations, motility and ecological guilds in epipelic diatoms as biomonitoring tools for water quality improvement in urban impacted lowland streams". Ecological Indicators, 110, 105951.

Usage

data(diat_sampleData)

Format

A data frame with the abundance of 164 diatoms in 108 sampled sites

Source

doi:10.1016/j.ecolind.2019.105951

References

Nicolosi Gelis, María Mercedes; Cochero, Joaquín; Donadelli, Jorge; Gómez, Nora. 2020. "Exploring the use of nuclear alterations, motility and ecological guilds in epipelic diatoms as biomonitoring tools for water quality improvement in urban impacted lowland streams". Ecological Indicators, 110, 105951.


Calculate size classes for diatoms

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function to calculate size classes for diatoms Sample data in the examples is taken from:

Size class classification is obtained from:

Usage

diat_size(resultLoad)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
sizeResults <- diat_size(df)


Calculates the Sladecek Index (SLA)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_sla(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
slaResults <- diat_sla(df)


Calculates the SPEAR(herbicides) Index (SPEAR)

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_spear(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
spearResults <- diat_spear(df)


Creates a single list with taxa names from all indices within DiaThor

Description

Creates a single list with taxa names from all indices within DiaThor

Usage

diat_taxaList()

Calculates the Trophic (TDI) index

Description

The input for all of these functions is the resulting dataframe (resultLoad) obtained from the diat_loadData() function A CSV or dataframe cannot be used directly with these functions, they have to be loaded first with the diat_loadData() function so the acronyms and species' names are recognized References for the index:

Sample data in the examples is taken from:

Usage

diat_tdi(resultLoad, maxDistTaxa = 2)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

maxDistTaxa

Integer. Number of characters that can differ in the species' names when compared to the internal database's name in the heuristic search. Default = 2

Examples


# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
tdiResults <- diat_tdi(df)


Calculates ecological information for diatoms based on the Van Dam classification

Description

The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate ecological information for diatoms based on the Van Dam classification Sample data in the examples is taken from:

Van Dam classification is obtained form:

Usage

diat_vandam(resultLoad, vandamReports = TRUE)

Arguments

resultLoad

The resulting list obtained from the diat_loadData() function

vandamReports

Boolean. If set to 'TRUE' the detailed reports for the Van Dam classifications will be reported in the Output. Default = TRUE

Examples

## Not run: 
# Example using sample data included in the package (sampleData):
data("diat_sampleData")
# First, the diat_loadData() function has to be called to read the data
# The data will be stored into a list (loadedData)
# And an output folder will be selected through a dialog box if resultsPath is empty
# In the example, a temporary directory will be used in resultsPath
df <- diat_loadData(diat_sampleData, resultsPath = tempdir())
vandamResults <- diat_vandam(df)

## End(Not run)

DISP

Description

Index values for diatom species included in the DISP index

Usage

data(disp)

Format

A data frame with the ecological values for 143 species

Source

doi:10.1016/j.ecolind.2018.07.026

References

Stenger-Kovács, C., Körmendi, K., Lengyel, E., Abonyi, A., Hajnal, É., Szabó, B., Buczkó, K. & Padisák, J. (2018). Expanding the trait-based concept of benthic diatoms: Development of trait-and species-based indices for conductivity as the master variable of ecological status in continental saline lakes. Ecological Indicators, 95, 63-74.


EDI

Description

Index values for diatom species included in the EDI index

Usage

data(edi)

Format

A data frame with the ecological values for 147 species

Source

https://pubs.acs.org/doi/abs/10.1021/acsestwater.4c00126

References

Chamorro, S., Moyón, J., Salazar, J., Chamorro, K., Vicuña, Z., Cordero, P., Bécares, E. & Blanco, S. (2024). Water Quality Monitoring in Ecuadorian Streams Using a New Diatom-Based Index. ACS ES&T Water, 4(9), 3816-3823.


EPID

Description

Index values for diatom species included in the EPID index

Usage

data(epid)

Format

A data frame with the ecological values for 1038 species

Source

https://www.tib.eu/en/search/id/BLCP:CN034949165/Use-of-algae-for-monitoring-rivers-in-the-Czech?cHash=fdd9e0b1bf812a31ec0f692a273cab04

References

Dell'Uomo, A. (1996). Assessment of water quality of an Apennine river as a pilot study for diatom-based monitoring of Italian watercourses. Use of algae for monitoring rivers, 65-72.


IDAP

Description

Index values for diatom species included in the IDAP index

Usage

data(idap)

Format

A data frame with the ecological values for 194 species

Source

https://link.springer.com/article/10.1007/BF00028033

References

Prygiel, J., & Coste, M. (1993). The assessment of water quality in the Artois-Picardie water basin (France) by the use of diatom indices. Hydrobiologia, 269(1), 343-349.


ID-CH

Description

Index values for diatom species included in the IC-CH index

Usage

data(idch)

Format

A data frame with the ecological values for 550 species

Source

https://www.bafu.admin.ch/bafu/fr/home/themes/eaux/publications/publications-eaux/methodes-analyse-appreciation-cours-eau-diatomees.html

References

Hürlimann J., Niederhauser P. (2007). Méthodes d’analyse et d’appréciation des cours d’eau. Diatomées Niveau R (région). État de l’environnement n° 0740. Office fédéral de l’environnement, Berne. 132 p


IDP

Description

Index values for diatom species included in the IDP index

Usage

data(idp)

Format

A data frame with the ecological values for 475 species

Source

https://link.springer.com/article/10.1023/A:1011415209445

References

Gómez, N., & Licursi, M. (2001). The Pampean Diatom Index (IDP) for assessment of rivers and streams in Argentina. Aquatic Ecology, 35(2), 173-181.


ILM

Description

Index values for diatom species included in the ILM index

Usage

data(ilm)

Format

A data frame with the ecological values for 667 species

Source

https://www.vliz.be/imisdocs/publications/286641.pdf

References

Leclercq, L., & Maquet, B. (1987). Deux nouveaux indices diatomique et de qualité chimique des eaux courantes. Comparaison avec différents indices existants. Cahier de Biology Marine, 28, 303-310


IPS

Description

Index values for diatom species included in the IPS index

Usage

data(ips)

Format

A data frame with the ecological values for 6881 species

Source

https://www.documentation.eauetbiodiversite.fr/notice/etude-des-methodes-biologiques-d-appreciation-quantitative-de-la-qualite-des-eaux0

References

Coste, M. (1982). Étude des méthodes biologiques d’appréciation quantitative de la qualité des eaux. Rapport Cemagref QE Lyon-AF Bassin Rhône Méditerranée Corse.


LOBO

Description

Index values for diatom species included in the LOBO index

Usage

data(lobo)

Format

A data frame with the ecological values for 297 species

References

Lobo, E. A., Callegaro, V. L. M., & Bender, E. P. (2002). Utilização de algas diatomáceas epilíticas como indicadoras da qualidade da água em rios e arroios da Região Hidrográfica do Guaíba, RS, Brasil. Edunisc.


PBIDW

Description

Index values for diatom species included in the PBIDW index

Usage

data(pbidw)

Format

A data frame with the ecological values for 79 species

Source

https://www.researchgate.net/publication/270591536_Periphytic_diatom_index_for_assessing_the_ecological_quality_of_the_Colombian_Andean_urban_wetlands_of_Bogota

References

Castro-Roa, D., & Pinilla-Agudelo, G. (2014). Periphytic diatom index for assessing the ecological quality of the Colombian Andean urban wetlands of Bogotá. Limnetica, 33(2), 297-312.


PDISE

Description

Index values for diatom species included in the PDIse index

Usage

data(pdise)

Format

A data frame with the ecological values for 455 species

Source

https://link.springer.com/article/10.1007/s10661-023-11378-4

References

Kahlert, M., Fölster, J., & Tapolczai, K. (2023). No lukewarm diatom communities—the response of freshwater benthic diatoms to phosphorus in streams as basis for a new phosphorus diatom index (PDISE). Environmental Monitoring and Assessment, 195(7), 807


SLA

Description

Index values for diatom species included in the SLA index

Usage

data(sla)

Format

A data frame with the ecological values for 976 species

Source

https://onlinelibrary.wiley.com/doi/abs/10.1002/aheh.19860140519

References

Sládeček, V. (1986). Diatoms as indicators of organic pollution. Acta hydrochimica et hydrobiologica, 14(5), 555-566.


SPEAR(h)

Description

Index values for diatom species included in the SPEAR(h) index

Usage

data(spear)

Format

A data frame with the ecological values for 285 species

Source

doi:10.1016/j.ecolind.2018.12.035

References

Wood, R. J., Mitrovic, S. M., Lim, R. P., Warne, M. S. J., Dunlop, J., & Kefford, B. J. (2019). Benthic diatoms as indicators of herbicide toxicity in rivers–A new SPEcies At Risk (SPEARherbicides) index. Ecological Indicators, 99, 203-213.


taxaList

Description

List of taxa names used in all indices. Gets updated user-end if a new DBC is found

Usage

data(taxaList)

Format

A data frame with names of 9806 taxa


TDI

Description

Index values for diatom species included in the TDI index

Usage

data(tdi)

Format

A data frame with the ecological values for 3445 species

Source

https://link.springer.com/article/10.1007/BF00003802

References

Kelly, M. G., & Whitton, B. A. (1995). The trophic diatom index: a new index for monitoring eutrophication in rivers. Journal of Applied Phycology, 7(4), 433-444.