• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command-line tool for the visualization of splicing events across multiple samples

ggsashimi

Build Status

Command-line tool for the visualization of splicing events across multiple samples

Installation
โ€‚ Dependencies
โ€‚ Download docker image
โ€‚ Build docker image
โ€‚ Use docker image
Usage
Galaxy
Cite ggsashimi

image

Installation

The ggsashimi script can be directly downloaded from this repository:

wget https://raw.githubusercontent.com/guigolab/ggsashimi/master/ggsashimi.py

Change the execution permissions:

chmod u+x ggsashimi.py

Provided all dependencies are already installed (see below), you can directly execute the script:

./ggsashimi.py --help

To download the entire repository, which includes the dockerfile and example files:

git clone https://github.com/guigolab/ggsashimi.git

Dependencies

In order to run ggsashimi the following software components and packages are required:

  • python (2.7 or 3)
  • pysam (>=0.10.0)
  • R (>=3.3)
    • ggplot2 (>=2.2.1)
    • data.table (>=1.10.4)
    • gridExtra (>=2.2.1)

Additional required R packages grid and gtable should be automatically installed when installing R and ggplot2, respectively. Package svglite (>=1.2.1) is also required when generating output images in SVG format.

To avoid dependencies issues, the script is also available through a docker image.

Download docker image

A public ggsashimi Docker image is available in the Docker Hub and can be downloaded as follows:

docker pull guigolab/ggsashimi

Alternatively, we provide the Dockerfile if you want to build your local docker image, although most users will not need it.

Build docker image (optional)

After downloading the repository, move inside the repository folder:

cd ggsashimi

To build the docker image run the following command:

docker build -f docker/Dockerfile -t guigolab/ggsashimi .

This can take several minutes.

Use docker image

Once the image is downloaded or built, to execute ggsashimi with docker:

docker run guigolab/ggsashimi --help

Because the image is used in a docker container which has its own file system, to use the program with local files, a host data volume needs to be mounted.

As an example, you can run this command from the main repository folder:

docker run -w $PWD -v $PWD:$PWD guigolab/ggsashimi -b examples/input_bams.tsv -c chr10:27040584-27048100

The '-w' option sets the working directory inside the container to the current directory. The '-v' option mounts the current working directory and all child folders inside the container to the same path (host_path:container_path).

If your files are in another folder, for example the annotation file is stored in a different folder then the one containing the bam file, you can mount extra folders like this:

f="$DIR/annotation.gtf"
docker run -w $PWD -v $PWD:$PWD -v $DIR:$DIR guigolab/ggsashimi -b examples/input_bams.tsv -c chr10:27040584-27048100 -g $f

You can even mount a single file:

docker run -w $PWD -v $PWD:$PWD -v $f:$f guigolab/ggsashimi -b examples/input_bams.tsv -c chr10:27040584-27048100 -g $f

Usage

Execute the script with --help option for a complete list of options. Sample data and usage examples can be found at examples

Debug mode

Debug mode allows to run ggsashimi without producing any graphical output. It creates an Rscript file in the current working folder, containing all the R commands to generate the plot. It can be useful when reporting bugs or trying to debug the program behavior. Debug mode can be enabled by setting the environment variable GGSASHIMI_DEBUG when running the script, e.g.:

# export the environment variable
$ export GGSASHIMI_DEBUG=yes
$ ggsashimi.py -b ...

or

# set the environment variable inline
$ GGSASHIMI_DEBUG=yes ggsashimi.py -b ...

Galaxy

Thanks to ARTbio, now a Galaxy wrapper for ggsashimi is available at the Galaxy ToolShed.

Cite ggsashimi

If you find ggsashimi useful in your research please cite the related publication:

Garrido-Martรญn, D., Palumbo, E., Guigรณ, R., & Breschi, A. (2018). ggsashimi: Sashimi plot revised for browser-and annotation-independent splicing visualization. PLoS computational biology, 14(8), e1006360.

More Repositories

1

grape-nf

An automated RNA-seq pipeline using Nextflow
Nextflow
36
star
2

FA-nf

Functional annotation pipeline for proteins from non-model organisms implemented in Nextflow
Perl
17
star
3

bamstats

A command line tool to compute mapping statistics from a BAM file
Go
17
star
4

geneidx

Nextflow pipeline for genome annotation of protein-coding genes
Nextflow
16
star
5

chip-nf

An automated ChIP-seq pipeline using Nextfow
Nextflow
16
star
6

LyRic

Long RNA-seq analysis workflow
Python
13
star
7

geneid

Predict genic elements as splice sites, exons or genes, along eukaryotic DNA sequences
C
13
star
8

tmerge

Merge transcriptome read-to-genome alignments into non-redundant transcript models
Perl
12
star
9

CRISPETA

A really flexible tool to obtain CRISPR paired gRNAs on desired regions of a genome
Python
9
star
10

sQTLseekeR2

R package to detect splicing QTLs (sQTLs)
R
8
star
11

ipsa-nf

Integrative Pipeline for Splicing Analyses (IPSA) in Nextflow
Perl
7
star
12

sqtlseeker2-nf

An automated sQTL mapping pipeline using Nextflow
R
5
star
13

biogenome-portal

Biogenome data portal
Vue
4
star
14

sambamBench-nf

A simple Nextflow pipeline for testing the performance of sambamba vs samtools
Nextflow
3
star
15

DeepFryer

DeepFryer - Deep Learning Framework for Your Expression RNA-seq data
Python
3
star
16

jbrowse-plugin-refget-api

A JBrowse 2 plugin to access servers implementing the refget API of GA4GH
TypeScript
2
star
17

pb_gen

Process PacBio Sequel and Sequel II subread BAMs into CCS FASTQ files
Python
1
star
18

gencode-cls-master-table

Results of the GENCODE pipeline to produce a collection of full length high quality transcripts
1
star