seq_truncate_nonstop: Truncate input sequence after input position before next stop...

View source: R/add_peptide.R

seq_truncate_nonstopR Documentation

Truncate input sequence after input position before next stop codons (*).

Description

Truncate input sequence after input position before next stop codons (*).

Usage

seq_truncate_nonstop(seq, pos)

Arguments

seq

Sequence

pos

position relative to sequence

Value

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.

Examples


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"


TRON-Bioinformatics/splice2neo documentation built on March 25, 2024, 2:27 a.m.