Learn R Programming

bioseq (version 0.1.4)

seq_split_kmer: Split sequences into k-mers

Description

Split sequences into k-mers

Usage

seq_split_kmer(x, k)

Value

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

Arguments

x

A DNA, RNA or AA vector.

k

an integer giving the size of the k-mer.

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

Run this code

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

Run the code above in your browser using DataLab