Get focal set from a Matched object

focal(x, ...)

# S4 method for MDF_OR_MGR_OR_MGI
focal(x, ...)

Arguments

x

A MatchedDataFrame, MatchedGRanges, or MatchedGInteractions object.

...

Additional options.

Value

An object of the same class as x representing the focal set.

Examples

set.seed(123)
x <- makeExampleMatchedDataSet(matched = TRUE)
focal(x)
#> DataFrame with 500 rows and 3 columns
#>      feature1  feature2    feature3
#>     <logical> <numeric> <character>
#> 1        TRUE   2.87905           c
#> 2        TRUE   3.53965           c
#> 3        TRUE   7.11742           c
#> 4        TRUE   4.14102           a
#> 5        TRUE   4.25858           c
#> ...       ...       ...         ...
#> 496      TRUE   1.28384           d
#> 497      TRUE   4.36369           a
#> 498      TRUE   4.32968           b
#> 499      TRUE   4.72823           b
#> 500      TRUE   5.10432           b