chrIndices-methods: Get a matrix of first and last index of features in each...

Description Usage Arguments Value Examples

Description

Sometimes it is handy to know the first and last index for each chr. This is like chrInfo but for feature indices rather than chromosome locations. If chr is specified, the function will return a sequence of integers representing the row indices of features on that chromosome.

Usage

1
2
3
4
chrIndices(object, chr = NULL)

## S4 method for signature 'GenoSetOrGenomicRanges'
chrIndices(object, chr = NULL)

Arguments

object

GenoSet or GRanges

chr

character, specific chromosome name

Value

data.frame with 'first' and 'last' columns

Examples

1
2
3
  data(genoset,package='genoset')
  chrIndices(genoset.ds)
  chrIndices(rowRanges(genoset.ds))  # The same

genoset documentation built on Nov. 8, 2020, 6:07 p.m.