Skip to contents

Convenience wrapper that combines compute.test.set() and project_factors() into a single call. Given a trained CellTFusion() result and a test deconvolution matrix, it (1) reconstructs cell group composite scores for the test samples using the training CCA loadings, and (2) projects those scores onto the trained NMF latent space.

Usage

project_test_factors(train_processed, test_deconv)

Arguments

train_processed

A list returned by CellTFusion(), containing at minimum Processed_deconvolution, Cell_groups, and Latent_spaces.

test_deconv

A numeric matrix or data frame of deconvolution features for the test samples (samples x cell types). Column names must match those used during training.

Value

A numeric matrix (test samples x NMF factors) of non-negative projected factor scores.