Description Usage Arguments Value Examples
View source: R/predict_age_fromse.R
This function takes SummarizedExperiment object as input and calculates RNA age.
1 2 3 4 5 6 7 8 9 |
se |
a |
tissue |
a string indicate which tissue the gene expression data is obtained from. Users are expected to provide one of the following tissues. If the tissue argument is not provide or the provided tissue is not in this list, then the age predictor trained on all tissues will be used to calculate RNA age.
|
exprtype |
either "counts" or "FPKM". For RPKM data, please use 'exprtype' = "FPKM". |
idtype |
a string which indicates the gene id type in 'exprdata'. It should be one of "SYMBOL", "ENSEMBL", "ENTREZID" or "REFSEQ". Default is "SYMBOL". |
stype |
a string which specifies which version of pre-trained calculators to be used. It should be either "all" or "Caucasian". "all" means samples from all races (American Indian/Alaska Native, Asian, Black/African American, and Caucasian) are used to obtain the pre-trained calculator. "Caucasian" means only the Caucasian samples are used to build up the pre-trained calculator. |
signature |
a string which indicates the age signature to use when
calculating RNA age. This argument is not required.
|
maxp |
the maxp argument used in |
a data frame contains RNA age.
1 2 3 4 5 6 | library(SummarizedExperiment)
data(fpkmExample)
colData = data.frame(age = c(40, 50))
se = SummarizedExperiment(assays=list(FPKM=fpkm),
colData=colData)
res = predict_age_fromse(se = se, exprtype = "FPKM")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.