-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird error loading while creating Visium HD giotto object #1054
Comments
Also, I dont find any documentation for createGiottoVisiumHDObject function. Is this a typo in https://drieslab.github.io/Giotto_website/articles/VisiumHD_Human_Colorectal_Cancer.html |
@iqraAmin have you seen this before? |
I am also trying createGiottoVisiumObject but no luck. I get an error:
|
I haven't come across an error like that before. The recent changes to the visiumHD functions haven't been merged into the suite branch yet; the latest version can be found in the suite_dev branch. @alipirani88, could you provide me with the session info and a subset of your data so I can try to reproduce the error? |
I am not sure how to subset the data with Giotto since I cannot generate a giotto object. I can subset it with Seurat if that would work or else if there is a better way to subset and share it - let me know. FYI - I am able to manually create giotto object and generate an expression matrix using this code:
Is there a way to create Giotto visium object using the above code instead of createGiottoObjectSubcellular? Downstream I would like to merge two objects from treated vs non-treated groups to perform integration analysis. |
@alipirani88, could you share which Giotto version you’re using? The createGiottoVisiumHDObject() function is available in the newer Giotto version (4.1.3) on the suite_dev branch. |
Sure - Here is my session information
I tried installing the suite_dev branch (devtools::install_github("drieslab/Giotto@suite_dev")) but I get this error:
|
@alipirani88, could you try installing GiottoVisuals@dev, GiottoUtils@dev, and GiottoClass@dev first? Once those are installed, please proceed with the Giotto@suite_dev installation. Hopefully, this will resolve the issue. |
Hi,
Any idea what does this error mean?
visiumHD_object <- visiumHD$create_gobject(visiumHD_dir = "/Users/apirani/Documents/Data_projects/10X_Visium_HD_data/2024-07-23_H5_First_Batch/238687-HD01_275405-6-2/binned_outputs/square_002um", expr_data = "raw", gene_column_index = 2, png_name = "tissue_lowres_image.png")
Error:
python already initialized in this session
active environment : 'giotto_env'
python version : 3.10
a giotto python environment was found
Using python path:
"/Users/apirani/Library/r-miniconda-arm64/envs/giotto_env/bin/pythonw"
loading expression matrix ...
loading tissue positions file ...
creating visiumHD tissue position x expression data file ...
Selecting col "gene" as feat_ID column
Selecting cols "x" and "y" as x and y respectively
Setting feature info [rna]
loading expression matrix ...
loading tissue positions file ...
creating visiumHD tissue position x expression data file ...
subsetting visiumHD on array rows
subsetting visiumHD on array columns
subsetting visiumHD on expression matrix
Selecting col "gene" as feat_ID column
Selecting cols "x" and "y" as x and y respectively
Error in seq.default(x_start, e[["xmax"]] - (0.5 * ccd), by = ccd) :
wrong sign in 'by' argument
The text was updated successfully, but these errors were encountered: