Additionally, if you know how you will be analyzing the data, you may want to check the instructions for that pipeline. Many single-cell analysis packages now include a function to read 10x matrix and convert it to the most appropriate format for that package.
Making scRNA counts file from barcodes, genes and matrix.mtx file
Hello!
I have barcodes.tsv, genes.tsv and matrix.mtx files. I want to generate a sample scRNA counts files using R.
Thanks!
• 6,907 views
•
link
1 answer
The context of "I used CellRanger from 10X genomics..." would be needed for most people to provide you with actual help...
matrix.mtx is a MatrixMarket file that can be loaded in R with:
library(Matrix)
m = readMM("matrix.mtx")
The columns are the rows in barcodes.tsv (not that it really matters which is which, you can just ignore this file in my opinion) and the row labels are given in genes.tsv (use the first column).
• 1 views
•
link
• 1 views
•
link
Thank you very much.
• 1 views
•
link
Log in to answer this question.