| EventCoverage | R Documentation |
This function analyzes event coverage across Z-score thresholds and generates visualizations to compare positive and negative control samples. It calculates the proportion of readouts that exceed different Z-score thresholds for each gene, creating the foundation for zeta score calculations.
EventCoverage(ZscoreVal, negGene, posGene, binNum, combine = TRUE)
ZscoreVal |
A matrix of Z-scores where rows represent genes and columns represent readouts/conditions. This is typically the output from the Zscore() function. |
negGene |
A data frame or matrix containing negative control gene/siRNA identifiers. The first column should contain gene/siRNA names that match the row names in ZscoreVal. |
posGene |
A data frame or matrix containing positive control gene/siRNA identifiers. The first column should contain gene/siRNA names that match the row names in ZscoreVal. |
binNum |
The number of bins to divide the Z-score range. Recommended value is 100. The function creates Z-score thresholds from the 0.00001 to 0.99999 quantiles of the data. |
combine |
Logical. Whether to combine the negative and positive Z-score ranges. Default is TRUE. When TRUE, uses symmetric ranges around zero; when FALSE, uses separate ranges for negative and positive values. |
The function performs the following steps:
Determines Z-score thresholds based on data quantiles and binNum
For each gene and threshold, calculates the proportion of readouts that exceed (increase) or fall below (decrease) the threshold
Separates data into negative and positive control groups
Generates jitter plots comparing event coverage between control groups
Returns both data matrices and visualization plots
The event coverage matrices can be used as input for SVM analysis and zeta score calculations.
A list containing two sublists:
ECdataList |
A list with the following components:
|
ECplotList |
A list with two ggplot objects:
|
Yajing Hao, Shuyang Zhang, Junhui Li, Guofeng Zhao, Xiang-Dong Fu
data(countMat)
data(negGene)
data(posGene)
ZscoreVal <- Zscore(countMat, negGene)
ECList <- EventCoverage(ZscoreVal, negGene, posGene, binNum=100, combine=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.