| name | bioconductor-tdbasedufeadv |
| description | This is an advanced version of TDbasedUFE, which is a comprehensive package to perform Tensor decomposition based unsupervised feature extraction. In contrast to TDbasedUFE which can perform simple the feature selection and the multiomics analyses, this package can perform more complicated and advanced features, but they are not so popularly required. Only users who require more specific features can make use of its functionality. |
TDbasedUFEadv
Workflows
Standard Workflow
Integrate two omics datasets sharing the same features using memory-efficient SVD with partial summation.
library(TDbasedUFEadv)
library(RTCGA.rnaseq)
Cancer_cell_lines <- list(ACC.rnaseq, BLCA.rnaseq, BRCA.rnaseq, CESC.rnaseq)
Drug_and_Disease <- prepareexpDrugandDisease(Cancer_cell_lines)
expDrug <- Drug_and_Disease$expDrug
expDisease <- Drug_and_Disease$expDisease
SVD <- computeSVD(exprs(expDrug), exprs(expDisease))
Z <- t(exprs(expDrug)) %*% exprs(expDisease)
sample <- outer(
colnames(expDrug),
colnames(expDisease),
function(x, y) { paste(x, y) }
)
Z <- PrepareSummarizedExperimentTensor(
sample = sample,
feature = rownames(expDrug),
value = Z
)
Inputs are two expression matrices sharing features; output is a SummarizedExperiment-like tensor and SVD results.
Multi Omics Sharing Features
Integrate multiple omics datasets sharing the same features but having different samples using projection-based SVD and HOSVD.
library(TDbasedUFEadv)
library(RTCGA.rnaseq)
library(RTCGA.clinical)
Multi <- list(
BLCA.rnaseq[seq_len(100), 1 + seq_len(1000)],
BRCA.rnaseq[seq_len(100), 1 + seq_len(1000)],
CESC.rnaseq[seq_len(100), 1 + seq_len(1000)],
COAD.rnaseq[seq_len(100),
Z prepareTensorfromListMulti
Z apermZ
Clinical BLCA.clinical BRCA.clinical CESC.clinical COAD.clinical
Multi_sample
BLCA.rnaseq drop
BRCA.rnaseq drop
CESC.rnaseq drop
COAD.rnaseq drop
ID_column_of_Multi_sample
ID_column_of_Clinical
Z PrepareSummarizedExperimentTensor
feature colnamesACC.rnaseq
sample array
value Z
sampleData prepareCondTCGA
Multi_sample
Clinical
ID_column_of_Multi_sample
ID_column_of_Clinical
HOSVD computeHosvdZ
cond Z
index selectFeatureProjHOSVD Multi cond de input_all
headtableFeaturesZ index
Inputs are a list of matrices sharing features and clinical metadata; output is a table of selected features with p-values.
Multi Omics Sharing Samples
Integrate multiple omics datasets sharing the same samples using projection-based SVD and HOSVD.
library(TDbasedUFEadv)
Inputs are multi-omics matrices sharing samples; output is a table of selected features.
When to Use
- Unsupervised feature extraction (e.g., gene selection) from multi-omics datasets where either features (genes) or samples are shared.
- When dealing with a small number of samples associated with a large number of features (common in genomics).
- Evaluating selected genes via enrichment analysis using tools like
enrichR::enrichr, STRINGdb::STRINGdb, or DOSE::enrichDGN.
When NOT to Use
- For supervised differential expression analysis where group labels are strictly used to guide the mathematical decomposition; use
DESeq2 or limma instead.
- When you prefer a fully automated, non-interactive pipeline without manual/interactive selection of singular value vectors; use standard
SVD or HOSVD packages directly.
Data Requirements
- Input data should be matrix-like (e.g., gene expression matrices from
RTCGA.rnaseq like BLCA.rnaseq).
- For feature-sharing multi-omics, a list of matrices (e.g.,
Multi) where rows represent features and columns represent samples.
- Metadata/clinical data (e.g.,
BLCA.clinical) to construct condition vectors for selecting singular value vectors.
Key Parameters
- de (1e-3): Standard deviation threshold for feature selection in
selectFeatureProj or selectFeature.
- input_all: Vector of selected singular value vectors in
selectSingularValueVectorLarge or selectFeatureProj.
Best Practices
- Master the basic
TDbasedUFE package workflows before moving to the advanced features of TDbasedUFEadv.
- Use memory-efficient SVD with partial summation (
computeSVD) when the number of features is too large to construct a full tensor.
- Verify the success of singular value vector selection interactively using histograms and standard deviation optimization via
selectSingularValueVectorLarge.
- Perform downstream enrichment analysis on selected genes using
enrichR::enrichr or STRINGdb::STRINGdb to biologically validate the unsupervised feature selection.
Common Pitfalls
- Out of memory errors: Attempting to apply
computeHosvd on a full tensor with too many features. Fix: Use computeSVD with partial summation to reduce memory requirements.
- Incorrect tensor permutation: Forgetting to align features across datasets. Fix: Use
aperm to permute the tensor modes appropriately before wrapping with PrepareSummarizedExperimentTensor.
Alternatives
DESeq2: For supervised differential expression analysis.
limma: For linear modeling of gene expression data.
TDbasedUFE: For simpler, standard unsupervised feature extraction workflows.
Citations
- Taguchi, Y-H. 2020. Unsupervised Feature Extraction Applied to Bioinformatics. Springer International Publishing. https://doi.org/10.1007/978-3-030-22456-1
- Taguchi, Y-H. 2023. TDbasedUFE: Tensor Decomposition Based Unsupervised Feature Extraction.
References