| prob.hits | R Documentation |
Computes the probability that each genomic locus, such as a gene or regulatory region, is affected by one or more types of genomic lesions. Statistical significance for lesion enrichment is estimated using a convolution of independent but non-identically distributed Bernoulli probabilities.
prob.hits(hit.cnt, chr.size = NULL)
hit.cnt |
A list returned by |
chr.size |
A
|
For each lesion type and chromosome, the function calculates the probability that each lesion overlaps each affected locus according to the relative sizes of the lesion, locus, and chromosome. These probabilities are combined across lesions and subjects using the Poisson-binomial distribution to estimate the probability of observing the recorded number of lesions or affected subjects by chance.
For lesion types not designated for exon-level analysis, locus size is
calculated using the complete genomic boundaries in gene.data, and
chromosome length is obtained from chr.size.
For lesion types designated for exon-level analysis, the function instead
uses the total annotated exon size of each gene and the total annotated exon
target size of the corresponding chromosome. Lesion types specified in
exon_level must therefore contain only exonic lesions. For example, when
mutations are analyzed at the exon level, exonic variants such as missense,
nonsense, frameshift, and synonymous mutations may be included, whereas
intronic and other non-coding mutations should be excluded before running
the analysis.
The exon-level specification and target sizes are carried through the GRIN
workflow within hit.cnt; users therefore specify the exon-level lesion
types only once when calling prep.gene.lsn.data().
Genes without a valid matching exon annotation remain in analyses of lesion
types that use standard genomic coordinates. For lesion types designated for
exon-level analysis, their lesion-specific p-values and q-values are returned
as NA. Ordered constellation statistics are also returned as NA for
genes that do not have a complete set of lesion-specific probabilities.
The function calculates lesion-specific p-values for:
The probability of observing the recorded number of unique subjects with at least one lesion affecting the locus.
The probability of observing the recorded total number of lesions affecting the locus.
False discovery rate-adjusted q-values are calculated using the method of Pounds and Cheng. When more than one lesion type is present, the function also calculates ordered p- and q-values representing constellations of one or more lesion types affecting the same locus.
A list containing the following components:
A data.frame containing locus annotations; the numbers
of lesion hits and affected subjects by lesion type; lesion-specific
p-values and q-values for hit counts (p.nhit.* and q.nhit.*) and
affected-subject counts (p.nsubj.* and q.nsubj.*); and, when multiple
lesion types are present, ordered constellation p-values and q-values
(p1.nhit, p2.nhit, ..., q1.nhit, q2.nhit, ... and the
corresponding nsubj columns).
Processed input lesion data.
Processed input gene annotation data.
A data.frame in which each row represents a locus
overlapped by a genomic lesion.
Chromosome size information used for standard chromosome-level calculations.
A data.frame indexing loci by chromosome.
A data.frame indexing lesion groups by lesion type,
chromosome, and subject.
A numeric vector containing the exon target size for
each gene. Genes without a valid matching exon annotation have a value of
NA; exon-level probability calculations are not performed for those
genes. Returns NULL when exon-level analysis was not requested.
A data.frame containing the genome-wide annotated
exon target size for each chromosome. These values provide the
chromosome-level exonic search space used for lesion types designated for
exon-level analysis. Returns NULL when exon-level analysis was not
requested.
A character vector specifying the lesion types evaluated
using exon-level target sizes. Returns NULL when exon-level analysis was
not requested.
Abdelrahman Elsayed abdelrahman.elsayed@stjude.org and Stanley Pounds stanley.pounds@stjude.org
Pounds, S., et al. (2013). A genomic random interval model for statistical analysis of genomic lesion data.
Pounds, S., and Cheng, C. (2006). Robust estimation of the false discovery rate.
Cao, X., Elsayed, A. H., & Pounds, S. B. (2023). Statistical Methods Inspired by Challenges in Pediatric Cancer Multi-omics.
prep.gene.lsn.data,
find.gene.lsn.overlaps,
count.hits
data(lesion_data)
data(hg38_gene_annotation)
data(hg38_chrom_size)
data(example_exon_annotation)
data(hg38_exon_chrom_size)
# 1) Prepare gene and lesion data using the optional arguments
# for exon-level analysis
prep.gene.lsn <- prep.gene.lsn.data(
lsn.data = lesion_data,
gene.data = hg38_gene_annotation,
exons.annotation = example_exon_annotation,
exon.chrom.size = hg38_exon_chrom_size,
exon_level = "mutation"
)
# 2) Identify overlapping gene-lesion events
gene.lsn.overlap <- find.gene.lsn.overlaps(prep.gene.lsn)
# 3) Count subjects and lesions affecting each gene
count.nsubj.nhits <- count.hits(gene.lsn.overlap)
# 4) Compute p- and q-values for lesion enrichment
hits.prob <- prob.hits(count.nsubj.nhits, hg38_chrom_size)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.