Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function 'solve': requires numeric/complex matrix/vector arguments #3

Open
nick-youngblut opened this issue Mar 17, 2021 · 1 comment

Comments

@nick-youngblut
Copy link

library(mbImpute)
library(glmnet)
library(Matrix)

mbImpute(otu_tab = otu_tab)
[1] "Meta data information unavailable"
[1] "Phylogenentic information unavailable"
Error in h(simpleError(msg, call)) :
  error in evaluating the argument 'a' in selecting a method for function 'solve': requires numeric/complex matrix/vector arguments

Also, Demo 3 in your README example does not work:

otu_tab_T2D <- otu_tab[study_condition == "T2D",]
Error: object 'study_condition' not found

The otu_tab matrix doesn't include a study_condition column.

sessionInfo:

R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS/LAPACK: /ebio/abt3_projects/software/dev/miniconda3_dev/envs/mbimpute/lib/libopenblasp-r0.3.12.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] glmnet_4.1-1   Matrix_1.3-2   mbImpute_0.1.0

loaded via a namespace (and not attached):
 [1] compiler_4.0.3    tools_4.0.3       parallel_4.0.3    survival_3.2-10
 [5] splines_4.0.3     codetools_0.2-18  doParallel_1.0.16 grid_4.0.3
 [9] iterators_1.0.13  foreach_1.5.1     shape_1.4.5       lattice_0.20-41
@boyangzhang1993
Copy link

I encountered the same issue. The example code doesn't work.
imputed_count_mat_list <- mbImpute(otu_tab = otu_tab)

[1] "Meta data information unavailable"
[1] "Phylogenentic information unavailable"
Error in h(simpleError(msg, call)) : error in evaluating the argument 'a' in selecting a method for function 'solve': requires numeric/complex matrix/vector arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants