Description Usage Arguments Value GSEA score See Also Examples
Compare differential expression results against CMap perturbations.
1 2 3 4 5 6 7 8 | rankSimilarPerturbations(
input,
perturbations,
method = c("spearman", "pearson", "gsea"),
geneSize = 150,
cellLineMean = "auto",
rankPerCellLine = FALSE
)
|
input |
|
perturbations |
|
method |
Character: comparison method ( |
geneSize |
Numeric: number of top up-/down-regulated genes to use as
gene sets to test for enrichment in reference data; if a 2-length numeric
vector, the first index is the number of top up-regulated genes and the
second index is the number of down-regulated genes used to create gene
sets; only used if |
cellLineMean |
Boolean: add a column with the mean score across cell
lines? If |
rankPerCellLine |
Boolean: rank results based on both individual cell
lines and mean scores across cell lines ( |
Data table with correlation or GSEA results comparing differential expression values with those associated with CMap perturbations
Weighted connectivity scores (WTCS) are calculated when method
= "gsea"
(https://clue.io/connectopedia/cmap_algorithms).
Other functions related with the ranking of CMap perturbations:
as.table.referenceComparison()
,
filterCMapMetadata()
,
getCMapConditions()
,
getCMapPerturbationTypes()
,
loadCMapData()
,
loadCMapZscores()
,
parseCMapID()
,
plot.perturbationChanges()
,
plot.referenceComparison()
,
plotTargetingDrugsVSsimilarPerturbations()
,
prepareCMapPerturbations()
,
print.similarPerturbations()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Example of a differential expression profile
data("diffExprStat")
## Not run:
# Download and load CMap perturbations to compare with
cellLine <- c("HepG2", "HUH7")
cmapMetadataCompounds <- filterCMapMetadata(
"cmapMetadata.txt", cellLine=cellLine, timepoint="24 h",
dosage="5 \u00B5M", perturbationType="Compound")
cmapPerturbationsCompounds <- prepareCMapPerturbations(
cmapMetadataCompounds, "cmapZscores.gctx", "cmapGeneInfo.txt",
"cmapCompoundInfo_drugs.txt", loadZscores=TRUE)
## End(Not run)
perturbations <- cmapPerturbationsCompounds
# Rank similar CMap perturbations (by default, Spearman's and Pearson's
# correlation are used, as well as GSEA with the top and bottom 150 genes of
# the differential expression profile used as reference)
rankSimilarPerturbations(diffExprStat, perturbations)
# Rank similar CMap perturbations using only Spearman's correlation
rankSimilarPerturbations(diffExprStat, perturbations, method="spearman")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.