binary.X | R Documentation |
This function builds a binary, incidence, matrix from the cnr$X. It was designed as a helper function to generate the input for infSCITE.
binary.X(X, base.ploidy = 2)
X |
a copy number matrix to convert to an incidence matrix |
base.ploidy |
expected cell ploidy, e.g. 2N = 2, 4N = 4 |
Because infSCITE was developed for mutation data, this function creates a precense/absence matrix of the data
By default, anything not diploid is 1.
Returns an incidence matrix for X, when X != base.ploidy
data(cnr) Z <- binary.X(cnr$genes[, c("CDK4", "MDM2")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.