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

non-numeric argument to binary operator #49

Open
xuzhougeng opened this issue Aug 1, 2022 · 1 comment
Open

non-numeric argument to binary operator #49

xuzhougeng opened this issue Aug 1, 2022 · 1 comment

Comments

@xuzhougeng
Copy link

I want to show all sequence in one page, but the following code will not work

nt_seq<- system.file("extdata", "LeaderRepeat_All.fa", package = "ggmsa")
ggmsa(nt_seq, color = "Chemistry_NT", font = NULL) + 
  geom_msaBar() +
  facet_msa(field = 120)

The error is shown blow

Coordinate system already present. Adding new coordinate system, which will replace the existing one.
Error in ggmsa(nt_seq, color = "Chemistry_NT", font = NULL) + geom_msaBar() +  : 
  non-numeric argument to binary operator

Is it possible to combine the geom_msaBar and face_msa function.

@CaoTianze
Copy link
Contributor

I encountered the same bug.
The code works fine.

protein_sequences <- system.file("extdata", "sample.fasta", package = "ggmsa")
ggmsa(protein_sequences, start = 221, end = 280, char_width = 0.5, seq_name = TRUE) + geom_seqlogo() + geom_msaBar()

But, when geom_msaBar() is added firstly, Error in ggmsa(protein_sequences, start = 221, end = 280, char_width = 0.5, : non-numeric argument to binary operator

protein_sequences <- system.file("extdata", "sample.fasta", package = "ggmsa")
ggmsa(protein_sequences, start = 221, end = 280, char_width = 0.5, seq_name = TRUE)  + geom_msaBar()+ geom_seqlogo()

My environment:
Windows 10
R 4.2.1
Rstudio 2022.07.1
ggmsa 1.2.3

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

2 participants