Open cabraham03 opened 6 months ago
I'm not sure I fully understand. Do you want to plot them in the same orientation? Or why do you want to calculate their start and end?
For plotting you can use https://thackl.github.io/gggenomes/reference/flip.html to change the orientations of the contigs (and genes with it).
Something like the following should work
gggenomes(df_genes) |>
flip(GENOME320) +
geom_gene()
Is that what you meant?
Hi, I’m using the read_feats function to import gff files generated with prokka, and then use the coordinates from some genes to generate a plot, nevertheless some of those genes are in different direction. It is possible to calculate the position of the obtained coordinates for multiples genes using the data.frame generated with read_feats function ??
Example of the 2 genes and 2 genomes. I just import the gff files, all in GFFdf (data.frame) and filter the genes that I want to plot
the plot:
I just want to calculate the start and end position for the geneA and geneC in GENOME320 in the same direction of the GENOME300 !!!
any suggestion ??? Thanks