Closed smk5g5 closed 3 years ago
I've updated Giotto (suite) and you can now use Giotto without spatial locations.
I've updated Giotto (suite) and you can now use Giotto without spatial locations.
Could you please give more details of how to use this? Try help this function but cannot find it. try seuratToGiotto(se.object) return error "object test not found"
Since I can't use my seurat objects averaged cell type matrix directly (for deconvolution) since I keep getting the quadprog solve error
I thought I should convert the seurat object into anndata object then I will import the scrnaseq data into giotto but after unsuccessfully struggling to use
anndataToGiotto
I tried to follow the tutorials herehttps://github.com/bernard2012/spatial_dataset_tutorial/blob/dae24d5c676712d40042941d928425c7fe38f900/slideseq.part1/README.md
sc <- reticulate::import("scanpy") pd <- reticulate::import("pandas") adata <- sc$read(anndata_path) exprs <- t(adata$layers[['counts']]) colnames(exprs) <- adata$obs_names$to_list() rownames(exprs) <- adata$var_names$to_list() my_cell_metadata <- as.data.frame(adata$obs) workdir = "B185/giotto" myinst=createGiottoInstructions(save_plot=T, show_plot=F, save_dir=workdir) B185_giotto_scrnaseq <- createGiottoObject(raw_exprs = as.matrix(exprs), instructions=myinst,cell_metadata=my_cell_metadata)
But now I am stuck at this error :
I was wondering if there is anyway possible to create a single cell RNAseq giotto object without giving spatial_locs variable? Or should I give it a dummy dataframe for the same?
Thanks!