Closed ChongLC closed 1 year ago
Hi Chong,
the problem might be that you remove all but CDS from GeneInfo (GenoInfo <- GenoInfo[GenoInfo$type == 'CDS',]
), so when you later do GeneFeat <- GeneInfo
, there is not more UTRs in there.
Here's my approach based on one DenV1 gff from NCBI. Does this help?
library(gggenomes)
d0 <- read_feats("deng1.gff3")
s0 <- d0 |>
filter(type == "region") |>
transmute(seq_id, length=end)
g0 <- d0 |>
filter(type == "mature_protein_region_of_CDS") |>
mutate(type = "CDS")
gggenomes(seqs=s0, genes=g0, feats=d0) +
geom_seq() +
geom_gene(aes(fill=product)) +
geom_feat(data=feats(1, str_detect(type, "UTR")))
Closing for now, let feel free to reopen if you have additional questions
Dear @thackl,
Oh yes, I tried and it solved my issue. I forget to reply here. I will close it. Thank you for your help.
Best regards, Chong
Dear gggenomes developer,
I am trying to plot the genome organization plot of flavi sequences using gggenomes. However, I faced difficulties to add the 3'UTR and 5'UTR in the plot. Do you have any idea to add this?
R code snippet that I ran:
Current view of the plot:
Best regards, Chong