df2grg: Convert 'data.frame' to GRanges

Description Usage Arguments Value See Also

View source: R/GenomicRanges.R

Description

Convert data.frame to GRanges

Usage

1
2
df2grg(df, chr = 1, start = 2, end = 3, strand = NULL,
  xidx = NULL, xlbl = NULL)

Arguments

df

a data.frame defining genomic ranges.

chr

column for chromsome identifiers (default = 1).

start

column for start position (default = 2).

end

column for end position (default = 3).

strand

column for strand (default = NULL, e.g. none).

xidx

list of extra column indexes to be imported. By default all available columns are imported.

xlbl

character vector defining the name of imported extra columns (default = NULL).

Value

df2grg returns a GRanges object.

See Also

ImportGenomicRanges


benja0x40/Tightrope documentation built on Jan. 14, 2019, 6:50 p.m.