parseWIG | R Documentation |
convert WIG format track to BED format track for a given range
parseWIG(trackScore, chrom, from, to)
trackScore |
an object of track with WIG format |
chrom |
sequence name of the chromosome |
from |
start coordinate |
to |
end coordinate |
an object of track
extdata <- system.file("extdata", package="trackViewer", mustWork=TRUE)
repA <- importScore(file.path(extdata, "cpsf160.repA_-.wig"),
file.path(extdata, "cpsf160.repA_+.wig"),
format="WIG")
strand(repA$dat) <- "-"
strand(repA$dat2) <- "+"
parseWIG(repA, chrom="chr11", from=122929275, to=122930122)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.