extract_ligands_from_settings: Extract ligands of interest from settings

View source: R/evaluate_model_target_prediction.R

extract_ligands_from_settingsR Documentation

Extract ligands of interest from settings

Description

extract_ligands_from_settings Extract ligands of interest from (expression) settings in correct to construct the ligand-target matrix.

Usage

extract_ligands_from_settings(settings,combination = TRUE)

Arguments

settings

A list of lists for which each sub-list contains the information about (expression) datasets; with minimally the following elements: name of the setting ($name), ligands (possibly) active in the setting of interest ($from).

combination

Indicate whether in case multiple ligands are possibly active ligand combinations should be extracted or only individual ligands. Default: TRUE.

Value

A list containing the ligands and ligands combinations for which a ligand-target matrix should be constructed. When for a particular dataset multiple ligands are possibly active (i.e. more than ligand in .$from slot of sublist of settings), then both the combination of these multiple ligands and each of these multiple ligands individually will be select for model construction.

Examples

## Not run: 
ligands = extract_ligands_from_settings(expression_settings_validation)

## End(Not run)

saeyslab/nichenetr documentation built on March 26, 2024, 9:22 a.m.