Description Usage Arguments Value Examples
View source: R/impute_function.R
The function proposed an imputation method which output the imputed data as DNA and RNA level at the same time.
1 2 3 4 5 6 7 8 9 | jointimpute(
otu_dna,
otu_rna,
covariates_DNA,
covariates_RNA,
is_identify,
epochs = 1,
coef = 10000
)
|
otu_dna |
A m*n data frame/ matrix that represents OTU count table for DNA |
otu_rna |
A m*n data frame/ matrix that represents OTU count table for RNA |
covariates_DNA |
A n*p data frame/ matrix corresponding to covariates matrix/ meta data for DNA |
covariates_RNA |
A n*p data frame/ matrix corresponding to covariates matrix/ meta data for RNA |
is_identify |
indicator of whether we need identify step |
epochs |
Iteration times for imputation |
coef |
proportional constant for normalizing |
A list of imputed DNA and RNA matrix
1 2 3 4 5 | covariates_DNA <- data.frame(batch=factor(meta$batch.DNA), age=meta$age_mos, cariesfree=meta$cariesfree, reads=meta$reads.DNA/1e6)
covariates_RNA = data.frame(batch=factor(meta$batch.RNA),age=meta$age_mos,cariesfree=meta$cariesfree,reads = meta$reads.RNA/1e6)
otu_dna= otu[,,1]
otu_rna= otu[,,2]
otu.imp = jointimpute(otu_dna, otu_rna, covariates_DNA, covariates_RNA,is_identify = TRUE,epochs = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.