Skip to content

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

Description

@barrel0luck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions