gc: GC Content

Description Usage Arguments Value Examples

Description

Compute the GC content for regions of a reference sequence.

Usage

1
  gcContent(regions, ref)

Arguments

regions

GRanges object with the regions for which the GC content should be computed.

ref

Reference sequence object, as a 'BSgenome' or 'FaFile' object.

Value

A numeric vector with the GC content [0,1] for each region.

Examples

1
2
3
4
5
library(BSgenome.Hsapiens.1000genomes.hs37d5)

regs = GRanges(c("1", "2"), IRanges(1e7, width = 100))

gc = gcContent(regs, BSgenome.Hsapiens.1000genomes.hs37d5)

comm03/trysomesigs documentation built on May 15, 2019, 1:14 p.m.