diat_loadData {diathor}R Documentation

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)

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


[Package diathor version 0.1.0 Index]