seq_truncate_nonstop | R Documentation |
*
).Truncate input sequence after input position before next stop codons (*
).
seq_truncate_nonstop(seq, pos)
seq |
Sequence |
pos |
position relative to sequence |
a character
This can be used to remove peptide sequence parts in a context sequence (in
a fixed-sized window around a position of interest) after a stop codon *
occurs.
seq_truncate_nonstop("1234*6789", 2) # "1234"
seq_truncate_nonstop("1234*6789", 8) # "1234*6789"
seq <- "QIP*LGSNSLLFPYQLMAGSTRP*SWALGC"
seq_truncate_nonstop(seq, 14) #"QIP*LGSNSLLFPYQLMAGSTRP"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.