Remove string from Seurat Object
0
0
Entering edit mode
19 months ago

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 • 703 views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2285 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6