View source: R/seq_string_operation.R
| seq_extract_position | R Documentation |
Extract a region between two positions in sequences
seq_extract_position(x, position_in, position_out)
x |
a DNA, RNA or AA vector. |
position_in |
an integer giving the position where to start to extract. |
position_out |
an integer giving the position where to stop to extract. |
A vector of same class as x.
stri_extract from stringi and
str_extract from stringr
for the underlying implementation.
Other string operations:
seq-replace,
seq_combine(),
seq_count_pattern(),
seq_crop_pattern(),
seq_crop_position(),
seq_detect_pattern(),
seq_extract_pattern(),
seq_remove_pattern(),
seq_remove_position(),
seq_replace_position(),
seq_split_kmer(),
seq_split_pattern()
x <- dna("ACGTTAGTGTAGCCGT", "CTCGAAATGA")
seq_extract_position(x, 3, 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.