-
Notifications
You must be signed in to change notification settings - Fork 103
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
giotto data loading error #1132
Comments
Can you share the Giotto version you're using and any important system or package information? And can you reproduce this with a publicly available cosmx dataset? That way we can test ourselves. Thanks |
R version 4.4.2 (2024-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United
States.utf8 LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/Chicago
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Giotto_4.1.5 GiottoClass_0.4.7
loaded via a namespace (and not attached):
[1] Matrix_1.7-1 gtable_0.3.6 jsonlite_1.8.9
dplyr_1.1.4 compiler_4.4.2 colorRamp2_0.1.0
gtools_3.9.5 tidyselect_1.2.1
[9] Rcpp_1.0.13-1 parallel_4.4.2 tidyr_1.3.1
scales_1.3.0 fastmap_1.2.0 lattice_0.22-6
ggplot2_3.5.1 R6_2.5.1
[17] generics_0.1.3 igraph_2.0.3 htmlwidgets_1.6.4
backports_1.5.0 ggrepel_0.9.6 checkmate_2.3.2
tibble_3.2.1 munsell_0.5.1
[25] pillar_1.10.0 GiottoUtils_0.2.4 rlang_1.1.4
terra_1.7-83 lazyeval_0.2.2 viridisLite_0.4.2
plotly_4.10.4 cli_3.6.3
[33] magrittr_2.0.3 digest_0.6.37 grid_4.4.2
rstudioapi_0.17.1 cowplot_1.1.3 lifecycle_1.0.4
vctrs_0.6.5 glue_1.8.0
[41] data.table_1.16.2 scattermore_1.2 codetools_0.2-20
colorspace_2.1-1 purrr_1.0.2 httr_1.4.7
tools_4.4.2 pkgconfig_2.0.3
[49] htmltools_0.5.8.1 GiottoVisuals_0.2.12
Thanks,
Best,
Haichao
…On Thu, Mar 27, 2025 at 9:39 AM Ruben Dries ***@***.***> wrote:
Can you share the Giotto version you're using and any important system or
package information? Thanks
—
Reply to this email directly, view it on GitHub
<#1132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4ORFAESKKQ4NVUF73TEST2WQESLAVCNFSM6AAAAABZVVFBQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJYGMYTGMJQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: RubD]*RubD* left a comment (drieslab/Giotto#1132)
<#1132 (comment)>
Can you share the Giotto version you're using and any important system or
package information? Thanks
—
Reply to this email directly, view it on GitHub
<#1132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4ORFAESKKQ4NVUF73TEST2WQESLAVCNFSM6AAAAABZVVFBQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJYGMYTGMJQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @fengyun198503, sorry about the delay. I can't seem to replicate the error. (see below for what I ran) Maybe something happened during image saving and lost the file paths somehow. I'd be curious to see the contents of your save directory's Getting around the load errorYou should be able to get around the error blocking loading by loading with N1 <- loadGiotto("path to data", reconnect_giottoImage = FALSE) The images can then be updated by using the CosMx importer utility. cosmx <- importCosMx("path to cosmx directory")
cosmx$version <- "legacy"
composite_imgs <- cosmx$load_images("path to cosmx directory/CellComposite/")
N1 <- setGiotto(N1, composite_imgs) Note about savingIf you don't need to put all your image files together with the rest of the Giotto project, you can also skip re-exporting and just link to the originals from the source CosMx data directory. saveGiotto(fov_join, dir = "save location", export_image = FALSE) Replication attemptf <- "../../local_items/nanostring/Lung12-Flat_files_and_images/"
library(Giotto)
# loading a legacy type dataset
g <- createGiottoCosMxObject(f, version = "legacy")
test <- tempdir()
saveGiotto(g, dir = test, method = "qs")
rm(g)
gc()
N1 <- loadGiotto(file.path("/var/folders/1q/p0kr6d017wv4d6_39pcpt18w0000gn/T//RtmpYagEk6/saveGiottoDir/"))
spatPlot2D(N1, point_size = 0.5, show_image = T, image_name = sprintf("composite_fov%03d", 1:28)) |
name: error
about: giotto data loading
title: ''giotto data loading error
labels: ''
assignees: ''
Describe the Error
Hi Sir,
I analyzed CosMx data using Giotto and used the following command to save my processed data:
saveGiotto(gobject = fov_join,
foldername = 'giotto_test_fov',
dir = 'O:/Data_test/')
However, when I tried to load the saved data using:
N1 = loadGiotto(path_to_folder = file.path("O:/Data_test", 'giotto_test_fov'))
I encountered the following error:
4. read Giotto image information
Error in .image_path_checks(path) :
No filepath recorded in image object and no 'path' value provided.
The text was updated successfully, but these errors were encountered: