Description Usage Arguments Details Value References See Also Examples
This function computes 'singscores' using an unmodified
ranked gene expression matrix obtained from the rankGenes()
function and a
gene set or a pair of up-regulated and down-regulated gene sets. It returns
a data.frame of scores and dispersions for each sample. The gene sets can be
in vector format or as GeneSet objects (from GSEABase packages). If samples
need to be scored against a single gene set, the upSet
argument
should be used to pass the gene set while the downSet
argument is set
to NULL
. This setting is ideal for gene sets representing gene
ontologies where the nature of the genes is unknown (up- or down-regulated).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | simpleScore(
rankData,
upSet,
downSet = NULL,
subSamples = NULL,
centerScore = TRUE,
dispersionFun = mad,
knownDirection = TRUE
)
## S4 method for signature 'matrix,vector,missing'
simpleScore(
rankData,
upSet,
downSet = NULL,
subSamples = NULL,
centerScore = TRUE,
dispersionFun = mad,
knownDirection = TRUE
)
## S4 method for signature 'matrix,GeneSet,missing'
simpleScore(
rankData,
upSet,
downSet = NULL,
subSamples = NULL,
centerScore = TRUE,
dispersionFun = mad,
knownDirection = TRUE
)
## S4 method for signature 'matrix,vector,vector'
simpleScore(
rankData,
upSet,
downSet = NULL,
subSamples = NULL,
centerScore = TRUE,
dispersionFun = mad,
knownDirection = TRUE
)
## S4 method for signature 'matrix,GeneSet,GeneSet'
simpleScore(
rankData,
upSet,
downSet = NULL,
subSamples = NULL,
centerScore = TRUE,
dispersionFun = mad,
knownDirection = TRUE
)
|
rankData |
A matrix object, ranked gene expression matrix data generated
using the |
upSet |
A GeneSet object or character vector of gene IDs of up-regulated gene set or a gene set where the nature of genes is not known |
downSet |
A GeneSet object or character vector of gene IDs of down-regulated gene set or NULL where only a single gene set is provided |
subSamples |
A vector of sample labels/indices that will be used to subset the rankData matrix. All samples will be scored if not provided |
centerScore |
A Boolean, specifying whether scores should be centered
around 0, default as TRUE. Note: scores never centered if |
dispersionFun |
A function, dispersion function with default being |
knownDirection |
A boolean, determining whether the gene set should be considered to be directional or not. A gene set is directional if the type of genes in it are known i.e. up- or down-regulated. This should be set to TRUE if the gene set is composed of both up- AND down-regulated genes. Defaults to TRUE. This parameter becomes irrelevant when both upSet(Colc) and downSet(Colc) are provided. |
Signature scores can be computed using transcriptome-wide
measurements or using a smaller set of measuremnts. If ranks are computed
using the default invocation of rankgenes
, the former method is applied
where the rank of each gene in the signature is computed relative to all
other genes in the dataset. Accuracy of this approximation of the relative
expression of a gene will be improved if all or most transctripts are
measured in the experiment. This was the approach proposed in the original
manucript of singscore (Foroutan M, Bhuva DD, et al 2018).
If instead a selected panel of genes is measured (such as from nanostring or
RT-qPCR), a different rank approximation methods using a small set of stable
genes can be used. This approach only requires measurements of genes in the
signature and a small set of stable genes. This approach of scoring can be
invoked by producing a rank matrix by passing in the stableGenes
argument
of rankGenes
. Stable genes in solid cancers and in blood can be retrieved
using getStableGenes
. Upon providing a set of stable genes, rankGenes
automatically ranks all genes relative to these stable genes. When
simpleScore
is provided with a rank matrix constructed using stable genes,
it automatically computes scores using a new approach. Details of the set of
stable genes, the new rank estimation approach and the new scoring approach
will soon be published (manuscript in preparation).
A data.frame consists of singscores and dispersions for all samples
Foroutan, M., Bhuva, D. D., Lyu, R., Horan, K., Cursons, J., & Davis, M. J. (2018). Single sample scoring of molecular phenotypes. BMC bioinformatics, 19(1), 1-10.
rankGenes
, getStableGenes
,
rank
, "GeneSet"
1 2 3 4 | ranked <- rankGenes(toy_expr_se)
scoredf <- simpleScore(ranked, upSet = toy_gs_up, downSet = toy_gs_dn)
# toy_gs_up is a GeneSet object, alternatively a vector of gene ids may also
# be supplied.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.