Entering edit mode
3.7 years ago
lexichuxuanli
▴
10
Hi, I'm trying to add a file that contains barcode-label pairs to a Seurat object I have. The file looks like this:
Cells 0
ATGATCGTCTACCACC Cluster 6
GAAGCCCAGTTACTCG Cluster 2
CAAGCTACACGGTGTC Cluster 7
CACAACACACAGTATC M8
CATCCACGTTCGGTTA Cluster 2
ATGCATGGTGTGGTCC Cluster 3
ACCCTTGTCTCGGGAC Cluster 6
The issue is that the barcodes in this new file do not match the barcodes or the matrix file I originally used to create the Seurat object. It contains fewer rows due to different filtering standards. Is there a way to merge these two files and removing rows that do not appear in the labels file?
Thank you!
How did you add a cluster column with barcode?