Description Usage Arguments Value Examples
Exports an object of class cnv
to a
bedgraph file for viewing
in IGV as bars.
1 2 3 4 5 6 7 8 |
cnv |
Either a BED file with |
out_file |
Path to write output to. Needs to have a |
track_name |
Name of track to appear in IGV (default: "cnv_segs"). |
col1 |
Colour name for amplifications (default: darkgreen). |
col2 |
Colour name for deletions (default: red). |
autoscale |
With autoscaling on, IGV automatically adjusts the plot Y scale to the data range currently in view. As the user pans and moves, this scaling continually adjusts. Available options: on, off (default: on). |
Invisible list with the modified cnv
object and the track header, where:
chrom
: chromosome
start
: start coordinate
end
: end coordinate
tot_cn - 2
: total copy number estimate minus 2 (so that CN2 will be the baseline)
header
: track information
1 2 3 4 5 6 | ## Not run:
cn_fname <- system.file("extdata", "HCC2218_purple.cnv.tsv", package = "pebbles")
cnv <- prep_purple_seg(cn_fname)
cnv2igv(cnv, out_file = "~/Desktop/tmp/cnv_segs4igv.bedgraph")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.