Skip to contents

This function calculates the average gene expression for each patient across different cell types. It first retrieves patient data from LN, then extracts the corresponding count data from LrawcountsByPatient, and calculates the mean expression.

Usage

compute_average_expression(LN, LrawcountsByPatient)

Arguments

LN

A list where each element represents a cell type with sublists containing patient data.

LrawcountsByPatient

A named list where each element contains count data for a specific patient.

Value

A named vector containing the average expression for each patient.