Description Usage Arguments Details Author(s) Examples
View source: R/bedgraph_flip.R
Get raw counts of reads mapped to specified genomic features using featureCount tool from the subread package.
1 | bedgraph_flip(inFiles, outDest = "./", outSuffix = "_flipped")
|
inFiles |
Character - Bedgraph file list |
outDest |
String - Directory where output files should be saved |
outSuffix |
String - will be appended to original filename; default "_flipped" |
Take a list of bedgraph files and convert positive values to negative and vice-versa. This is a hack for getting value from two different files into the same deeptools heatmap, but with a different color scheme for each (using computeMatrix() and plotHeatmap()). Handy for being able to distinguish forward- and reverse-strand reads. TIME: 3-5 s per bedgraph, at least for ~15-20MB ones.
Emma Myers
1 2 | bgs = list.files(pattern = "minus.bedgraph")
bedgraph_flip(bgs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.