makeGRanges: Make a GRanges from a data.frame or data.table with the...

Description Usage Arguments Value

View source: R/utility.r

Description

Given a data.frame or data.table with the columns "chr", "start", and "end", a GenomicRanges (GRanges) object will be created. All other columns will be passed on as metadata. If the input is already a GRanges, it is simply returned. If the column "strand" exists, it will be set as the strand.

Usage

1
makeGRanges(obj, strand = F)

Arguments

obj

A data.frame or data.table with columns "chr", "start", and "end" and any other columns

strand

Use the information in the "strand" column to set strand in the GRanges, if it is present.

Value

A GRanges made from the data in obj.


jeffbhasin/goldmine documentation built on Nov. 13, 2019, 9:11 a.m.