View source: R/alex.prep.lsn.expr.R
| alex.prep.lsn.expr | R Documentation |
Prepares matched gene-level lesion and expression data matrices for use with
KW.hit.express, which performs Kruskal-Wallis tests to assess
associations between genomic lesion groups and gene expression levels.
alex.prep.lsn.expr(
expr.mtx,
lsn.data,
gene.annotation,
min.expr = NULL,
min.pts.lsn = NULL
)
expr.mtx |
A data frame containing normalized gene expression data with
genes in rows and subjects in columns. The first column must be named
|
lsn.data |
A data frame containing genomic lesion data in GRIN-compatible
format. It must contain the columns |
gene.annotation |
A gene annotation data frame, either supplied by the
user or retrieved using |
min.expr |
Optional numeric value specifying the minimum total expression
required for a gene to be retained. Total expression is calculated as the sum
of expression values across the matched subjects. If |
min.pts.lsn |
Optional numeric value specifying the minimum number of
subjects with at least one genomic lesion affecting a gene for that gene to
be retained. If |
Genomic lesions are first mapped to genes using
prep.gene.lsn.data and find.gene.lsn.overlaps.
The resulting gene-lesion overlaps are then converted to a gene-by-subject
lesion-type matrix using prep.lsn.type.matrix.
Only subjects represented in both the lesion and expression datasets are
retained. Genes may additionally be filtered according to min.expr
and min.pts.lsn. The lesion and expression matrices are subsequently
restricted to their shared set of genes and ordered identically by Ensembl
gene ID and subject ID.
The resulting matched matrices can be supplied directly to
KW.hit.express for lesion-expression association analysis.
A list with the following components:
alex.expr |
A numeric matrix of gene expression data with Ensembl gene IDs as row names and subject IDs as column names. |
alex.lsn |
A data frame containing lesion groups for the same genes and
subjects and in the same order as |
alex.row.mtch |
A data frame containing the matched Ensembl gene IDs from the expression and lesion matrices. |
Abdelrahman Elsayed abdelrahman.elsayed@stjude.org, Stanley Pounds stanley.pounds@stjude.org
Cao, X., Elsayed, A. H., & Pounds, S. B. (2023). Statistical Methods Inspired by Challenges in Pediatric Cancer Multi-omics.
KW.hit.express,
prep.gene.lsn.data,
find.gene.lsn.overlaps,
prep.lsn.type.matrix,
get.ensembl.annotation
data(expr_data)
data(lesion_data)
data(hg38_gene_annotation)
# Prepare matched lesion and expression data
alex.data <- alex.prep.lsn.expr(expr_data,
lesion_data,
hg38_gene_annotation,
min.expr = 1,
min.pts.lsn = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.