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

exclude WT sequence from seqlogo results #35

Open
weipinghh opened this issue Jan 9, 2024 · 0 comments
Open

exclude WT sequence from seqlogo results #35

weipinghh opened this issue Jan 9, 2024 · 0 comments

Comments

@weipinghh
Copy link

Hi,

I have a peptide variant sequences, I want to use seqlogo to visualize the amino acids compositions of each position. But I also want to exclude the WT sequence, I do not know how to achieve that with seqlogo in R. I will be very appreciate if anyone can help me. The WT sequence is GNNRPVYIPQPRPPHPRL. Thank you! Here is my R script in MacOS.

library(ggplot2)
library(ggseqlogo)
library(stringr)
library(ggsci)
library(tidyverse)
header=T
ggseqlogo(as.character(seqlog$seq), method = 'prob') +
theme_bw() +
scale_y_continuous(labels = scales::percent)

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