gc_content: GC Content

View source: R/analysis.R

gc_contentR Documentation

GC Content

Description

Calculates the percentage of G and C bases in a DNA sequence.

Usage

gc_content(s)

Arguments

s

A character string containing the sequence

Value

Numeric percentage of GC content

Examples

data(sars_fragment)
gc_content(sars_fragment)

baseq documentation built on March 12, 2026, 1:07 a.m.