check_kmers {transite} | R Documentation

## Check Validity of Set of k-mers

### Description

Checks if the provided set of k-mers is valid. A valid set of k-mers is (1) non-empty, (2) contains either only hexamers or only heptamers, and (3) contains only characters from the RNA alphabet (A, C, G, U)

### Usage

    check_kmers(kmers)

### Arguments

`kmers` | set of k-mers

### Value

`TRUE` if set of k-mers is valid

### See Also

Other k-mer functions: `calculate_kmer_enrichment()`, `compute_kmer_enrichment()`, `count_homopolymer_corrected_kmers()`, `draw_volcano_plot()`, `estimate_significance_core()`, `estimate_significance()`, `generate_kmers()`, `generate_permuted_enrichments()`, `run_kmer_spma()`, `run_kmer_tsma()`

### Examples

    # valid set
    check_kmers(c("ACGCUC", "AAACCC", "UUUACA"))

    # invalid set (contains hexamers and heptamers)
    check_kmers(c("ACGCUC", "AAACCC", "UUUACAA"))

[Package transite version 1.8.0 Index]