parseWIG: convert WIG format track to BED format track

Description Usage Arguments Value Author(s) See Also Examples

View source: R/parseWIG.R

Description

convert WIG format track to BED format track for a given range

Usage

1
parseWIG(trackScore, chrom, from, to)

Arguments

trackScore

an object of track with WIG format

chrom

sequence name of the chromosome

from

start coordinate

to

end coordinate

Value

an object of track

Author(s)

Jianhong Ou

See Also

track

Examples

1
2
3
4
5
6
7
    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)

trackViewer documentation built on Nov. 17, 2017, 10:53 a.m.