Skip to contents

Forest fitting

Fit directed multivariate random forests across omics blocks, discover optimal connections, and compute out-of-bag quantities.

fit_forest() fit_multi_forest() fit_rfsrc() fit_multi_rfsrc()
Fit random forest model and create model lists
fit_sub_mrf()
Fit an ensemble of sub-sampled MRF models for a single connection
fit_sub_multi_rfsrc()
Fit sub-MRF ensemble for a multi-omics connection list
find_connection()
Find optimal directional connections from fitted RF models
filter_omics()
Filter multi-omics feature blocks before RF fitting
compute_oob_forest_wt()
Compute OOB forest weight matrix
get_oob_nmse()
OOB normalized MSE for a fitted forest model

The mrf3 workflow

High-level entry points for the staged mrf3 pipeline, from initial fit to the full analysis.

mrf3()
Simplified mrf3 Entry Point
mrf3_init()
Fit an initial MRF model
mrf3_fit()
Stage-based multiRF fitting pipeline
print(<mrf3>)
Print method for mrf3 objects
print(<mrf3_fit>)
Print mrf3_fit object in compact form

Clustering

Cluster samples from learned similarity, tune the number of clusters, and score agreement between clusterings.

mrf3_cl_prox()
MRF unsupervised clustering – Proximity method
mrf3_specific_clustering()
Joint Shared/Specific Similarity Clustering Wrapper
run_cluster_pipeline()
Run Shared/Specific Clustering Pipeline
tune_k_clusters() spectral_cl() pam_cl()
Tune the number of clusters
get_clusters()
Get cluster labels
cluster_similarity_matrix()
Cluster A Similarity Matrix
cluster_shared_similarity()
Cluster Shared Similarity From Reconstruction Weights
cluster_specific_similarity()
Cluster Specific Similarities Per Omics Block
cluster_metrics()
Compute multiple clustering metrics at once
cluster_ari() cluster_jaccard() cluster_nmi() cluster_purity()
Clustering Metrics
cluster_metric_matrix()
Pairwise metric matrix across multiple clusterings

Variable selection and tuning

Select informative features per omics block and tune top-v truncation parameters.

mrf3_vs()
MRF variable selection
get_selected_vars()
Get selected variable names
get_vs_summary()
Get variable selection summary
get_top_vars()
Get top weighted variables per block
select_top_v_neff()
Select top-v from effective neighbourhood size
tune_model_top_v()
Tune model-level top-v
tune_fused_top_v()
Tune fused weight top-v truncation

Weights, IMD and reconstruction

Forest weights, intersample measure of dissimilarity (IMD), reconstruction of shared and omics-specific structure, and related print methods.

get_weights()
Get IMD weights
get_multi_weights()
Get multi-omics weights
get_imp_forest()
Get forest importance
prepare_weight_matrix() adjust_weight_matrix() truncate_top_v_rows() row_normalize_weights()
Preprocess a weight matrix for downstream steps
build_similarity_from_weights()
Build Similarity Matrix From Forest Weights
mrf3_reconstr() get_reconstr_matrix()
MRF unsupervised clustering – Reconstruction method
get_shared_specific_weights()
Build Shared/Specific Weights From Reconstruction
get_shared_frac()
Compute Shared Fraction Per Omics Block
pairwise_imd()
Pairwise IMD Analysis After Model Fitting
cluster_imd()
Compute Cluster-Specific IMD Without Pairwise IMD
print(<pairwise_imd_analysis>)
Print pairwise_imd_analysis
print(<cluster_imd>)
Print cluster_imd

Stability and summaries

Stability evaluation of a fitted pipeline, summaries, and tidy accessors for downstream analysis.

mrf3_stability()
mrf3 Stability Evaluation (No Refit)
print(<mrf3_stability>)
Print mrf3_stability
summary(<mrf3_fit>)
Summarize mrf3_fit output
print(<summary.mrf3_fit>)
Print mrf3 summary

Visualization

Embeddings and plots for similarity matrices, clusters, weights, and survival outcomes.

plot(<mrf3_fit>)
Plot an mrf3_fit object
mrf3_tsne()
compute tSNE embedding for MRF similarity matrix
plot_tsne() plot_network() plot_weights() plot_circos() plot_embed() plot_umap()
Multiple plot functions
plot_cluster_composition()
Plot cluster composition as a heatmap
plot_km()
Kaplan Meier plot

Data

Bundled TCGA BRCA example data and multi-omics simulation.

tcga_brca
TCGA BRCA Expression Data
tcga_brca_clinical
TCGA BRCA Clinical Data
simulate_intersim_shared_specific()
Simulate Shared + Specific Multi-Omics Data via InterSIM

Utilities

Accessors for components of fitted multiRF objects.

get_data()
Get data from a multiRF object
get_models()
Get fitted RF models
get_connection()
Get connection list

Deprecated

Backward-compatible aliases retained from earlier releases; use the replacements noted on each page.