Learn R Programming

bioseq (version 0.1.1)

seq_stat_gc: Compute G+C content

Description

Compute G+C content

Usage

seq_stat_gc(x)

Arguments

x

a DNA or RNA

Value

A numeric vector of G+C proportions.

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
# NOT RUN {
x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC"))

seq_stat_gc(x)

# }

Run the code above in your browser using DataLab