seq_stat_prop: Compute proportions for characters

View source: R/seq_stat_operations.R

seq_stat_propR Documentation

Compute proportions for characters

Description

Compute proportions for characters

Usage

seq_stat_prop(x, gaps = FALSE)

Arguments

x

a DNA, RNA or AA vector.

gaps

if FALSE gaps are ignored.

Value

A list of vectors indicating the proportion of characters in each sequence.

See Also

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

Examples


x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC"))
seq_stat_prop(x)
seq_stat_prop(x, gaps = TRUE)


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