Description Usage Arguments Value See Also Examples
View source: R/shape_tornado.R
The sort_tornado()
function reorders the features of a
TornadoExperiment object based on the weighted sum across all
bins.
1 2 3 4 5 6 7 8 9 |
tornado |
A TornadoExperiment object. |
assay_name |
A |
bin_subset, bin_weights |
Define either |
sample_subset |
A |
decreasing |
A |
... |
Not currently in use. |
The tornado
dataset with the features reordered.
Other tornado utilities:
flatten_features()
,
melt_tornado()
,
norm_tornado()
1 2 3 4 5 6 7 8 9 10 11 12 13 | # A tornado that isn't sorted
tor <- dummy_tornado()[c(2,1,4,3),]
# Sorting based on a particular sample
x <- sort_tornado(tor, sample_subset = "dummy_ctrl")
# Sorting based on a subset of bins
x <- sort_tornado(tor, bin_subset = 21:30)
# Sorting with custom weights
nbin <- nbin(tor)
w <- dnorm(seq_len(nbin), mean = (nbin + 1)/2, sd = 5)
x <- sort_tornado(tor, bin_weights = w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.