readBigwig {plotgardener} | R Documentation |
Read a bigWig file and return it as a data frame
readBigwig( file, chrom = NULL, chromstart = 1, chromend = .Machine$integer.max, strand = "*", params = NULL )
file |
A character value specifying the path to the bigwig file. |
chrom |
Chromosome of data as a string, if data for a specific chromosome is desired. |
chromstart |
Integer start position on chromosome. |
chromend |
Integer end position on chromosome. |
strand |
A character value specifying strand.
Default value is
|
params |
An optional pgParams object containing relevant function parameters. |
This function does not work on Windows.
Returns a 6-column dataframe of bigwig information.
if (.Platform$OS.type != "windows"){ bwFile <- system.file("extdata/test.bw", package="plotgardenerData") ## Read in entire file bwData <- readBigwig(file = bwFile) ## Read in specified region bwRegion <- readBigwig(file = bwFile, chrom = "chr2", chromstart = 1, chromend = 1500) }