Error in h5read(x, paste0(useMatrix, "/Info/Units")) : Object 'GeneExpressionMatrix/Info/Units' does not exist in this HDF5 file
qdong2023 opened this issue · comments
@rcorces I encountered the issue with GeneExpressionMatrix. After installing the ArchR from devtools::install_github("GreenleafLab/ArchR", ref="dev", repos = BiocManager::repositories()), I can successfully import the RNA h5 files and add the gene expression matrix to ArchR project using import10xFeatureMatrix() and addGeneExpressionMatrix(), respectively. However, an error showed that the gene expression matrix doesn't exist when running addIterativeLSI():
projmulti <- addIterativeLSI(
ArchRProj = projmulti,
clusterParams = list(
resolution = 0.2,
sampleCells = 10000,
n.start = 10
),
saveIterations = FALSE,
useMatrix = "GeneExpressionMatrix",
depthCol = "Gex_nUMI",
varFeatures = 2000,
firstSelection = "variable",
binarize = FALSE,
name = "LSI_RNA"
)
Checking Inputs...
ArchR logging to : ArchRLogs/ArchR-addIterativeLSI-445827695a2-Date-2023-12-28_Time-17-48-51.log
If there is an issue, please report to github with logFile!
Error in h5read(x, paste0(useMatrix, "/Info/Units")) :
Object 'GeneExpressionMatrix/Info/Units' does not exist in this HDF5 file.
I also tried the other two versions below:
devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())
devtools::install_github("GreenleafLab/ArchR", ref="release_1.0.2", repos = BiocManager::repositories())
However, none of them can even successfully run the import10xFeatureMatrix(), so I quit running the following steps.
Would you happen to have any suggestions? Thanks!
Hi @qdong2023! Thanks for using ArchR! Please make sure that your post belongs in the Issues section. Only bugs and error reports belong in the Issues section. Usage questions and feature requests should be posted in the Discussions section, not in Issues.
It is worth noting that there are very few actual bugs in ArchR. If you are getting an error, it is probably something specific to your dataset, usage, or computational environment, all of which are extremely challenging to troubleshoot. As such, we require reproducible examples (preferably using the tutorial dataset) from users who want assistance. If you cannot reproduce your error, we will not be able to help.
Before going through the work of making a reproducible example, search the previous Issues, Discussions, function definitions, or the ArchR manual and you will likely find the answers you are looking for.
If your post does not contain a reproducible example, it is unlikely to receive a response.
__In addition to a reproducible example, you must do the following things before we help you, unless your original post already contained this information:
1. If you've encountered an error, have you already searched previous Issues to make sure that this hasn't already been solved?
2. Did you post your log file? If not, add it now.
3. Remove any screenshots that contain text and instead copy and paste the text using markdown's codeblock syntax (three consecutive backticks). You can do this by editing your original post.