I want to integrate multiple 10x multiome runs (rna+atac), following a procedure similar to the Singac integration vignette.
Each of my runs is saved as a separate .h5seurat file. Merging the ATAC objects in these files, and trying to save the merged object leads to a SaveH5Seurat failure:
SaveH5Seurat.Seurat(dummy_merge, \"DUMMY_multi.h5seurat\", overwrite = T,
. verbose = T) # at line 31 of file /home/sandbox/seurat-disk/R/SaveH5Seurat.R
as.h5Seurat(x = object, filename = filename, overwrite = overwrite,
. verbose = verbose, ...) # at line 97-103 of file /home/sandbox/seurat-disk/R/SaveH5Seurat.R
as.h5Seurat.Seurat(x = object, filename = filename, overwrite = overwrite,
. verbose = verbose, ...) # at line 41 of file /home/sandbox/seurat-disk/R/SaveH5Seurat.R
WriteH5Group(x = x[[assay]], name = assay, hgroup = hfile[[\"assays\"]],
. verbose = verbose) # at line 210-215 of file /home/sandbox/seurat-disk/R/SaveH5Seurat.R
WriteH5Group(x = x[[assay]], name = assay, hgroup = hfile[[\"assays\"]],
. verbose = verbose) # at line 177 of file /home/sandbox/seurat-disk/R/WriteH5Group.R
WriteH5Group(x = slot(object = x, name = slot), name = slot,
. hgroup = xgroup, verbose = verbose) # at line 330-335 of file /home/sandbox/seurat-disk/R/WriteH5Group.R
WriteH5Group(x = slot(object = x, name = slot), name = slot,
. hgroup = xgroup, verbose = verbose) # at line 177 of file /home/sandbox/seurat-disk/R/WriteH5Group.R
WriteH5Group(x = x[[i]], name = names(x = x)[i], hgroup = xgroup,
. verbose = verbose) # at line 29-34 of file /home/sandbox/seurat-disk/R/WriteH5Group.R
WriteH5Group(x = x[[i]], name = names(x = x)[i], hgroup = xgroup,
. verbose = verbose) # at line 177 of file /home/sandbox/seurat-disk/R/WriteH5Group.R
hgroup$create_group(name = name) # at line 198 of file /home/sandbox/seurat-disk/R/WriteH5Group.R"
}
I want to integrate multiple 10x multiome runs (rna+atac), following a procedure similar to the Singac integration vignette.
Each of my runs is saved as a separate .h5seurat file. Merging the ATAC objects in these files, and trying to save the merged object leads to a SaveH5Seurat failure:
You can reproduce it following these steps:
I think the problem is that there are two fragment objects with the name 'index1'. SaveH5Seurat fails when writing those objects:
str(dummy_merge[['peaks']]@fragments)