extractSequences {RCAS} | R Documentation

## extractSequences

### Description

Given a GRanges object and a genome version (hg19, mm9, ce10 or dm3), this function extracts the DNA sequences for all genomic regions found in an input object.

### Usage

    extractSequences(queryRegions, genomeVersion)

### Arguments

`queryRegions` | GRanges object containing coordinates of input query regions imported by the `importBed` function
`genomeVersion` | A character string to denote the BS genome library required to extract sequences. Available options are hg19, mm9, ce10 and dm3.

### Value

DNAStringSet object will be returned

### Examples

    data(queryRegions)
    sequences <- extractSequences(queryRegions = queryRegions,
                                 genomeVersion = 'hg19')

[Package RCAS version 1.16.0 Index]