View source: R/genomewide.lsn.plot.R
genomewide.lsn.plot | R Documentation |
Generates a genome-wide lesion plot displaying all lesion types affecting different chromosomes.
genomewide.lsn.plot(
grin.res,
ordered = FALSE,
pt.order = NULL,
lsn.colors = NULL,
max.log10q = NULL
)
grin.res |
GRIN results (output from the |
ordered |
Logical; if |
pt.order |
A data frame with two columns: |
lsn.colors |
A named vector of colors assigned to lesion types. If not provided, colors will be automatically assigned using the |
max.log10q |
Numeric; maximum value for -log10(q-value) used in the plot. Any value greater than |
This function uses genome-wide coordinates (from compute.gw.coordinates
) to generate a three-panel plot. The middle panel shows lesions by chromosome across patients. The left panel displays the -log10(q-values) from the GRIN results for each gene, and the right panel shows the number of patients affected at each locus, color-coded by lesion type.
A genome-wide lesion plot consisting of three aligned panels:
Middle panel: genome-wide lesion map across all chromosomes and patients.
Left panel: -log10(q-values) of each locus from GRIN results showing Statistical Significance of Lesion Frequencies.
Right panel: number of affected patients at each locus, colored by lesion category.
Abdelrahman Elsayed abdelrahman.elsayed@stjude.org and 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.
compute.gw.coordinates
data(lesion_data)
data(hg38_gene_annotation)
data(hg38_chrom_size)
# Run GRIN analysis
grin.results <- grin.stats(lesion_data,
hg38_gene_annotation,
hg38_chrom_size)
# Generate genome-wide lesion plot with alphabetical patient ordering
genomewide.plot <- genomewide.lsn.plot(grin.results, max.log10q = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.