Fit a regression model
BuildModel.Rd
Learn a model that maps between the space of cell abundances and correlations
Arguments
- output
ConDecon object with low dimensional embedding of distributions of cell abundances and correlations
- degree
degree of the polynomial regression model (default = 1)
Examples
data(counts_gps)
data(latent_gps)
data(variable_genes_gps)
data(bulk_gps)
# For this example, we will reduce the training size to max.iter = 50 to reduce run time
TrainingSet = BuildTrainingSet(count = counts_gps, latent = latent_gps, max.iter = 50)
ConDecon_obj = Map2Latent(TrainingSet = TrainingSet, latent = latent_gps, count = counts_gps,
bulk = bulk_gps, variable.features = variable_genes_gps)
ConDecon_obj = BuildModel(ConDecon_obj)