Closed IC-hub closed 3 years ago
Sorry you are having trouble. I have never seen this before and this is not supposed to happen. I dont think I have enough information to help and your log file was not attached to the issue. Perhaps you can provide the code that was used to call addIterativeLSI()
and the log file as a start.
ArchR-addIterativeLSI-13a65581ef2e-Date-2021-03-19_Time-09-12-14.log My log is shown in the attached file and here are my codes around addIterativeLSI:
proj <- ArchRProject(
ArrowFiles = ArrowFiles,
outputDirectory = "HemeTutorial",
copyArrows = TRUE #This is recommened so that you maintain an unaltered copy for later usage.
)
cell_id = read.csv('bin_1000_cellID.csv', stringsAsFactors=FALSE)
names(cell_id) = c('1', 'barcode')
# keep selected cells
barcode_in = intersect(paste('multi-pbmc10k#',cell_id$barcode,sep=''),proj$cellNames)
proj2 = proj[barcode_in,]
# LSI and clustering
proj2 <- addIterativeLSI(ArchRProj = proj2, useMatrix = "TileMatrix", name = "IterativeLSI",sampleCellsPre = 500,clusterParams=list(sampleCells =500,n.start=10))
Try using subsetArchRProject()
to subset your project via the cells
parameter.
https://www.archrproject.com/reference/subsetArchRProject.html
Hi @IC-hub, I think there is a chance maybe something weird was with the cells used. I added a check to use 50 cells vs 10 cells for LSI projection. I made this now a warning vs an error as well. This is really just a sanity check that should be essentially identical, but I am not sure why in your case this is not true. This will be reflected in the newest release upcoming.
Attach your log file
Describe the bug When running addIterativeLSI function with TileMatrix, the LSI projection fails.
To Reproduce The bug couldn't be reproduced on Tutorial dataset.
Session Info