GreenleafLab / ArchR

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

addIterativeLSI error #2023

Open khsjh opened 1 year ago

khsjh commented 1 year ago

When I run the addIterativeLSI with my data the error message was appeared.

2023-09-18 10:32:02 : Computing Estimated LSI (projectAll = FALSE), 0.358 mins elapsed.


2023-09-18 10:32:24 : ERROR Found in .computeLSI for
LogFile = ArchRLogs/ArchR-addIterativeLSI-20ac173b0f63a6-Date-2023-09-18_Time-10-31-40.log

<subscriptOutOfBoundsError in allLSI[cn, , drop = FALSE]: subscript out of bounds>



2023-09-18 10:32:24 : ERROR Found in .LSIPartialMatrix for
LogFile = ArchRLogs/ArchR-addIterativeLSI-20ac173b0f63a6-Date-2023-09-18_Time-10-31-40.log

<simpleError in .logError(e, fn = ".computeLSI", info = "", errorList = errorList, logFile = logFile): Exiting See Error Above>


Error in .logError(e, fn = ".LSIPartialMatrix", info = "", errorList = errorList, : Exiting See Error Above In addition: Warning messages: 1: In h5checktypeOrOpenLoc(file, readonly = TRUE, fapl = NULL, native = native) : An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'h5closeAll()' to close all open HDF5 object handles. 2: In h5checktypeOrOpenLoc(file, readonly = TRUE, fapl = NULL, native = native) : An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'h5closeAll()' to close all open HDF5 object handles.

Here is my ruinnig code

total_proj_F2_T0_2 <- addIterativeLSI(ArchRProj = total_proj_F2_T0_1, useMatrix = "TileMatrix", name = "IterativeLSI", iterations = 2, clusterParams = list(resolution = c(0.01, 0.05, 0.1, 0.2, 0.4, 0.8), sampleCells = 1000, n.start = 5), varFeatures = 25000, threads = 1, dimsToUse = 1:30)

I changed the resolution for c(0.2), c(0.2, 0.3, 0.5), c(0.1) ... and aslo the sampleCells, n.start, varFeatures, dimToUse variables were changed some values But all results were failed and same error message was appeared.

I attempted my log.

Please help me

ArchR-addIterativeLSI-20ac17552555f5-Date-2023-09-15_Time-19-51-44.log

rcorces commented 1 year ago

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

ehoreth commented 10 months ago

Was there any solution for this problem as I am currently experiencing the same issue.