-
Notifications
You must be signed in to change notification settings - Fork 612
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
Can't use sc.pl.spatial
- TypeError: can't multiply sequence by non-int of type 'float
#2778
Comments
Hi, please provide the data you use, otherwise this is not reproducible: FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = '\external/CytAssist_FFPE_Human_Lung_Squamous_Cell_Carcinoma_filtered_feature_bc_matrix.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) |
Hey, the data is publicly available under this link: https://www.10xgenomics.com/resources/datasets/human-lung-cancer-ffpe-2-standard I simple copied the |
@flying-sheep Added this snippet to eval the coordinates as int and not str (plotting > _utils.py > circles, lines 1138 - 1145):
This has solved my issue and can now see the tissue images using |
Please make sure these conditions are met
What happened?
I'm trying to use
sc.pl.spatial
with the dataset that is available on 10X Visium with the sample IDCytAssist_FFPE_Human_Lung_Squamous_Cell_Carcinoma
I can open and do some basic QC just fine, but when I try to plot, I get the error
TypeError: can't multiply sequence by non-int of type 'float
Minimal code sample
Error output
The json file on the spatial folder with the scale factors is as follows:
tissue_hires_scalef
is being passed asscale_factor
variable and hence why it's throwing the errorVersions
The text was updated successfully, but these errors were encountered: