gustaveroussy / CFS

R package using ICA based method for spatial transcriptomics analysis (Visium/Slide-seq/CosMX/MERSCOPE)
7 stars 2 forks source link

Error in ICASpatial function from "development" branch #2

Open inaciomdrs opened 8 months ago

inaciomdrs commented 8 months ago

I am running the CFS via "development" branch, and I am getting the following error, despite "ica" and "fastica" libraries being installed in my R environment:

Error in eval(expr = parse(text = method)) : object 'icafast' not found
Calls: ICASpatial -> eval -> eval
Execution halted

Here is how I am using the function

ncis <- 100
maxit <- 600
method <- "icafast"
kurtosis_ <- 3
sd_ <- 3
enrichr_datasets <- c("CellMarker_Augmented_2021",
                      "Azimuth_2023",
                      "Descartes_Cell_Types_and_Tissue_2021",
                      "Cancer_Cell_Line_Encyclopedia",
                      "Allen_Brain_Atlas_10x_scRNA_2021",
                      "Allen_Brain_Atlas_up",
                      "Allen_Brain_Atlas_down",
                      "GO_Biological_Process_2023",
                      "GO_Molecular_Function_2023",
                      "GO_Cellular_Component_2023")

data <- ICASpatial(data=data, ncis=ncis, maxit=maxit, method=method, kurtosis=kurtosis_, sd=sd_)

This time I am using Seurat 5.0.1. Normalization step is doing good.

c-thuil commented 8 months ago

Hi @inaciomdrs,

Have you tried manually starting the ica package by calling it before running your script?

library(ica)

Let me know, if this works so I can correct the problem directly in the package.

inaciomdrs commented 8 months ago

In fact, putting library(ica) made it work. Thank you very much.

Em ter., 6 de fev. de 2024 às 14:32, Corentin Thuilliez < @.***> escreveu:

Hi @inaciomdrs https://github.com/inaciomdrs,

Have you tried manually starting the ica package by calling it before running your script?

library(ica)

Let me know, if this works so I can correct the problem directly in the package.

— Reply to this email directly, view it on GitHub https://github.com/gustaveroussy/CFS/issues/2#issuecomment-1929617428, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRHXOYXIZH242MJBQBMUD3YSIWH3AVCNFSM6AAAAABC36F5LCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGYYTONBSHA . You are receiving this because you were mentioned.Message ID: @.***>