GetGenomeGRanges: GetGenomeGRanges Function (DaLoad)

View source: R/DaLoad.R

GetGenomeGRangesR Documentation

GetGenomeGRanges Function (DaLoad)

Description

Return a GRanges object from a DNAStringSet object with ranges from 1 to the sequences width (for both strands).

Usage

GetGenomeGRanges(dnastringsetGenome)

Arguments

dnastringsetGenome

A DNAStringSet object to convert as a GRanges object. If sequences have no names, these will be named with "seq" and a number (corresponding to the order in the DNAStringSet object) in the GRanges object.

Examples

mySeqs <- Biostrings::DNAStringSet(c("ACCATTGATTAT", "AATATCGACTA", "GACTAT"))
myRanges <- GetGenomeGRanges(mySeqs)
myRanges

AlexisHardy/DNAModAnnot documentation built on Feb. 27, 2023, 12:03 a.m.