carmonalab / ProjecTILs

Interpretation of cell states using reference single-cell maps
GNU General Public License v3.0
252 stars 29 forks source link

error: could not find function "Run.ProjecTILs" #51

Closed ncedi12 closed 1 year ago

ncedi12 commented 1 year ago

Hi there, firstly thanks for this lovely and very useful package and excellent vignettes.

Recently I've been encountering the above error when trying to run the projection wrapper function. I encounter this error both when using my query dataset and when I use the package provided query data in your vignette

see below an example:

query.projected <- Run.ProjecTILs(querydata, ref = ref) Error in Run.ProjecTILs(querydata, ref = ref) : could not find function "Run.ProjecTILs"

sessionInfo() R version 4.1.2 (2021-11-01) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS 13.0.1

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.1/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

other attached packages: [1] GEOquery_2.62.2 Biobase_2.54.0 BiocGenerics_0.40.0 viridis_0.6.2
[5] viridisLite_0.4.0 forcats_0.5.1 stringr_1.4.0 dplyr_1.0.9
[9] purrr_0.3.4 readr_2.1.2 tidyr_1.2.0 tibble_3.1.8
[13] tidyverse_1.3.2 magrittr_2.0.3 ProjecTILs_2.2.1 scGate_1.2.0
[17] UCell_1.3.1 pracma_2.3.8 scales_1.2.0 ggplot2_3.3.6
[21] reshape2_1.4.4 gridExtra_2.3 BiocParallel_1.28.3 Matrix_1.4-1
[25] umap_0.2.8.0 sp_1.5-0 SeuratObject_4.1.0 Seurat_4.1.1

any advice please?

mass-a commented 1 year ago

Hello!

thanks for sharing the SessionInfo(). It seems you are running an older version of ProjecTILs - the Run.ProjecTILs wrapper was introduced starting from version 2.3. I suggest you update the package to the newest version to enable that functionality.

Best -m

ncedi12 commented 1 year ago

Problem solved :-)

Thank you for your patience!