getCNAlabel: getCNAlabel

Description Usage Arguments Value Examples

View source: R/getCNAlabel.R

Description

The function getCNAlabel used to discretize the CNA profile to a binary matrix.

Usage

1
getCNAlabel(CNAprofile, ampGene, delGene)

Arguments

CNAprofile

Copy Number Alteration profile

ampGene

A vector of strings,the gene symbol of amplified genes

delGene

A vector of strings,the gene symbol of deleted genes

Value

A binary matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# obtain Copy Number Alteration profile data
CNAP<-GetExampleData("CNAP")
head(CNAP[1:10,1:10])
# obtion amplified genes
ampGene<-GetExampleData("ampGene")
# obtion deleted genes
delGene<-GetExampleData("delGene")
# Obtin the CNA label.
CNAlabelresult<-getCNAlabel(CNAP,ampGene,delGene)
# get the result of the getCNAlabel function
CNAlabelresult<-GetExampleData("CNAlabelresult")
# view first ten genes and ten sample of the label
head(CNAlabelresult[1:10,1:10])

hanjunwei-lab/CNA2Subpathway documentation built on Jan. 28, 2021, 6:56 p.m.