normalizer: Normalizing OTU data

Description Usage Arguments Value Examples

View source: R/normalizer.R

Description

Normalize OTU data with reference OTUs

Usage

1
normalizer(data_tar, thr, method = 0, ref, del.otu = TRUE, del.sam = TRUE)

Arguments

data_tar,

dataset split by targets

thr,

threshold for zombie OTU/sample

method,

digits for normalization method, 0 for Kaul's method, 1 for Jun Li's

ref,

index of reference OTUs

del.otu,

default value of T; if T the zombie OTU will be deleted

del.sam,

default value of T; if T the zombie sample will be deleted

Value

normalized OTU dataset

Examples

1
2
3
4
5
da<-simotu.gaus(50,700,3,nref=5,full.mean=10000,unif.min=0,unif.max=0.4,seed=1234) 
al<-data_extract(da,Target %in% c("target1","target2","target3")) # no otu names
ana0<-zomotu(al,0) ## delete otus not present in any sample, no otu names
ta<-target_split(da,ana0$otu,"Target")
ta_norm<-normalizer(ta,0,0,ana0$ref,FALSE,TRUE)

yewei369/clotu documentation built on Dec. 23, 2021, 7:19 p.m.