convert_expression_settings_evaluation: Convert expression settings to correct settings format for...

View source: R/evaluate_model_target_prediction.R

convert_expression_settings_evaluationR Documentation

Convert expression settings to correct settings format for evaluation of target gene prediction.

Description

convert_expression_settings_evaluation Converts expression settings to correct settings format for evaluation of target gene prediction.

Usage

convert_expression_settings_evaluation(setting)

Arguments

setting

A list containing the following elements: .$name: name of the setting; .$from: name(s) of the ligand(s) active in the setting of interest; .$diffexp: data frame or tibble containing at least 3 variables= $gene, $lfc (log fold change treated vs untreated) and $qval (fdr-corrected p-value)

Value

A list with following elements: $name, $from, $response. $response will be a gene-named logical vector indicating whether the gene's transcription was influenced by the active ligand(s) in the setting of interest.

Examples

## Not run: 
settings = lapply(expression_settings_validation,convert_expression_settings_evaluation)

## End(Not run)

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