export | R Documentation |
Export copy-number-variation state or read counts as genome browser viewable file
exportCNVs(hmms, filename, trackname = NULL, cluster = TRUE,
export.CNV = TRUE, export.breakpoints = TRUE)
exportReadCounts(hmms, filename)
exportGRanges(gr, filename, header = TRUE, trackname = NULL, score = NULL,
priority = NULL, append = FALSE, chromosome.format = "UCSC",
thickStart = NULL, thickEnd = NULL, as.wiggle = FALSE, wiggle.val)
hmms |
A list of |
filename |
The name of the file that will be written. The appropriate ending will be appended, either ".bed.gz" for CNV-state or ".wig.gz" for read counts. Any existing file will be overwritten. |
trackname |
The name that will be used as track name and description in the header. |
cluster |
If |
export.CNV |
A logical, indicating whether the CNV-state shall be exported. |
export.breakpoints |
A logical, indicating whether breakpoints shall be exported. |
gr |
A |
header |
A logical indicating whether the output file will have a heading track line ( |
score |
A vector of the same length as |
priority |
Priority of the track for display in the genome browser. |
append |
Append to |
chromosome.format |
A character specifying the format of the chromosomes if |
thickStart, thickEnd |
A vector of the same length as |
as.wiggle |
A logical indicating whether a variableStep-wiggle file will be exported instead of a BED file. If |
wiggle.val |
A vector of the same length as |
Use exportCNVs
to export the copy-number-variation state from an aneuHMM
object in BED format.
Use exportReadCounts
to export the binned read counts from an aneuHMM
object in WIGGLE format.
Use exportGRanges
to export a GRanges-class
object in BED format.
NULL
exportCNVs
: Export CNV-state as .bed.gz file
exportReadCounts
: Export binned read counts as .wig.gz file
exportGRanges
: Export GRanges-class
object as BED file.
Aaron Taudt
## Not run:
## Get results from a small-cell-lung-cancer
folder <- system.file("extdata", "primary-lung", "hmms", package="AneuFinderData")
files <- list.files(folder, full.names=TRUE)
## Export the CNV states for upload to the UCSC genome browser
exportCNVs(files, filename='upload-me-to-a-genome-browser', cluster=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.