| BedToBigWig | R Documentation |
This function is used to generate BigWig file from BED reads file. The BigWig file can be shown reads coverage on genome browser.
atacBedToBigWig( atacProc, bedInput = NULL, bsgenome = NULL, bwOutput = NULL, toWig = FALSE, ... ) ## S4 method for signature 'ATACProc' atacBedToBigWig( atacProc, bedInput = NULL, bsgenome = NULL, bwOutput = NULL, toWig = FALSE, ... ) bedToBigWig(bedInput, bsgenome = NULL, bwOutput = NULL, toWig = FALSE, ...)
atacProc |
|
bedInput |
|
bsgenome |
|
bwOutput |
|
toWig |
|
... |
Additional arguments, currently unused. Save as wig file instead of binary BigWig file |
The parameter related to input and output file path
will be automatically
obtained from ATACProc-class object(atacProc) or
generated based on known parameters
if their values are default(e.g. NULL).
Otherwise, the generated values will be overwrited.
If you want to use this function independently,
you can use bedToBigWig instead.
An invisible ATACProc-class object scalar for downstream analysis.
Zheng Wei
atacSamToBed
samToBed
atacBedUtils
bedUtils
library(R.utils) td <- tempdir() setTmpDir(td) bedbzfile <- system.file(package="esATAC", "extdata", "chr20.50000.bed.bz2") bedfile <- file.path(td,"chr20.50000.bed") ## Not run: bunzip2(bedbzfile,destname=bedfile,overwrite=TRUE,remove=FALSE) library(BSgenome.Hsapiens.UCSC.hg19) bedToBigWig(bedfile, BSgenome.Hsapiens.UCSC.hg19) dir(td) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.