Learn R Programming

bioseq (version 0.1.4)

seq_stat_gc: Compute G+C content

Description

Compute G+C content

Usage

seq_stat_gc(x)

Value

A numeric vector of G+C proportions.

Arguments

x

a DNA or RNA

Details

Ambiguous characters (other than S and W) are ignored.

See Also

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

Examples

Run this code

x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC"))

seq_stat_gc(x)

Run the code above in your browser using DataLab