I'm working on single-cell RNA seq data with the Seurat package. I need to change the orig.ident to patient numbers and cluster according to patient number.
row names in my data are = 111_DC.C001 , and 111 is Patient number.
I don't know how can I add the patient number to my metadata or how I grep 111 and add in orig.ident or making new orig.ident to plot according to patient number.
Any Recommendation or solution would be appreciated.