readWig {ORFik} | R Documentation

## Custom wig reader

### Description

Given 2 wig files, first is forward second is reverse. Merge them and return as GRanges object. If they contain name reverse and forward, first and second order does not matter, it will search for forward and reverse.

### Usage

    readWig(path, chrStyle = NULL)

### Arguments

`path` | a character path to two .wig files, or a data.table with 2 columns, (forward, filepath) and reverse, only 1 row.
`chrStyle` | a GRanges object, or a `seqlevelsStyle` (Default: NULL) to get seqlevelsStyle from. Is chromosome 1 called chr1 or 1, is mitocondrial chromosome called MT or chrM etc. Will use 1st seqlevel-style if more are present. Like: c("NCBI", "UCSC") -> pick "NCBI"

### Value

a `GRanges` object of the file/s

### See Also

Other utils: `bedToGR()`, `convertToOneBasedRanges()`, `fimport()`, `findFa()`, `fread.bed()`, `optimizeReads()`, `readBam()`

[Package ORFik version 1.6.9 Index]