export.bigWig {ORFik} | R Documentation

## Export as bigWig format

### Description

Will create 2 files, 1 for + strand (*_forward.bigWig) and 1 for - strand (*_reverse.bigWig). If all ranges are * stranded, will output 1 file. Can be direct input for ucsc browser or IGV

### Usage

    export.bigWig(x, file)

### Arguments

`x` | A GRangesList, GAlignment GAlignmentPairs with score column. Will be converted to 5' end position of original range. If score column does not exist, will group ranges and give replicates as score column.
`file` | a character path to valid output file name

### Value

invisible(NULL) (File is saved as 2 .bigWig files)

### References

https://genome.ucsc.edu/goldenPath/help/bigWig.html

### See Also

Other utils: `bedToGR()`, `convertToOneBasedRanges()`, `export.bed12()`, `export.wiggle()`, `fimport()`, `findFa()`, `fread.bed()`, `optimizeReads()`, `readBam()`, `readBigWig()`, `readWig()`

### Examples

    x <- c(GRanges("1", c(1,3,5), "-"), GRanges("1", c(1,3,5), "+"))
    # export.bigWig(x, "output/path/rna.bigWig")

[Package ORFik version 1.14.7 Index]