GreenleafLab / ArchR

ArchR : Analysis of Regulatory Chromatin in R (www.ArchRProject.com)
MIT License
388 stars 140 forks source link

Error in h5read(x, paste0(useMatrix, "/Info/Units")): Object 'PeakMatrix/Info/Units' does not exist in this HDF5 file. #2031

Open Alpha-LiCan opened 1 year ago

Alpha-LiCan commented 1 year ago

I used my own peakset, but failed, plz help me, I beg u.

proj2 <- ArchRProject( ArrowFiles = ArrowFiles, outputDirectory = "PBMC_tile", copyArrows = TRUE )

proj2 <- filterDoublets(ArchRProj = proj2)

proj2 <- addPeakSet( ArchRProj = proj2, peakSet = gr )

proj2 <- addIterativeLSI(ArchRProj = proj2, useMatrix = "PeakMatrix", name = "IterativeLSI")

the error: Error in h5read(x, paste0(useMatrix, "/Info/Units")): Object 'PeakMatrix/Info/Units' does not exist in this HDF5 file. Traceback:

  1. addIterativeLSI(ArchRProj = proj2, useMatrix = "PeakMatrix", . name = "IterativeLSI")
  2. unique(unlist(lapply(ArrowFiles, function(x) h5read(x, paste0(useMatrix, . "/Info/Units")))))
  3. unlist(lapply(ArrowFiles, function(x) h5read(x, paste0(useMatrix, . "/Info/Units"))))
  4. lapply(ArrowFiles, function(x) h5read(x, paste0(useMatrix, "/Info/Units")))
  5. FUN(X[[i]], ...)
  6. h5read(x, paste0(useMatrix, "/Info/Units"))
  7. stop("Object '", name, "' does not exist in this HDF5 file.")

    there is no meaningful information in the log

rcorces commented 1 year ago

Hi @Alpha-LiCan! 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.

rcorces commented 1 year ago

This does look like it could be a bug but as the message above says, we require reproducible examples. please make one with the tutorial data.