View source: R/utils_exports.R
export.wiggle | R Documentation |
Will create 2 files, 1 for + strand (*_forward.wig) and 1 for - strand (*_reverse.wig). If all ranges are * stranded, will output 1 file. Can be direct input for ucsc browser or IGV
export.wiggle(x, file)
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 |
invisible(NULL) (File is saved as 2 .wig files)
https://genome.ucsc.edu/goldenPath/help/wiggle.html
Other utils:
bedToGR()
,
convertToOneBasedRanges()
,
export.bed12()
,
export.bigWig()
,
export.fstwig()
,
fimport()
,
findFa()
,
fread.bed()
,
optimizeReads()
,
readBam()
,
readBigWig()
,
readWig()
x <- c(GRanges("1", c(1,3,5), "-"), GRanges("1", c(1,3,5), "+"))
# export.wiggle(x, "output/path/rna.wig")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.