Learn R Programming

bioseq (version 0.1.4)

seq_stat_prop: Compute proportions for characters

Description

Compute proportions for characters

Usage

seq_stat_prop(x, gaps = FALSE)

Value

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

Arguments

x

a DNA, RNA or AA vector.

gaps

if FALSE gaps are ignored.

See Also

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

Examples

Run this code

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