Hello, this is my first post on biostars! Thank you in advance for any help.
I'm having trouble converting a RNA-seq gene count sparse matrix from .txt to MatrixMarket .mtx file. I'm working with the gene count sparse matrix from this dataset.
And wanted to load the matrix in R so that I can filter cells by barcode out of the dataset. The first line of the .txt file is:
%%MatrixMarket matrix coordinate integer general
So I figured I'd be able to use the readMM() function however doing this gave me the error message:
Error in readMM(file = "~/scratch/rtrujillo/RNA-seq/sci-seq/gene_count.txt") : file is not a MatrixMarket file
How can I load this file in R?