Closed Telogen closed 2 years ago
Hi @Telogen,
Thanks for your feedback.
To be able to use --input_format sparse, you need to remove the first two rows:
%%MatrixMarket matrix coordinate integer general
108377 10412 81271603
I will implement a function to support this sparse matrix format later.
Meanwhile, to keep compatibility with other tools (e.g., Signac or episcanpy), you can save the matrix from R as a standard 10x folder:
writeMM(counts, file = "./filtered_peak_bc_matrix/matrix.mtx")
barcodes <- as.data.frame(colnames(counts))
peaks <- as.data.frame(stringr::str_split_fixed(rownames(counts), "_", 3))
write.table(barcodes, file = "./filtered_peak_bc_matrix/barcodes.tsv",
sep = "\t", quote = FALSE, row.names = FALSE, col.names = FALSE)
write.table(peaks, file = "./filtered_peak_bc_matrix/peaks.bed",
sep = "\t", quote = FALSE, row.names = FALSE, col.names = FALSE)
best, Li
Hi developer, I'm trying to use scOpen in commond line:
and my input file is a sparse matrix generated by Matrix::writeMM() function in R:
here are several head lines of file aSM.txt:
but I got the following error:
Looking forward to your help!