binary.X: build binary matrix from integer copy number data

Description Usage Arguments Details Value Examples

View source: R/binary.cnr.R

Description

This function builds a binary, incidence, matrix from the cnr$X. It was designed as a helper function to generate the input for infSCITE.

Usage

1

Arguments

X

a copy number matrix to convert to an incidence matrix

Details

Because infSCITE was developed for mutation data, this function creates a precense/absence matrix of the data

By default, anything not diploid is 1.

Value

Returns an incidence matrix for X, when X != 2

Examples

1
2
3
data(cnr)

Z <- binary.X(cnr$genes[, c("CDK4", "MDM2")])

SingerLab/gac documentation built on July 22, 2021, 3:27 a.m.