This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to make an amino acid sequence using `AAString ()`?

I want to make an amino acid sequence using AAString (). but I want to repeatedly repeat each amino acid and substitute it with a different AA.

For example:

a <- AAString("HQDIS")

I want to repeat "H" 4 times but one time substitute with L, and so on.

In the end, I would like to have an output like this:

AAString object

HQDIS
HQSIT
HQDIL
LQRIS
string geom_seqlogo ggplot2 r ggmsa

Can you explain what you're trying to do in more detail? For example, how are you determining what the you want the other residues to be? Also are you trying to repeat the letters in a fixed pattern, or based on some probability of occurance?

0 answers

No answers yet.

Log in to answer this question.