Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/genomic_region_correlation.R
Correlation between two sets of genomic regions
1 2 3 4 | genomic_regions_correlation(gr_list_1, gr_list_2, background = NULL,
chromosome = paste0("chr", c(1:22, "X", "Y")), species = "hg19",
nperm = 0, mc.cores = 1, stat_fun = genomic_corr_jaccard, ...,
bedtools_binary = Sys.which("bedtools"), tmpdir = tempdir())
|
gr_list_1 |
a list of |
gr_list_2 |
a list of |
background |
a |
chromosome |
a vector of chromosome names |
species |
species, used for random shuffling genomic regions |
nperm |
number of random shufflings. If it is set to 0 or 1, no random shuffling will be performed. |
mc.cores |
number of cores for parallel calculation |
stat_fun |
method to calculate correlations. There are some pre-defined functions: |
... |
pass to |
bedtools_binary |
random shuffling is perfomed by |
tmpdir |
dir for temporary files |
The correlation between two sets of genomic regions basically means how much the first type of genomic regions are overlapped or close to the second type of genomic regions.
The significance of the correlation is calculated by random shuffling the regions.
In random shuffling, regions in gr_list_1
will be shuffled. So if you want to shuffle gr_list_2
,
just switch the first two arguments.
Pleast note random shuffling is done by "bedtools", so "bedtools" should be installed and exists in PATH
and should support -i -g -incl
options.
This function is very time-consuming.
A list containing following elements:
statistic value
stat/E(stat), stat divided by expected value which is generated from random shuffling
p-value for over correlated. So, 1 - p.value is the significance for being less correlated
mean value of stat in random shuffling
standard deviation in random shuffling
If perm
is set to 0 or 1, fold_change
, p.value
, stat_random_mean
and stat_random_sd
are all NULL
.
Zuguang Gu <z.gu@dkfz.de>
genomic_corr_reldist
, genomic_corr_jaccard
, genomic_corr_absdist
, genomic_corr_intersect
,
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.