R/seq_stat_operations.R
seq_stat_gc.Rd
Compute G+C content
seq_stat_gc(x)
a DNA or RNA
A numeric vector of G+C proportions.
Ambiguous characters (other than S and W) are ignored.
Other op-misc: seq_disambiguate_IUPAC(), seq_nchar(), seq_nseq(), seq_spellout(), seq_stat_prop()
seq_disambiguate_IUPAC()
seq_nchar()
seq_nseq()
seq_spellout()
seq_stat_prop()
x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC")) seq_stat_gc(x) #> [1] 0.4285714 1.0000000 0.5000000