seq_split_kmer: Split sequences into k-mers

View source: R/seq_string_operation.R

seq_split_kmerR Documentation

Split sequences into k-mers

Description

Split sequences into k-mers

Usage

seq_split_kmer(x, k)

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


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

bioseq documentation built on Sept. 6, 2022, 5:07 p.m.