Description Usage Arguments Details Value Examples
For the purposes of examples and testing the package, tornadoplot includes some functions that make up some dummy data that isn't too large.
1 2 3 4 5 6 7 8 9 | dummy_features()
dummy_granges_data()
dummy_tabix(pattern = "file", dir = tempdir())
dummy_bigwig(pattern = "file", dir = tempdir())
dummy_tornado()
|
pattern |
A |
dir |
A |
The dummy_granges_data()
and dummy_bigwig()
generators make
their data around the genomic ranges returned by dummy_features()
.
The dummy_bigwig()
and dummy_tabix()
files create files on your system.
As their usage is intended as temporary files, don't forget to unlink()
their paths and indices after they are no longer needed.
The dummy_tornado()
makes a relatively small
TornadoExperiment.
The return values differ per function.
dummy_features
A GRanges
object of length 2.
dummy_granges_data
A GRanges
object of length 20.
dummy_bigwig
A BigWigFile
object.
dummy_tabix
A TabixFile
object with "A"
and "B"
in the 4th
column.
dummy_tornado
A TornadoExperiment object with 2 samples, 4 features and 50 bins.
1 2 3 4 5 6 7 8 | # All the functions run without arguments
feats <- dummy_features()
gr <- dummy_granges_data()
bw <- dummy_bigwig()
tbx <- dummy_tabix()
# Don't forget to clean up the temporary files when you're done
unlink(c(path(bw), path(tbx), Rsamtools::index(tbx)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.