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

bug: plot_coverage breaks if using target=FALSE andd fill="qname" #43

Open
MmasterT opened this issue Mar 30, 2023 · 0 comments
Open

bug: plot_coverage breaks if using target=FALSE andd fill="qname" #43

MmasterT opened this issue Mar 30, 2023 · 0 comments

Comments

@MmasterT
Copy link

MmasterT commented Mar 30, 2023

I am using the data provided by the package:

path_to_fungal_alignment <- system.file("extdata", "fungi.paf", package = "pafr")
ali <- read_paf(path_to_fungal_alignment)

and filtering the primary alignments

prim_alignment <- filter_secondary_alignments(ali)

when I try to run the following function:

plot_coverage(prim_alignment, fill='qname', target = FALSE ) +

  • scale_fill_brewer(palette="Set1")

I have this error:

Error in geom_rect():
! Problem while converting geom to grob.
ℹ Error occurred in the 2nd layer.
Caused by error:
! Unknown colour name: qname
Run rlang::last_trace() to see where the error occurred.

my environment version:

platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 2.2
year 2022
month 10
day 31
svn rev 83211
language R
version.string R version 4.2.2 (2022-10-31)
nickname Innocent and Trusting

@MmasterT MmasterT changed the title bug: plot_coverage breaks if using target=FALSE andd fill-"" bug: plot_coverage breaks if using target=FALSE andd fill="qname" Mar 30, 2023
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