Skip to content

c_net_calculate #9

@StanleyDeng27

Description

@StanleyDeng27

hi, I’m encountering a problem when running the following code:

corr <- c_net_calculate(
otu_table,
method = "sparcc",
p.adjust.method = "fdr"
)

The following message appears:

sparcc is not supported on CRAN version. Please install zdk123/SpiecEasi from github and use the function sparcc.
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :
'data'的种类必需为矢量,但现在是'NULL'.

I installed SpiecEasi locally from a GitHub tarball (not from CRAN), but it still doesn’t work. I’m wondering whether there is a specific version requirement for SpiecEasi?

Here is my current environment:

R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 26200)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

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

other attached packages:
[1] SpiecEasi_1.1.2 pcutils_0.2.9 dplyr_1.1.4 MetaNet_0.2.7 igraph_2.1.3

loaded via a namespace (and not attached):
[1] Matrix_1.6-5 glmnet_4.1-9 gtable_0.3.6 compiler_4.3.3 tidyselect_1.2.1
[6] Rcpp_1.1.0 stringr_1.5.1 parallel_4.3.3 dichromat_2.0-0.1 VGAM_1.1-13
[11] splines_4.3.3 scales_1.4.0 lattice_0.22-6 ggplot2_3.5.2 R6_2.6.1
[16] plyr_1.8.9 generics_0.1.4 shape_1.4.6.1 knitr_1.50 iterators_1.0.14
[21] MASS_7.3-60.0.1 tibble_3.3.0 pillar_1.11.0 RColorBrewer_1.1-3 rlang_1.1.6
[26] stringi_1.8.4 xfun_0.52 huge_1.3.5 cli_3.6.1 pulsar_0.3.11
[31] magrittr_2.0.3 foreach_1.5.2 grid_4.3.3 rstudioapi_0.17.1 lifecycle_1.0.4
[36] vctrs_0.6.5 evaluate_1.0.4 glue_1.8.0 farver_2.1.2 codetools_0.2-20
[41] survival_3.8-3 stats4_4.3.3 reshape2_1.4.4 tools_4.3.3 pkgconfig_2.0.3

Thank you very much, and I look forward to your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions