ASV_outliers | R Documentation |
Recognize and remove ASV outliers according to selected variables
ASV_outliers(x, by, n_var = 1)
x |
The community table with Taxon reads counts |
by |
A list with variables used to produce the threshold |
n_var |
A number, minimum number of variables that should be below threshold to declare outliers default = 1. |
This function will detect outlier ASVs and divide the data.frame into outliers and not outliers accordingly. The threshold will be assigned by the lower wisker of the boxplot (1.5x interquartile variation). Variables used to produced the treshhold a free configurable, but query coverage, percent identity and query length are meaningful. User can define how many of the selected variables should be below the hreshold for the ASV to be declared as outlier. Default is 1, which correspond to combine the variables using an 'or' logical operator.
Two data.frames containing outliers and non outliers.
keep |
data.frame with non outlier ASVs (above the treshold) |
outliers |
data.frame with outlier ASVs (below the treshold) |
thresholds |
Table with thresholds used |
AVS_tm |
Table with thresholds matrix per ASV |
Pedro Martinez Arbizu
boxplot
ASV_outliers(x=deepMeio[,9:27],by=data.frame(deepMeio$qcovs,deepMeio$length,deepMeio$pident),n_var=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.