Skip to contents

Return the genomic anchor of each row of a per-tuple collection as a GRanges with one range per row – the trait's own region for a TwasWeights, or the fine-mapping window for a FineMappingResult. This is location provenance (e.g. for cTWAS LD-block placement).

Usage

getRegion(x, ...)

# S4 method for class 'FineMappingResultBase'
getRegion(x, ...)

# S4 method for class 'TwasWeights'
getRegion(x, ...)

Arguments

x

The object.

...

Reserved for future use.

Value

A GRanges with one range per row of x, or an empty GRanges when the collection carries no region provenance.

Examples

data(qtlFineMappingExample)
getRegion(qtlFineMappingExample)
#> GRanges object with 1 range and 0 metadata columns:
#>       seqnames            ranges strand
#>          <Rle>         <IRanges>  <Rle>
#>   [1]    chr22 32119788-33114493      *
#>   -------
#>   seqinfo: 1 sequence from an unspecified genome; no seqlengths