prepMSig | R Documentation |
prepMSig
downloads and prepares data bases of
Molecular Signatures
(MSig) for enrichment analysis by gene sets.
prepMSig(
species = "human",
msig_url = NULL,
abbr_species = NULL,
ortho_mart = switch(species, mouse = "mmusculus_gene_ensembl", rat =
"rnorvegicus_gene_ensembl", human = "to_itself", "unknown"),
db_path = "~/proteoQ/dbs/msig",
filename = NULL,
overwrite = FALSE
)
species |
Character string; the name of a species for the
conveninent preparation of |
msig_url |
A URL to
MSig
. At the |
abbr_species |
Two-letter character string; the abbreviated name of
species used with
org.Xx.eg.db.
The value of For analysis against
gene
ontology and Molecular
Signatures, the argument is further applied to differentiate the same
biological terms under different species; e.g., |
ortho_mart |
Character string; a dataset name from
|
db_path |
Character string; the local path for database(s). The default
is |
filename |
Character string; An output file name. At the |
overwrite |
Logical; if TRUE, overwrite the downloaded database(s). The default is FALSE. |
library(proteoQ)
## the default `MSig` is `c2.all`
# `human`; outputs under `db_path`
prepMSig()
head(readRDS(file.path("~/proteoQ/dbs/msig/msig_hs.rds")))
prnGSPA(
gset_nms = file.path("~/proteoQ/dbs/msig/msig_hs.rds"),
)
# `mouse`
prepMSig(species = mouse, filename = msig_mm.rds)
head(readRDS(file.path("~/proteoQ/dbs/msig/msig_mm.rds")))
# `rat`
prepMSig(species = rat, filename = msig_rn.rds)
head(readRDS(file.path("~/proteoQ/dbs/msig/msig_rn.rds")))
# `dog`; need `ortho_mart` for species other than `human`, `mouse` and `rat`
# (try `?biomaRt::useMart` for a list of marts)
prepMSig(
# species = dog,
abbr_species = Cf,
ortho_mart = cfamiliaris_gene_ensembl,
filename = msig_cf.rds,
)
# also `dog`
prepMSig(
species = my_dog,
abbr_species = Cf,
ortho_mart = cfamiliaris_gene_ensembl,
filename = msig_cf2.rds,
)
msig_cf <- readRDS(file.path("~/proteoQ/dbs/msig/msig_cf.rds"))
msig_cf2 <- readRDS(file.path("~/proteoQ/dbs/msig/msig_cf2.rds"))
identical(msig_cf, msig_cf2)
## use an `MSig`other than the default of `c2.all`
prepMSig(
msig_url = "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.0/c2.cgp.v7.0.entrez.gmt",
species = human,
filename = c2_cgp_hs.rds,
)
prepMSig(
msig_url = "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.0/c2.cgp.v7.0.entrez.gmt",
species = dog,
ortho_mart = cfamiliaris_gene_ensembl,
filename = c2_cgp_cf.rds,
)
## Not run:
# enrichment analysis with custom `MSig`
prnGSPA(
gset_nms = c("~/proteoQ/dbs/msig/msig_hs.rds",
"~/proteoQ/dbs/msig/msig_mm.rds"),
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.