Hi,
I am quite new at this but I only have .h5 files so the instructions on how to make the h5ad files that you have do not work for me. Instead I tried to make an h5ad file type with the Seurat and SeuratDisk (remotes::install_github(“mojaveazure/seurat-disk”)) R packages and got an output like this from h5ls
group name otype dclass dim
0 / X H5I_GROUP
1 /X data H5I_DATASET FLOAT 52146466
2 /X indices H5I_DATASET INTEGER 52146466
3 /X indptr H5I_DATASET INTEGER 61183
4 / obs H5I_GROUP
5 /obs __categories H5I_GROUP
6 /obs/__categories orig.ident H5I_DATASET STRING 1
7 /obs _index H5I_DATASET STRING 61182
8 /obs nCount_RNA H5I_DATASET FLOAT 61182
9 /obs nFeature_RNA H5I_DATASET INTEGER 61182
10 /obs orig.ident H5I_DATASET INTEGER 61182
11 / obsm H5I_GROUP
12 / raw H5I_GROUP
13 /raw X H5I_GROUP
14 /raw/X data H5I_DATASET FLOAT 52146466
15 /raw/X indices H5I_DATASET INTEGER 52146466
16 /raw/X indptr H5I_DATASET INTEGER 61183
17 /raw var H5I_GROUP
18 /raw/var _index H5I_DATASET STRING 15764
19 / var H5I_GROUP
20 /var _index H5I_DATASET STRING 15764
21 /var features H5I_DATASET STRING 15764
22 / varm H5I_GROUP
When I tried to run your code I got to this point with my data;
counts <- h5read("X.h5ad", "/X/indices")
genes <- h5read("X.h5ad","/obs/nFeature_RNA")
samples <- h5read("X.h5ad","/obs/_index")
colnames(counts) <- as.character(genes)
rror in `colnames<-`(`*tmp*`, value = c("715", "491", "1069", "514", :
attempt to set 'colnames' on an object with less than two dimensions
So then I tried to run it but it failed.
Here is the run ID
Run ID: 1709982686767-adc6c8dc-5caf-42fb-b996-474d7cc3ce5b
I can attach the log if you need… But the error is;
Mapping Failed. Use log files for troubleshooting MapMyCells issues. Post them [in the community forums](https://community.brain-map.org/c/how-to/mapmycells/20) for further assistance.Mapping algorithm failed because of application errors.Please confirm that your input data is in cell (rows) by gene (columns) format.
I am not really sure how to proceed. Maybe you could give some instructions on how to make a h5ad file type from a h5 file type?
Also there is an error message that the species cannot be found for some of the genes but that is because the data I have is not from Human or Mouse. Is it not possible to use data from other species?
I hope that is enough information. I will keep trying in the meantime. Thanks.