R/partition-plots.R
calcCumulativePartitionsRef.Rd
This function is a wrapper for calcCumulativePartitions
that uses
built-in partitions for a given reference genome assembly.
calcCumulativePartitionsRef(query, refAssembly)
A GenomicRanges or GenomicRangesList object with query regions
A character vector specifying the reference genome
assembly (*e.g.* 'hg19'). This will be used to grab chromosome sizes
with getTSSs
.
A data.frame indicating the number of query region overlaps in several genomic partitions.
calcCumulativePartitionsRef(vistaEnhancers, "hg19")
#> partition size count cumsum cumsize frif ffir
#> 1: promoterCore 100 100 100 100 4.909580e-05 5.325664e-05
#> 2: promoterCore 100 100 200 200 9.819161e-05 1.065133e-04
#> 3: promoterCore 100 100 300 300 1.472874e-04 1.597699e-04
#> 4: promoterCore 100 100 400 400 1.963832e-04 2.130266e-04
#> 5: promoterCore 100 100 500 500 2.454790e-04 2.662832e-04
#> ---
#> 1274: intergenic 512 512 1251145 1251145 6.142597e-01 1.045544e-03
#> 1275: intergenic 503 503 1251648 1251648 6.145066e-01 1.045964e-03
#> 1276: intergenic 503 503 1252151 1252151 6.147536e-01 1.046385e-03
#> 1277: intergenic 484 484 1252635 1252635 6.149912e-01 1.046789e-03
#> 1278: intergenic 349 349 1252984 1252984 6.151626e-01 1.047081e-03
#> score
#> 1: 5.113392e-05
#> 2: 1.022678e-04
#> 3: 1.534018e-04
#> 4: 2.045357e-04
#> 5: 2.556696e-04
#> ---
#> 1274: 2.534237e-02
#> 1275: 2.535256e-02
#> 1276: 2.536274e-02
#> 1277: 2.537255e-02
#> 1278: 2.537962e-02