dot-cna_gene_binary: Make Binary Matrix From CNA data frame

.cna_gene_binaryR Documentation

Make Binary Matrix From CNA data frame

Description

Make Binary Matrix From CNA data frame

Usage

.cna_gene_binary(cna, samples, specify_panel, high_level_cna_only)

Arguments

cna

A data frame of copy number alterations. If inputed the outcome will be added to the matrix with columns ending in ".del" and ".amp". Default is NULL.

samples

a character vector specifying which samples should be included in the resulting data frame. Default is NULL is which case all samples with an alteration in the mutation, cna or fusions file will be used. If you specify a vector of samples that contain samples not in any of the passed genomic data frames, 0's (or NAs when appropriate if specifying a panel) will be returned for every column of that patient row.

specify_panel

Default is "no" where no panel annotation is done. Otherwise pass a character vector of length 1 with a panel id (see gnomeR::gene_panels for available panels), or "impact" for automated IMPACT annotation. Alternatively, you may pass a data frame of sample_id-panel_id pairs specifying panels for each sample for which to insert NAs indicating genes not tested. See below for details.

high_level_cna_only

If TRUE, only deep deletions (-2, -1.5) or high level amplifications (2) will be counted as events in the binary matrix. Gains (1) and losses (1) will be ignored. Default is FALSE where all CNA events are counted.

Value

a data frame


AxelitoMartin/gnomeR documentation built on March 23, 2024, 3:07 a.m.