exportBins | R Documentation |
Exports to a file.
exportBins(object, file, format=c("tsv", "igv", "bed", "vcf", "seg"),
type=c("copynumber", "segments", "calls"), filter=TRUE, logTransform=TRUE, digits=3,
chromosomeReplacements=c(`23` = "X", `24` = "Y", `25` = "MT"), ...)
object |
A |
file |
Filename. For formats that support only one sample per file, such as BED, '%s' can be used as a placeholder for sample name or '%d' for sample number. |
format |
Format to export in. Currently supported ones are "tsv" (tab separated values), "igv" (Integrative Genomics Viewer), and "bed" (BED file format). |
type |
Type of data to export, options are "copynumber" (corrected or uncorrected read counts), "segments", or "calls". |
filter |
If |
logTransform |
If |
digits |
The number of digits to round to. If not |
chromosomeReplacements |
A named character vector of chromosome name
replacements to be done. Only used when |
... |
Additional arguments passed to |
Exports object
to a file.
Returns the pathnames of the files written.
Ilari Scheinin
## Not run:
data(LGG150)
readCounts <- LGG150
readCountsFiltered <- applyFilters(readCounts)
readCountsFiltered <- estimateCorrection(readCountsFiltered)
copyNumbers <- correctBins(readCountsFiltered)
copyNumbersNormalized <- normalizeBins(copyNumbers)
copyNumbersSmooth <- smoothOutlierBins(copyNumbersNormalized)
exportBins(copyNumbersSmooth, file="LGG150.igv", format="igv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.