You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use your tool for zero imputation because zComposition cmultrepl() does not work due to the huge of zeroes in my abundance table.
I followed your README and the package instructions version 0.1.0 and I do not know how to calculate D or previously I need to calculate the edges value. In th mbImpute package help appears some functions incomplete...such as function edges or D...
but when I try D[1:6,1:6] automatically redirects to otu_tab matrix (Karlsson data), and I tried some code but appears error and I am not able to calculate the D value...
Could you facilitate me some hints or how can I proceed from GlobalPatterns toy data to use your mbImpute.
Thanks on advance,
Magi
The text was updated successfully, but these errors were encountered:
magibc
changed the title
How it works your package in a dataset different from Karlsson et al. data
How it works your package in a dataset different from Karlsson et al. data?
Apr 26, 2023
Hi, the D matrix is just a distance matrix that indicates the difference / similarities among OTUs (this shall be generated independently based on e.g. phylogenetic information among OTU species). The more similar two OTUs are, the smaller the distance would be. You could overwrite D to be the distance defined in this way on your own, or if you do have the phylogenetic information, you could use distance_mat_gen.R to generate the distance matrix. If the mentioned method does not work for you, you could ignore this entry in the imputation.
Dear @ruochenj and mbImpute developers.
I would like to use your tool for zero imputation because zComposition cmultrepl() does not work due to the huge of zeroes in my abundance table.
I followed your README and the package instructions version 0.1.0 and I do not know how to calculate D or previously I need to calculate the edges value. In th mbImpute package help appears some functions incomplete...such as function edges or D...
I tried the following:
data(GlobalPatterns)
gpotu<-as.data.frame(otu_table(GlobalPatterns))
gpotu2<-t(gpotu)
gpotu2[1:6,1:6] # This works
but when I try D[1:6,1:6] automatically redirects to otu_tab matrix (Karlsson data), and I tried some code but appears error and I am not able to calculate the D value...
Could you facilitate me some hints or how can I proceed from GlobalPatterns toy data to use your mbImpute.
Thanks on advance,
Magi
The text was updated successfully, but these errors were encountered: