Differential RNA splicing analysis with bulk RNA-seq data¶
Note
You need to install a Docker image of Shiba (and clone the Shiba GitHub repository to run SnakeShiba). If you don't have them installed, please follow the instructions in the Installation section.
Before you start¶
- Perform mapping of RNA-seq reads to the reference genome and generate bam files by software such as STAR and HISAT2.
- Download a gene annotataion file of your interest in GTF format.
Here is an example code for downloading a mouse gene annotation file (Ensembl 102):
1 2 |
|
Shiba¶
1. Prepare inputs¶
experiment.tsv
: A tab-separated text file of sample ID, path to bam files, and groups for differential analysis.
1 2 3 4 5 6 7 |
|
Please put bam files with their index files (.bai
) in the path/to/workdir/bam
directory and replace <tab>
with a tab character.
config.yaml
: A yaml file of the configuration.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
You can generate a file of splicing analysis results in excel format by setting excel
to True
.
2. Run¶
Docker:
1 2 3 4 |
|
Singularity:
1 2 3 |
|
Note
When you use Singularity, you do not need to bind any paths as it automatically binds some paths in the host system to the container. In the default configuration, the system default bind points are $HOME
, /sys:/sys
, /proc:/proc
, /tmp:/tmp
, /var/tmp:/var/tmp
, /etc/resolv.conf:/etc/resolv.conf
, /etc/passwd:/etc/passwd
, and $PWD
. If files needed to be accessed are not in these paths, you can use the --bind
option to bind the files to the container.
SnakeShiba¶
A snakemake-based workflow of Shiba. This is useful for running Shiba on a cluster. Snakemake automatically parallelizes the jobs and manages the dependencies between them.
1. Prepare inputs¶
experiment.tsv
: A tab-separated text file of sample ID, path to fastq files, and groups for differential analysis. This is the same as the input for Shiba.
config.yaml
: A yaml file of the configuration. This is the same as the configuration for Shiba but with the addition of the container
field and without the only_psi
and only_psi_group
fields as they are not supported in SnakeShiba.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
You can generate a file of splicing analysis results in excel format by setting excel
to True
.
2. Run¶
Please make sure that you have installed Snakemake and Singularity and cloned the Shiba repository on your system.
1 2 3 4 5 |
|