Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When inputting a dataframe, plasmapR assumes that the size of the plasmid is equal to the end of the last feature #15

Open
barrel0luck opened this issue Dec 3, 2024 · 0 comments

Comments

@barrel0luck
Copy link

When plotting plasmids from dataframes directly instead of gbk files, plasmapR assumes that the size of the plasmid is equal to the end of the last feature. The actual size may extend way beyond the least feature.

In the example file I have attached, the plasmid size is supposed to be 8000 bp, but the last feature ends at 4820, so plasmapR draws a plasmid of size 4820.

library(tidyverse)
library(plasmapR)

pTEST <- read_tsv("pTEST.txt", skip = 2)
pTEST_plot <- plot_plasmid(pTEST, name = "pTEST")
ggsave("pTEST_4in.svg", pTEST_plot, width = 4, height = 4)
ggsave("pTEST_7in.svg", pTEST_plot, width = 7, height = 7)

pTEST.txt
pTEST_7in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant