bedgraphToBigWig: Bedgraph files to bigwig format

Description Usage Arguments Details Author(s) Examples

View source: R/bedgraphToBigWig.R

Description

Take a list of bedgraph files and write a bigwig file for each one.

Usage

1
2
bedgraphToBigWig(filenames, genomeSizeFile, ucscPath = "/opt/UCSCtools/",
  outDest = "./", outSuffix = "")

Arguments

filenames

Character - List of bedgraph files

genomeSizeFile

String - Filename (with path) to text file containing genome size information

ucscPath

String - Path to UCSC tools executables

outDest

String - Directory where bigwig files should be written

outSuffix

String - will be appended to original filename (and ".bedgraph" is replaced by ".bigwig")

Details

Use UCSC function bedgraphToBigWig to convert bedgraph files to bigwig format. Requires UCSC tools to be installed. Time: ~40s - 1m per bedgraph, where the bedgraphs are generally ~400-800 MB. Example at the command line: system2('/opt/UCSCtools/wigToBigWig', args=c('samplename.gencov.bedgraph', '/path/to/genomeSizeFile.txt', samplename.bigwig))

Author(s)

Emma Myers

Examples

1
bedgraphToBigWig(filenames, genomeSizeFile="/path/to/genomeSizeFile.txt")

e-myers/rnaseq documentation built on May 20, 2019, 9:14 p.m.