seq_nchar: Count the number of character in sequences

View source: R/seq_stat_operations.R

seq_ncharR Documentation

Count the number of character in sequences

Description

Count the number of character in sequences

Usage

seq_nchar(x, gaps = TRUE)

Arguments

x

a DNA, RNA or AA vector.

gaps

if FALSE gaps are ignored.

Value

An integer vector giving the size of each sequence of x.

See Also

Other op-misc: seq_disambiguate_IUPAC(), seq_nseq(), seq_spellout(), seq_stat_gc(), seq_stat_prop()

Examples


x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC"))
seq_nchar(x)
seq_nchar(x, gaps = FALSE)


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