This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Remove string from Seurat Object

Quick question which is taking me forever. Anyone have suggestions on how to remove the string following "FLOX_AO1" on the "SAMPLES" column? Yes, I've looked at resources but no solutions as of yet.enter image description here

scrna seurat

object$SAMPLES <- sub("FLOX_AO1_","",object$SAMPLES). I personally prefer to act directly on the metadata object@meta.data$SAMPLES <- ...

0 answers

No answers yet.

Log in to answer this question.