seq_split_kmer {bioseq}R 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)

[Package bioseq version 0.1.4 Index]