Description Usage Arguments Value Examples
Predicts gene expressions using pretrained models.
1 | predict(models, attribute, weather)
|
models |
A list of trained models for the genes of interest. At the moment the collection of trained models returned
by |
attribute |
An object that represents the attributes of
microarray/RNA-seq data.
The object can be created from a dumped/saved dataframe
of size |
weather |
An object that represents actual or hypothetical weather data
with which predictions of gene expressions are made.
The object can be created from a dumped/saved dataframe
of size |
A list of prediction results as returned by the models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# prepare models
# NOTE: FIT::train() returns a nested list of models
# so we have to flatten it using FIT::train.to.predict.adaptor()
# before passing it to FIT::predict().
models <- FIT::train(..)
models.flattened <- FIT::train.to.predict.adaptor(models)
# load data used for prediction
prediction.attribute <- FIT::load.attribute('attribute.2009.txt')
prediction.weather <- FIT::load.weather('weather.2009.dat', 'weather')
prediction.expression <- FIT::load.expression('expression.2009.dat', 'ex', genes)
prediction.results <- FIT::predict(models.flattened,
prediction.attribute,
prediction.weather)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.