This function will generate an example dataset as input for matchRanges().

makeExampleMatchedDataSet(type = "GRanges")

Arguments

type

Character designating which type of dataset to make. options are one of 'data.frame', 'data.table', 'DataFrame', 'GRanges', or 'GInteractions'.

Value

Returns an example dataset for input to matchRanges().

Examples

## Make examples for matchRanges() makeExampleMatchedDataSet()
#> GRanges object with 136 ranges and 3 metadata columns: #> seqnames ranges strand | feature1 color length #> <Rle> <IRanges> <Rle> | <logical> <character> <integer> #> [1] chr1 92-200 * | TRUE #4fbe9b 109 #> [2] chr1 71-178 * | TRUE #d098d7 108 #> [3] chr1 747-902 * | TRUE #e19995 156 #> [4] chr1 362-502 * | TRUE #d098d7 141 #> [5] chr1 339-406 * | TRUE #d098d7 68 #> ... ... ... ... . ... ... ... #> [132] chr1 511-606 * | FALSE #d098d7 96 #> [133] chr1 724-847 * | FALSE #4fbe9b 124 #> [134] chr1 72-172 * | FALSE #4fbe9b 101 #> [135] chr1 341-480 * | FALSE #4fbe9b 140 #> [136] chr1 674-734 * | FALSE #d098d7 61 #> ------- #> seqinfo: 1 sequence from an unspecified genome; no seqlengths
makeExampleMatchedDataSet(type = 'data.frame') |> head()
#> color size set #> 1 #4fbe9b 0.3585868 focal #> 2 #e19995 0.6616224 focal #> 3 #d098d7 1.1700379 focal #> 4 #e19995 0.6117738 focal #> 5 #d098d7 1.2555948 focal #> 6 #d098d7 1.5000355 focal
makeExampleMatchedDataSet(type = 'data.table')
#> color size set #> 1: #4fbe9b 0.3585868 focal #> 2: #e19995 0.6616224 focal #> 3: #d098d7 1.1700379 focal #> 4: #e19995 0.6117738 focal #> 5: #d098d7 1.2555948 focal #> --- #> 132: #d098d7 0.7736067 pool #> 133: #4fbe9b 1.1424195 pool #> 134: #6eb3d9 0.9260968 pool #> 135: #6eb3d9 0.8206254 pool #> 136: #e19995 0.8349786 pool
makeExampleMatchedDataSet(type = 'DataFrame')
#> DataFrame with 136 rows and 3 columns #> color size set #> <factor> <numeric> <character> #> 1 #4fbe9b 0.358587 focal #> 2 #e19995 0.661622 focal #> 3 #d098d7 1.170038 focal #> 4 #e19995 0.611774 focal #> 5 #d098d7 1.255595 focal #> ... ... ... ... #> 132 #d098d7 0.773607 pool #> 133 #4fbe9b 1.142420 pool #> 134 #6eb3d9 0.926097 pool #> 135 #6eb3d9 0.820625 pool #> 136 #e19995 0.834979 pool
makeExampleMatchedDataSet(type = 'GRanges')
#> GRanges object with 136 ranges and 3 metadata columns: #> seqnames ranges strand | feature1 color length #> <Rle> <IRanges> <Rle> | <logical> <character> <integer> #> [1] chr1 92-200 * | TRUE #4fbe9b 109 #> [2] chr1 71-178 * | TRUE #d098d7 108 #> [3] chr1 747-902 * | TRUE #e19995 156 #> [4] chr1 362-502 * | TRUE #d098d7 141 #> [5] chr1 339-406 * | TRUE #d098d7 68 #> ... ... ... ... . ... ... ... #> [132] chr1 511-606 * | FALSE #d098d7 96 #> [133] chr1 724-847 * | FALSE #4fbe9b 124 #> [134] chr1 72-172 * | FALSE #4fbe9b 101 #> [135] chr1 341-480 * | FALSE #4fbe9b 140 #> [136] chr1 674-734 * | FALSE #d098d7 61 #> ------- #> seqinfo: 1 sequence from an unspecified genome; no seqlengths