Learn R Programming

cubar (version 1.1.0)

get_gc: GC contents

Description

Calculate GC content of the whole sequences.

Usage

get_gc(cf)

Value

a named vector of GC contents.

Arguments

cf

matrix of codon frequencies as calculated by `count_codons()`.

Examples

Run this code
# estimate GC content of yeast genes
cf_all <- count_codons(yeast_cds)
gc <- get_gc(cf_all)
head(gc)
hist(gc)

Run the code above in your browser using DataLab