Casa et al. Redundant and specific roles of cohesin STAG subunits in chromatin looping and transcription control.
This repository contains the in house computational scripts in python, R and shell that were used in the study by Casa et al.: Redundant and specific roles of cohesin STAG subunits in chromatin looping and transcription control.
The scripts were tested and can be executed in Ubuntu (16.04 and 18.04) and MAC OS (10.11 - El Capitan and all further versions) environments. Furthermore this package supports all python versions >= 2.7 (Python 3.X preferred) and R >= 3.4.
If you encounter any problem on executing such scripts, please send an email to: [email protected]
This Mini-tutorial explains how to execute each particular analysis.
First, you need to have Python and R installed for most of the analyses. Most Unix and MAC distributions already have this programming languages installed. If you do not have them installed please visit:
Finally, all scripts contained in this repository are stand-alone python / R / bash scripts. This package do not need to be installed. It can be executed given your preferred method of execution of python / R / bash scripts.
Each set of scripts (given a specific analysis) has different python and R package dependencies.
Here I list all the dependencies with regard to the entire project:
-
numpy (https://numpy.org/)
-
scipy (https://www.scipy.org/)
-
pyBigWig (https://pypi.org/project/pyBigWig/)
-
VennDiagram (https://cran.r-project.org/web/packages/VennDiagram/index.html)
-
rGMAP (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6918570/)
-
hicrep (https://github.com/MonkeyLB/hicrep)
-
gplots (https://cran.r-project.org/web/packages/gplots/index.html)
-
RColorBrewer (https://cran.r-project.org/web/packages/RColorBrewer/index.html)
-
plot3D (https://cran.r-project.org/web/packages/plot3D/index.html)
-
ggplot2 (https://cran.r-project.org/web/packages/ggplot2/index.html)
-
lattice (https://cran.r-project.org/web/packages/lattice/index.html)
-
reshape (https://cran.r-project.org/web/packages/reshape/index.html)
-
reshape2 (https://cran.r-project.org/web/packages/reshape2/index.html)
-
plotrix (https://cran.r-project.org/web/packages/plotrix/index.html)
-
MASS (https://cran.r-project.org/web/packages/MASS/index.html)
-
ggthemes (https://cran.r-project.org/web/packages/ggthemes/index.html)
-
OneR (https://cran.r-project.org/web/packages/OneR/index.html)
-
scales (https://cran.r-project.org/web/packages/scales/index.html)
-
plyr (https://cran.r-project.org/web/packages/plyr/index.html)
-
ggpubr (https://cran.r-project.org/web/packages/ggpubr/index.html)
-
magick (https://cran.r-project.org/web/packages/magick/index.html)
-
samtools (http://samtools.sourceforge.net/)
-
bedtools (https://bedtools.readthedocs.io/en/latest/content/bedtools-suite.html)
-
JUICER (https://github.com/aidenlab/juicer)
-
juicertools (https://github.com/aidenlab/juicer/wiki/Download)
-
bamtools (https://github.com/pezmaster31/bamtools)
-
bowtie2 (http://bowtie-bio.sourceforge.net/bowtie2/index.shtml)
Each folder in src represents one analysis instance. They are numbered following the paper's progression for the ease of use.
Inside each folder you will find - also numbered - scripts. The number dictates the order in which the scripts were executed for that particular analysis.
In most cases you will find, for each numbered step of each numbered analysis, three scripts named:
-
[Number]_[ScriptName].sh : This script is intended only by users who wish to execute their scripts more than one time with multiple different input parameters in a SLURM environment. After setting the SLURM flags to your usage preference, this script will read the file generated by the script mentioned below in (2) line by line. Each line will contain on set of parameters and will correspond to a job submitted to the SLURM environment.
-
[Number]_run_[ScriptName].py : Since most scripts needed to be executed several times with different input parameters, this script siply perform a number of loops setting parameters and write them on the file that is going to be read by the bash cell and executed on a SLURM computational cluster environment. Alternativelly, short analysis executes the python or R script directly without the intermediary bash script for the SLURM call.
-
[Number]_[ScriptName].[py or R] : In short, this is the only script actually needed to perform any analysis. This script has its parameters described in the beginning of the scripts. This script is the main script responsible for performing the analysis in which it refers to.
For question / comments on running particular scripts, please send an email to: [email protected]
If you use this package please cite: