Learn R Programming

bioseq (version 0.1.1)

seq_stat_prop: 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

Run this code
# NOT RUN {
x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC"))
seq_stat_prop(x)
seq_stat_prop(x, gaps = TRUE)

# }

Run the code above in your browser using DataLab