Name Mode Size
R 040000
data 040000
inst 040000
man 040000
vignettes 040000
.BBSoptions 100644 0 kb
.Rbuildignore 100644 0 kb
.gitignore 100644 1 kb
.man 100644 2 kb
DESCRIPTION 100644 2 kb
LICENSE 100644 1 kb
NAMESPACE 100644 2 kb
NEWS 100644 1 kb 100644 7 kb
# RifiComparative ## About RifiComparative is a workflow designed for comparative analysis of data generated by the Rifi framework ( It addresses the challenge of comparing outputs from two different conditions of the same organism, where the transcriptome regulation leads to variations in the Rifi outputs. These variations result in segments with different lengths, positions, and events, making a direct comparison between the two conditions difficult (Figure 1). To overcome this issue, we have developed a strategy (Figure 2). The data from both conditions are combined, and a segmentation approach is applied to determine the half-life and mRNA at time 0 segments for each condition. The absolute value of the half-life difference at the probe level serves as input for segmenting the half-life, while the fold-change of mRNA at time 0 is used for segmenting the intensity. Unlike Rifi, no hierarchical segmentation is employed (Figure 3). Prior to segmentation, a subset of the data is trained to optimize the penalty parameters and ensure the best segmentation results. After segmentation, the fragments are subjected to statistical testing, and a p-value is assigned. To enable a meaningful comparison, the fragments from the half-life and mRNA at time 0 segments are adjusted to align with each other, resulting in fragments of equal length for both parameters (Figure 4). Each fragment corresponds to a specific annotation on the genome. The package provides the capability to plot the half-life and intensity fragments, transcription units (TUs) from each condition, termination events, iTSS_II events, and genome annotations (Figure 5). Furthermore, a series of additional plots are included to facilitate the analysis. For instance, Figure 6 and 7 display decay rate versus synthesis rate, with the option to highlight or label points of interest using the segment annotation. RifiComparative offers a comprehensive workflow for comparative analysis of Rifi data, allowing for improved comparisons between different conditions of the same organism. The package provides various visualization tools to aid in the interpretation and exploration of the results. <br/> <p align="center"> <img src=""/> </p> <sub> <b>Figure 1:</b> rifi Comparative workflow. Four major steps are depicted. 1) Gathering the data from two conditions, 2) penalties set, 3) segmentation, 4) adjusting the fragments to each other, 5) genome visualization together with the fragment. </sub> <br/> <p align="center"> <img src=""/> </p> <sub> <b>Figure 2:</b> Segments output of Rifi. The segments are very different making the comparison nearly impossible. </sub> <br/> <p align="center"> <img src=""/> </p> <sub> <b> Figure 3:</b> Half-life difference. Difference between Half-life from both conditions is calculated by bin or probe (distance = abs(diff(half-life(cdt 1)(Pi) - half-life(cdt 2)(Pi)))). cdt = condition and Pi = position i. </sub> <br/> <p align="center"> <img src=""/> </p> <sub> <b> Figure 4:</b> Adjusting half-life and intensity to each other. The adjustment was applied only if at least one fragment has a significant p_value. Numbers are just fragments indicator.</sub> <br/> <p align="center"> <img src="" alt="drawing" width="400"/> </p> <sub> <b> Figure 5:</b> Plot changes in RNA decay rates (log fold, x-axis) versus the changes in RNA synthesis rates (log fold, y-axis) in the condition 1 versus condition 2. The black lines horizontal, vertical and diagonal are the median of synthesis_rate, decay_rate and mRNA at time 0 respectively. Dashed gray lines indicate 0.5-fold changes from 0 (gray lines) referring to unchanged fold. The points highlighted with yellow color show a decay rate \>= .5 and synthesis rate \<= -.5. </sub> <br/> <p align="center"> <img src="" alt="drawing" width="600"/> </p> <sub> <b> Figure 6:</b> Plot of the changes in RNA decay rates (log fold, x-axis) versus the changes in RNA synthesis rates (log fold, y-axis) in the condition 1 versus condition 2. The coloring indicates the local point density. </sub> # Installation ### Dependencies RifiComparative package only available for Unix systems and has the following dependencies. Make sure the requirements are satisfied by your system. [devtools](\>= 2.4.3) [roxygen2](\>= 7.1.2) [SummarizedExperiment](\>= 1.24.0) [dplyr]( (\>= 0.7.8) [LSD]( (\>= 1.3.0) [ggplot2]( (\>= 3.3.5) [writexl]( (\>= 1.4.0) [egg]( (\>= 0.4.1) [data.table]( (\>= 0.8.7) [ggrepel]( (\>= 0.9.1) [stats]( (\>= 3.6.2) [grid]( (\>= 3.6.2) [rtracklayer]( (\>= 1.32.1) [reshape2]( (\>= 1.4.4) [utils]( (\>= 3.6.2) [DTA](\>= 2.18.0) [cowplot](\>= 1.1.1) [doMC]( (\>= 1.3.7) [parallel]( (\>= 3.6.2) [graphics]( (\>= 3.6.2) [stats]( (\>= 3.6.2) [stringr]( (\>= 1.4.0) [grDevices]( (\>= 3.6.2) [tibble]( (\>= 3.1.6) [methods]( (\>= 3.6.2) ### To install from Bioconductor, use the following code: ``` html if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager") BiocManager::install("rifiComparative") ``` ### To install directly from github: ``` html install_github('rifiComparative') ``` # Troubleshooting contact [lyoussar\]( or create an issue