Hello everyone,
I have issues importing the filtered matrix files of STARsolo output to use with Seurat.
I have tried multiple ways like:
Drosophila.data <- ReadMtx(mtx ="~/genome/matrix/matrix.mtx", cells="~/genome/matrix/barcodes.tsv", features="~/genome/matrix/features.tsv")
and
Drosophila.data <- ReadSTARsolo(data.dir ="~/genome/matrix/)
But both give me the following error:
Error: Matrix has 13968 rows but found 12507 features.
In addition: Warning messages:
1: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
EOF within quoted string
2: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
number of items read is not a multiple of the number of columns
The features file looks ok to me as it has exactly 13968 rows.
I am not sure how to tackle this problem and even tried rerunning STARsolo but that did not help. Any help would be appreciated!
I tried setting feature.column=1 before but unfortunately it didn't work. I will try loading the data manually as you suggested. Here is the data: https://drive.google.com/drive/folders/1xeWXlqRsHsx8ayn6wF-9GHV1N8bzvJMT?usp=sharing Thank you so much!
Hi Again, I tried the second solution and here is what I got: (it seems to work for me but I am not sure tbh since I am a beginner, so please let me know if it looks ok)
It does look like the second method worked. The Seurat object should be fine for downstream analysis.
Thank you so much!