Skip to content

bioc/rifiComparative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RifiComparative

About

RifiComparative is a workflow for a comparative data, output of Rifi framework (https://github.com/CyanolabFreiburg/rifi). RifiComparative compares two outputs from 2 different conditions of the same organism. The rifi outputs are different from one condition to other depending on the transcriptome regulation. We end up with segments with different length, position and events making a direct comparative of 2 conditions nearly impossible (Figure. 1). To solve this issue, we come up with a strategy (Figure. 2). The data from both conditions are gathered together and a segmentation of half-life and mRNA at time 0 of both conditions is applied. The absolute value of half-life difference at probe level is used as input for half-life segmentation on one hand and the fold-change of mRNA at time 0 is used as input for segmentation of intensity on other hand. Differently to rifi, no hierarchy is applied (Figure. 3). As for rifi, a sub-set of the data is trained preliminary to get the best set of penalties and for segmentation usage. After segmentation, the fragments are statistically tested and a p_value is assigned. To make a consistent comparison the fragments from half-life and mRNA at time 0 are adjusted to each other. We end-up with a single fragment length for both parameters (Figure. 4). Each fragment has the corresponding annotation on the genome. The half-life, intensity fragments, the TUs from each condition, events as termination and iTSS_II and the genome annotation could be plotted (Figure. 5). The package provides a serie of plots to facilitate the analysis. Figure. 6 and 7 show decay rate versus synthesis rate. Some points of interest could be colored or labeled using the segment annotation.


Figure 1: 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.


Figure 2: Segments output of Rifi. The segments are very different making the comparison nearly impossible.


Figure 3: 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.


Figure 4: 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.


drawing

Figure 5: 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.


drawing

Figure 6: 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.

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:

if (!requireNamespace("BiocManager", quietly=TRUE))
    install.packages("BiocManager")
    
BiocManager::install("rifiComparative")

To install directly from github:

install_github('rifiComparative')

Troubleshooting

contact lyoussar@gmail.com or create an issue

About

This is a read-only mirror of the git repos at https://bioconductor.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published