Entering edit mode
Hi all,
Would you please tell me how to fix the error below? Thank you so much!
Update: I fixed the error. Thank you.
my_obj <- findmarkergene(object = my_obj, species = "Human", marker = cellmatch, tissue = "Blood")
There are 1255 potential marker genes in CellMatch database for Human on Blood.
Error in $<-.data.frame(*tmp*, "cluster", value = character(0)) : replacement has 0 rows, data has 979
sessionInfo( )
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] BiocManager_1.30.18 compiler_4.2.1 fastmap_1.1.0 cli_3.4.0 htmltools_0.5.3
[6] tools_4.2.1 rstudioapi_0.14 yaml_2.3.5 rmarkdown_2.16 knitr_1.40
[11] xfun_0.32 digest_0.6.29 rlang_1.0.5 evaluate_0.16
Also, fyi, what you have provided is not nearly enough information for anybody to help you. You should provide either a self-contained example that results in the error, or the output from running
traceback()
immediately after the error.