-
Notifications
You must be signed in to change notification settings - Fork 891
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
Error using LoadXenium() #7491
Comments
I think it depends on what you have in the folder passed to
then check if you have |
Thanks for the help! Using the method you suggested, this is what I get
I manually examined the files in the Xenium data, and the features.tsv file uses the the naming convention "Unassigned Codeword", whereas the mouse data used "Blank Codeword". Do you have any suggestions? I attempted to troubleshoot: If I replace "Unassigned Codeword" to "Blank Codeword" from the features.tsv, and try to read in the data again, I get a different error: reprex:
(here I read in the data with the updated features.tsv file)
Thanks again!
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I see, it is related to the new Xenium output. What else is in your Take a look at this PR #7346, the easiest way would be to install that updated branch from the contributor and see if it works |
ok, if you want, try out this:
|
thank you for your suggestion! Here is my output, it seems that I have a similar error - I am not sure what is causing it. reprex:
BLANK_0001 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... .............................. BLANK_0475 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ......
Backtrace:
Backtrace:
Thanks again for all your help with this issue. &sesioninfo:
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
ok, it happens when you are adding FOVs.
|
thank you for all your help - here was my output. I'm not sure what's causing this error, I really appreciate your suggestions.
|
ok, no worries. I think we are almost there ;)
You can try to use the optimized Basically for that code chunk it would be:
Let me know |
thanks. Alternative way would be:
|
Thanks again; here is output. I realized this may be part of the issue.
The output from Cells(xenium.obj) is the cell ID except for the word "barcodes", while the output for Cells(coords) is actually the barcode. I have a mouse dataset which I can use LoadXenium with no problem, here is example output:
I tried your suggestion anyway, reprex if useful. Thanks for all the suggestions
sessioninfo as above in thread |
yeah, the cell IDs are the problem. I downloaded the data from the link you posted
|
@Margokap I imagine it works now? |
xenium.obj <- LoadXenium("xenium-human", fov = "fov") I had the same error. In windows ver. Just updated to Seurat Ver5 and error is fixed. |
Thanks so much for all your help @alikhuseynov ! I appreciate the time and responses, I believe the trouble should be resolved if working for others, however I am still getting an error. The cell IDs are seeming to be the problem for sure. I will try to make sure that packages are up to date, and will try running this script again, hopefully it will begin working.
|
no worries, your package version are
I would say re-install your packages to the version |
Thanks again for the help! I will try to find a way to install the same version that you have, and will do some digging for the specific package version.
trying LoadXenium with current package versions (produces error as before)
trying to install the specific seurat package version:
source code via https://github.com/satijalab/seurat/releases is only available for v4.3.0 - will think about how to workaround this. |
try develop version for Seurat |
Hi, I am experiencing a similar issue with Seurat v5 using the function My
I figured out the problem might be related to the fact the matrix I want to load lack any "Unassigned Codeword" count, so for now my quick&dirty solution is manually creating a Xenium object, assigning a mock "BlankCodeword" assay with zero counts:
which returns the following
Is this approach ok? Are there smarter solutions implemented? |
Hi there, I've encountered difficulties reading in Xenium data from 10x genomics, using the LoadXenium() function with Seurat V5. I have used the function to successfully read in mouse Xenium datasets, so am not sure what is causing the problem - as the file structure is the same for both.
I get the following:
Thanks for all your help!
&session info:
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] SeuratDisk_0.0.0.9020 plotly_4.10.2 Matrix_1.5-3 dplyr_1.1.2 spacexr_2.2.1 Seurat_4.3.0
[7] ggplot2_3.4.2 future_1.32.0 SeuratObject_4.1.3 sp_1.6-0
loaded via a namespace (and not attached):
[1] Rtsne_0.16 colorspace_2.1-0 deldir_1.0-9 ellipsis_0.3.2 ggridges_0.5.4 rprojroot_2.0.3
[7] rstudioapi_0.14 spatstat.data_3.0-1 leiden_0.4.3 listenv_0.9.0 farver_2.1.1 remotes_2.4.2
[13] bit64_4.0.5 ggrepel_0.9.3 fansi_1.0.4 R.methodsS3_1.8.2 codetools_0.2-18 splines_4.2.1
[19] doParallel_1.0.17 polyclip_1.10-4 jsonlite_1.8.5 ica_1.0-3 cluster_2.1.4 rgeos_0.6-3
[25] R.oo_1.25.0 png_0.1-8 uwot_0.1.14 shiny_1.7.4 sctransform_0.3.5 spatstat.sparse_3.0-1
[31] BiocManager_1.30.19 readr_2.1.4 compiler_4.2.1 httr_1.4.6 fastmap_1.1.1 lazyeval_0.2.2
[37] limma_3.54.2 cli_3.6.1 later_1.3.1 prettyunits_1.1.1 htmltools_0.5.5 tools_4.2.1
[43] igraph_1.4.3 gtable_0.3.3 glue_1.6.2 RANN_2.6.1 reshape2_1.4.4 Rcpp_1.0.10
[49] scattermore_1.2 vctrs_0.6.2 spatstat.explore_3.2-1 nlme_3.1-162 progressr_0.13.0 crosstalk_1.2.0
[55] iterators_1.0.14 lmtest_0.9-40 spatstat.random_3.1-5 stringr_1.5.0 ps_1.7.5 globals_0.16.2
[61] mime_0.12 miniUI_0.1.1.1 lifecycle_1.0.3 irlba_2.3.5.1 goftest_1.2-3 MASS_7.3-60
[67] zoo_1.8-12 scales_1.2.1 hms_1.1.3 promises_1.2.0.1 spatstat.utils_3.0-3 parallel_4.2.1
[73] RColorBrewer_1.1-3 curl_5.0.1 yaml_2.3.7 reticulate_1.30 pbapply_1.7-0 gridExtra_2.3
[79] stringi_1.7.12 desc_1.4.2 foreach_1.5.2 pkgbuild_1.4.1 rlang_1.1.1 pkgconfig_2.0.3
[85] matrixStats_1.0.0 lattice_0.20-45 ROCR_1.0-11 purrr_1.0.1 tensor_1.5 patchwork_1.1.2
[91] htmlwidgets_1.6.2 labeling_0.4.2 processx_3.8.1 bit_4.0.5 cowplot_1.1.1 tidyselect_1.2.0
[97] parallelly_1.36.0 RcppAnnoy_0.0.20 plyr_1.8.8 magrittr_2.0.3 R6_2.5.1 generics_0.1.3
[103] pillar_1.9.0 withr_2.5.0 fitdistrplus_1.1-11 survival_3.5-5 abind_1.4-5 tibble_3.2.1
[109] future.apply_1.11.0 hdf5r_1.3.8 crayon_1.5.2 KernSmooth_2.23-20 utf8_1.2.3 spatstat.geom_3.2-1
[115] tzdb_0.4.0 grid_4.2.1 data.table_1.14.8 callr_3.7.3 digest_0.6.31 xtable_1.8-4
[121] tidyr_1.3.0 httpuv_1.6.11 R.utils_2.12.2 munsell_0.5.0 viridisLite_0.4.2 quadprog_1.5-8
Warning messages:
1: In UseMethod("depth") :
no applicable method for 'depth' applied to an object of class "NULL"
2: In UseMethod("depth") :
no applicable method for 'depth' applied to an object of class "NULL"
3: In UseMethod("depth") :
no applicable method for 'depth' applied to an object of class "NULL"
The text was updated successfully, but these errors were encountered: