importCNData: Import the copy number data

Description Usage Arguments Value Examples

View source: R/mBPCR.R

Description

Function to import the raw copy number data from a tab delimited file.

Usage

1
  importCNData(path, NRowSkip, ifLogRatio=1)

Arguments

path

path of the tab delimited file containing the copy number data. The file must contain a table, where in the first column there are the names of the probes (snpName), in the second one, the chromosome to which each probe belongs (the possible values of the chromosomes are: the integers from 1 to 22, 'X' and 'Y'), in the third one, the phisical positions of the probes and in the forth one, the copy number data.

NRowSkip

number of row to skip in the file, before the table. The names of the columns are to be skipped.

ifLogRatio

denotes if the data are either the log2ratio of raw copy number data or raw copy number data. By default, they are considered as log2ratio data, otherwise (ifLogRatio=0) they are transformed in log2ratio data.

Value

A list containing:

snpName

an array containing the names of the probes

chr

an array containing the name of the chromosome to which each probe belongs

position

an array containing the physical position of each probe

logratio

an array containing the log2ratio of the raw copy number data

Examples

1
2
3
4
###import the 10K data of cell line REC
path <- system.file("extdata", "rec10k.txt", package = "mBPCR")
rec10k <- importCNData(path, NRowSkip=1)
plot(rec10k$position[rec10k$chr == 3], rec10k$logratio[rec10k$chr == 3])	    

paolarancoita/mBPCR documentation built on Jan. 12, 2020, 6:24 p.m.