View source: R/grin.stats.lsn.plot.R
| grin.stats.lsn.plot | R Documentation |
Generates a regional plot showing genomic lesions overlapping a selected feature together with its GRIN statistics. This function is particularly designed for regulatory and other genomic features that do not have transcript or exon structure to display.
grin.stats.lsn.plot(grin.res,
feature = NULL,
lsn.clrs = NULL,
expand = 0.0005)
grin.res |
GRIN results for genes, regulatory elements, or other
genomic features, as returned by the |
feature |
Character string specifying the feature of interest. This is
typically an Ensembl regulatory feature ID or another regulatory-region
identifier used as marker input to |
lsn.clrs |
A named vector of colors assigned to lesion types. If
|
expand |
Numeric; proportion of the feature length added upstream and
downstream to define the plotting region. Default is |
This function provides a regional visualization of lesions and GRIN statistics without displaying transcript or exon structure. It is therefore particularly useful for regulatory features, such as promoters, enhancers, CTCF binding sites, open chromatin regions, or other genomic elements for which a transcript panel is not applicable.
Genes can also be plotted with this function when only the lesion
distribution and GRIN statistics are needed. However, for gene-centered
visualization that includes transcript and exon structure,
lsn.transcripts.plot is generally more informative.
The plot contains a regional lesion panel followed by statistical summaries:
The upper panel displays individual genomic lesions overlapping the selected feature. Each row represents one overlapping lesion event, and lesions are colored according to lesion type. Dashed vertical lines mark the start and end coordinates of the selected feature.
The first statistical summary reports, for each lesion type, the
number of affected subjects together with the corresponding
-\log_{10}(p) and -\log_{10}(q) values from the GRIN
lesion-recurrence analysis.
The second statistical summary reports the constellation
-\log_{10}(p) and -\log_{10}(q) values across lesion orders
evaluated by GRIN.
Generates a regional lesion and GRIN statistics plot on the active graphics
device and invisibly returns NULL. No transcript or exon annotation panel
is included.
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.
grin.stats,
lsn.transcripts.plot,
default.grin.colors
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)
# Plot lesions and GRIN statistics for a gene without displaying
# transcript or exon structure
grin.stats.lsn.plot(grin.results,
feature = "ENSG00000184937")
# This function is particularly useful when regulatory elements or other
# non-transcript genomic features are used as marker input to grin.stats.
# For gene-centered plots that include transcript and exon annotation,
# use lsn.transcripts.plot().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.