| Title: | Cell-Type Deconvolution of Tumor Bulk RNA-Seq Through One Function |
|---|---|
| Description: | Runs published cell-type deconvolution and cell-abundance methods for bulk RNA-seq of tumor tissue (human or mouse) through a single function, bulkdeconv(data, expr, species, method). Each method runs in a separate R process from its own isolated library at a pinned version, so methods with conflicting dependencies can coexist. Input is checked before anything runs, a registry records what each method needs and how its output can be compared, and results come back in one standard layout with metadata and quality information. Only methods that need no registration are included. Fifteen methods are implemented in the package itself. |
| Authors: | Daiki Kumakura [aut, cre] |
| Maintainer: | Daiki Kumakura <[email protected]> |
| License: | GPL-3 |
| Version: | 0.1.0 |
| Built: | 2026-11-14 14:10:56 UTC |
| Source: | https://github.com/DaikiKumakura/bulkdeconv |
Runs one published deconvolution or cell-abundance method on a gene-by-sample
table. The input layout is the one rsemverse::rsem_read() returns: the
first column holds gene symbols and every other column is one sample.
The method runs in a separate R process. External methods use the original
package at the version recorded in the registry (see bulkdeconv_install()).
bulkdeconv(data, expr, species, method, ...)bulkdeconv(data, expr, species, method, ...)
data |
A data frame whose first column is the gene symbol (character) and whose other columns are samples (numeric). A numeric matrix with gene symbols as row names is also accepted. Gene symbols must be unique and every sample must contain at least one nonzero value. |
expr |
|
species |
|
method |
A method ID; see |
... |
Method-specific options, named: |
Use bulkdeconv_methods() to check the input scale, minimum sample count
and output class. Scores from different methods can have different units.
Cohort-dependent scores are interpreted within the run.
All reference data the methods need are installed with the package.
An object of class bulkdeconv_result, a list with
score: numeric matrix, samples in rows, features in columns;
metadata: method, species, expr, options, what kind of value the
method returns (output_class) and how it can be compared
(comparability), licence, package versions, runtime;
qc: gene and sample counts, signature coverage when the method
exposes its genes, and the notes and warnings raised.
## Not run: # df: first column gene symbols, other columns samples (TPM) res <- bulkdeconv(df, expr = "tpm", species = "human", method = "quantiseq") res$score ## End(Not run)## Not run: # df: first column gene symbols, other columns samples (TPM) res <- bulkdeconv(df, expr = "tpm", species = "human", method = "quantiseq") res$score ## End(Not run)
Installs the original method packages at the versions recorded in the registry (GitHub packages at a fixed commit) into a private library, so they do not touch your normal library. Interactively it asks before installing.
bulkdeconv_install(method, lib = NULL, ask = interactive())bulkdeconv_install(method, lib = NULL, ask = interactive())
method |
One or more method IDs, or |
lib |
Library directory. Default: the first path of the option
|
ask |
Ask for confirmation first. Default: |
The default library is tools::R_user_dir("bulkdeconv", "data")
plus lib/R-<major.minor>. Set options(bulkdeconv.lib = "path") to use
another place. The packages remotes and BiocManager are needed for the
installation itself.
Invisibly, the library path used.
## Not run: bulkdeconv_install("quantiseq") bulkdeconv_install("all") ## End(Not run)## Not run: bulkdeconv_install("quantiseq") bulkdeconv_install("all") ## End(Not run)
Returns the registry: one row per method, with the species it supports, the expression scale it accepts, what it needs, how its output can be compared, its licence, and whether it is installed in the private library.
bulkdeconv_methods(species = NULL, usable = TRUE)bulkdeconv_methods(species = NULL, usable = TRUE)
species |
Optional. |
usable |
If |
A data frame with one row per method. installed is TRUE when
every package the method needs is found in the private library or in the
normal library paths.
bulkdeconv_methods() bulkdeconv_methods("mouse")[, c("method", "output_class", "installed")]bulkdeconv_methods() bulkdeconv_methods("mouse")[, c("method", "output_class", "installed")]