Learn R Programming

nichenetr (version 0.1.0)

extract_ligands_from_settings: 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

Run this code
# NOT RUN {
ligands = extract_ligands_from_settings(expression_settings_validation)
# }

Run the code above in your browser using DataLab