View source: R/significance_pipeline.R
runAnalysis | R Documentation |
Runs an automized processing of the OTU table or phyloseq object, passes the jobs to ccrepe
and saves the results
runAnalysis( OTU_table, abundance_cutoff = 1e-04, q_crit = 0.05, parallel = FALSE, ncpus = getOption("micInt.ncpus", 1L), cl = NULL, returnVariables = NULL, subset = NULL, sim.scores = NULL, file = FALSE, magnitude_factor = 10, prefix = NULL, metadataCols = c("OTU Id", "taxonomy"), postfix = "", renormalize = TRUE, iterations = 1000, ccrepe_args = list() )
OTU_table |
The raw OTU table (if a |
abundance_cutoff |
The mean abundance cutoff for the OTUs. If it is |
q_crit |
Numeric, the q-value cutoff when construction interaction tables |
parallel |
Should the analysis be run in parallel? |
ncpus |
If |
cl |
Custom cluster to use if |
returnVariables |
Which variables should the function return (character vector)? Available options are:
In addition, all paramerters for this function are available. Other internal variables
found upon inspection of the source code may also be returned,
but they are for advanced users only.
If |
subset |
Character, the subset of similarity measures to use, denoted by
the its name in the list (not necessarly its string) returned from similarity_measures or similarity
measure modiftying function such as noisify
If |
sim.scores |
The similarity measures of class sim.measure
to use. If it is |
file |
Should the tables of significant interactions be written to a file? If so, they are printed to |
magnitude_factor |
When making noisified functions, the magnitude of the noise
will be this number multiplied with |
prefix |
The prefix of the file names being written. Ignored if |
metadataCols |
The names (character vector) or position (integer) of the
metadata columns to remove from the table before analyzing it. Ignored if a |
postfix |
The postfix of the file names being written. Ignored if |
renormalize |
Should the data be renormalized during filtering process and permutation?
Should be |
iterations |
Integer of length one, the number of iterations to run |
ccrepe_args |
A named list of custom arguments to |
If the function is told to output a file and no prefix is given, the csv-files will all share a common prefix of the form:
q_crit=(critical q-value)_cutoff=(the mean abundance cutoff)_magfac=(the magnitude factor)
,
where all numbers are in scientific notation. Then the sim.score name follows, then the postfix and finally the csv
extention.
The postfix is by default empty.
In order for an OTU-table to be valid when the argument OTU_table
is a data.frame
,
the following criteria must hold:
The data points (sample) are in columns, the abundances for each OTU is in rows.
The rows may only hold OTU abundances
There may be as many metadata colums as you like. However, they all
need to be declared in the metadataCols
argument and the column
taxonomy
has be there in order for the output file to contain the
taxonomy.
The row names of the table are the OTU names and the column names are the sample names
For phyloseq
objects (both experiment level and otu_table
), you do not need to care about this, it is automatically handeled
A list of the variables requested from the parameter returnVariables
.
output_ccrepe_data
library(micInt) data(seawater) sim.scores <- similarity_measures(subset= c("spearman","pearson")) runAnalysis(OTU_table = seawater, sim.scores = sim.scores, parallel = TRUE, ncpus = 2, iterations = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.