View source: R/loadCopyNumberCallsPennCNV.R
loadCopyNumberCallspennCNV | R Documentation |
Loads copy number calls from pennCNV.rawcnv file format
loadCopyNumberCallspennCNV (pennCNV.file, chr.col = NULL, start.col = NULL, end.col = NULL, cn.col = NULL, segment.value.col = NULL, genome = NULL, verbose=TRUE)
pennCNV.file |
The name of the file with the data |
chr.col |
(number or character) The name or number of the column with chromosome information. If NULL, it is automatically identified. (defaults to NULL) |
start.col |
(number or character) The name or number of the column with start position information. If NULL, it is automatically identified. (defaults to NULL) |
end.col |
(number or character) The name or number of the column with end position information. If NULL, it is automatically identified. (defaults to NULL) |
cn.col |
(number or character) The name or number of the column with CN information. If NULL, it is automatically identified. (defaults to NULL) |
segment.value.col |
(number or character) The name or number of the column with segment value. If NULL, it is automatically identified. (defaults to NULL) |
genome |
(character) The name of the genome (defaults to NULL) |
verbose |
(logical) Whether to show information messages. (defaults to TRUE) |
This function will load copy number calls from pennCNV.rawcnv file format.
Internally it uses the toGRanges
function from regioneR
package and can work with any format accepted by it, including R objects
and local or remote files.
If no column names are specified, it will use simple heuristics to try to
identify the relevant data columns.
A GRanges with a range per copy number segment or a list of GRanges with a GRanges per sample.
## loadCopyNumberCallspennCNV from .rawcnv file format:
## The file to run the example can be found in: http://penncnv.openbioinformatics.org/en/latest/user-guide/test/
pennCNV.file <- system.file("extdata", "pennCNV.rawcnv", package = "CopyNumberPlots", mustWork = TRUE)
cnv.call <- loadCopyNumberCallspennCNV(pennCNV.file = pennCNV.file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.