Description Usage Arguments Value Examples
Function to import the raw copy number data from a tab delimited file.
1 | importCNData(path, NRowSkip, ifLogRatio=1)
|
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 ( |
A list containing:
|
an array containing the names of the probes |
|
an array containing the name of the chromosome to which each probe belongs |
|
an array containing the physical position of each probe |
|
an array containing the log2ratio of the raw copy number data |
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])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.