Skip to content

Code to create figures for the CPEB4 manuscript (10.1186/s13059-022-02760-5).

License

Notifications You must be signed in to change notification settings

slebedeva/CPEB4_public

Repository files navigation

CPEB4_public

Code for CLIP data analysis for the paper Control of immediate early gene expression by CPEB4-repressor complex-mediated mRNA degradation by Poetz, Lebedeva et al., Genome Biology, 2022

If you would like to reproduce figures from the processed data

First, look into config.yml. It should work with default values. However if you have, for example, the hg19 genome you can change the path to it to shorten the runtime and to avoid downloading it again. You can also specify custom paths to the plots and results folders. Default paths are relative to the directory where manuscript_figures.R is.

Next, get the R container and install relevant packages (if you do not have an R installation already).

Presuming that you have no root access and are on linux:

  1. Install miniconda3: follow the instructions for your system.

You will need to download and run a bash installation script.

bash Miniconda3-latest-Linux-x86_64.sh

  1. Install singularity in a conda environment and activate it
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"
conda create --name singularity singularity=3.7.1
conda activate singularity

Next steps are done within singularity conda environment:

  1. Pull the latest R bioconductor container

singularity pull bioc.sif docker://bioconductor/bioconductor_docker:devel

  1. Install the necessary packages

singularity exec bioc.sif Rscript install_packages.R

  1. Run the script to produce figures

(It requires memory and time to run.)

singularity exec bioc.sif Rscript manuscript_figures.R

Explanations for directories:

Directory data:

Contains the data encessary to run main R scripts, including bam and bed files of CPEB4 CLIP that result from the mapping pipeline and omniCLIP.

Directory scripts:

Auxiliary R scripts (they should be called from within manuscript_figures.R).

Main directory:

R code to to create figures: manuscript_figures.R.

The script should produce a "plots" folder with pdf images of raw figure panels as well as "results" folder with the R objects and "source_data" subfolder with the csv files that were used for plots.


If you want to look into analysis of the raw CLIP sequencing data

Directory mapping_pipeline

Contains the pipelines used for mapping 1) p32 and 2) ir CPEB4 CLIP data as well as conda environment file with software version specifications.

Directory omniCLIP_scripts

Contains the scripts used to run omniCLIP on CPEB4 data as well as multiple published HeLa CLIP data. The omniCLIP version used for this, as well as scripts to generate the database are in this omniCLIP fork. The general pipeline to map any CLIP data is in this repository.


Detailed wet lab protocol for infrared PAR-CLIP can be found here.

About

Code to create figures for the CPEB4 manuscript (10.1186/s13059-022-02760-5).

Resources

License

Stars

Watchers

Forks

Packages

No packages published