ggtranscript icon indicating copy to clipboard operation
ggtranscript copied to clipboard

reverse orientation of transcripts on minus strand

Open tabeariepe opened this issue 2 years ago • 1 comments

Hi,

Is there an easy way to inverse the orientation for transcripts that are on the minus strand (to also go from left to right)?

Kind regards, Tabea

tabeariepe avatar Jun 09 '23 12:06 tabeariepe

Hi Tabea,

You can flip the x coordiantes by using coord_cartesian(xlim = c(x, y)). Just change the order of x and y if it is on the minus strand.

I hope that helps.

Jon

Jbrenton191 avatar Jun 14 '23 10:06 Jbrenton191

Thanks a lot for the tip @Jbrenton191! Closing this as resolved, happy to reopen if not.

dzhang32 avatar Aug 24 '24 14:08 dzhang32