seq_split_kmer: Split sequences into k-mers

Description Usage Arguments Value See Also Examples

View source: R/seq_string_operation.R

Description

Split sequences into k-mers

Usage

1

Arguments

x

A DNA, RNA or AA vector.

k

an integer giving the size of the k-mer.

Value

a list of k-mer vectors of same class as x.

See Also

seq_split_pattern.

Other string operations: seq-replace, seq_combine(), seq_count_pattern(), seq_crop_pattern(), seq_crop_position(), seq_detect_pattern(), seq_extract_pattern(), seq_extract_position(), seq_remove_pattern(), seq_remove_position(), seq_replace_position(), seq_split_pattern()

Examples

1
2
x <- dna(a ="ACGTTAGTGTAGCCGT", b = "CTCGAAATGA")
seq_split_kmer(x, k = 5)

bioseq documentation built on Nov. 26, 2020, 9:07 a.m.