Extracts and combines gene expression data from a complex API response, with proper formatting and metadata association.

extract_expression_data(parsed_content, as_counts = TRUE)

Arguments

parsed_content

The parsed API response list

as_counts

Logical, if FALSE, transforms the predicted expression counts into logCPM (default is TRUE, returning raw counts).

Value

A list with two components: - metadata: tibble containing sample metadata - expression: tibble containing combined gene expression data