Closed meaksu closed 1 month ago
Hi @meaksu, sorry for the delayed response! Yes the issue is caused by the large number of bins. When creating the BANKSY matrix a data table is constructed with number of rows = 1393969 (num. bins) x 2000 (num. features). Since this exceeds 2e31-1 an error is thrown. We are working on scaling this up further by chunking the matrix computation in the feature dimension.
For now, one possible work around is to construct the BANKSY matrix separately for each sample, merge them, and run PCA on the merged matrix.
Also, see this comment for ideas on scaling up! https://github.com/prabhakarlab/Banksy_py/issues/12#issuecomment-2268114768
Hi, I'm trying to use the RunBanksy function with a merged Seurat Object of four Visium HD samples. I'm running into the following error about negative length vectors. Is this related to the number of cells/bins being too high (1393969 bins) and if so is there any way to get around this issue?