Closed h4rvey-g closed 4 months ago
Hi Harvey,
I had a look at the data by searching the GEO ID, and it would be an easy fix using the following command:
lig <- createLiger(
list(name = "~/work/Welch_Lab/LIGER/GSM4819725_SI_18854_filtered_gene_bc_matrices_h5.h5"),
dataName = "GRCh38/data",
indicesName = "GRCh38/indices",
indptrName = "GRCh38/indptr",
genesName = "GRCh38/gene_names",
barcodesName = "GRCh38/barcodes"
)
A bit of explanation:
HDF5 format, an H5 file, can be roughly considered as a file containing internal folder-like structure with each array/scalar data stored with its path. In most of the example cases, 10X H5 file format put things in the following way:
/matrix/
|-/matrix/data
|-/matrix/indices
|-/matrix/indptr
|-/matrix/barcodes
|-/matrix/features/
|-/matrix/features/id
|-/matrix/features/names
......etc
Here in your case, the /matrix
folder is renamed as /GRCh38
, probably due to some new CellRanger features. If you want to explore it on your own in case you again encounter this issue, I suggest opening the H5 file with package hdf5r
first and make sure of paths of the 5 basic elements I showed above.
Of course, we'll try to optimize the importing workflow to minimize the mess from users' side, in future updates.
Best, Yichen LIGER Team
Thank you Yichen, that's very helpful!
Hi, I encountered an issue while trying to create a Liger object using the
createLiger
function with HDF5 file.However, when I use the Read10X_h5 from Seurat with the same file, the data is loaded successfully:
Thanks for any help.