View source: R/chromosome_matrix.R
chromosome_matrix | R Documentation |
Computes sums of chromosome interactions genome-wide along with expected values, making it easier to identify enriched trans-contacts that may indicate translocations.
chromosome_matrix(
explist,
expected = c("bins", "sums", "trans", "cis", "regress"),
include_chr = "all",
exclude_chr = c("chrM", "chrY", "M", "Y"),
sort_chr = TRUE
)
explist |
Either a single GENOVA |
expected |
A |
include_chr |
A |
exclude_chr |
A |
sort_chr |
A |
The expected
part can be calculated various ways, and is returned as
proportion of the total. Setting expected = "bins"
(the default)
will calculate the expected part as the product of a chromosome pair's
number of bins. Setting expected = "sums"
calculates the expected as
the chi squared null hypothesis, namely that the proportions are
conditional on the sums over individual chromosomes. Likewise,
expected = "trans"
and expected = "cis"
will calculate the
same as expected = "sum"
, but omit cis- and trans-combinations
from the calculation respectively.
A chrommat_discovery
object with 2 elements:
obs
, a n
x n
x length(explist)
array
, wherein n
is the number of included chromosomes,
containing sums of contacts for chromosome combinations
exp
, an array
of the same dimensions of
obs
, but contains the expected values
500kb-1Mb+
## Not run:
cm <- chromosome_matrix(list(WT = WT_1Mb, KO = KO_1Mb))
visualise(cm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.