Calculates the fraction of G and C among unambiguous bases (A, C, G and
T or U). With by_position = TRUE it also returns GC at the first,
second and third codon positions (GC1, GC2 and GC3), which are widely
used to compare codon usage between genes and genomes.
Arguments
- .data
A data frame, tibble or
bio_seq_tbl().- seq
<
tidy-select> The sequence column. Can be omitted for a<bio_seq_tbl>.- by_position
If
TRUE, addgc1,gc2andgc3columns as well.- .into
Name of the overall GC column.