Differential RNA splicing analysis with single-cell/nucleus RNA-seq data¶
Note
You need to install a Docker image of Shiba (and clone the Shiba GitHub repository to run SnakeScShiba). If you don't have them installed, please follow the instructions in the Installation section.
Before you start¶
- Perform mapping of sc(sn)RNA-seq reads to the reference genome using STARsolo.
- 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 |
|
scShiba¶
1. Prepare inputs¶
experiment.tsv
: A tab-separated text file of barcode file and STAR solo raw output directory.
1 2 3 4 5 |
|
barcodes.tsv
is a tab-separated text file of barcode and group name like this:
1 2 3 4 5 6 7 8 9 10 |
|
Please 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 |
|
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.
SnakeScShiba¶
A snakemake-based workflow of scShiba. This is useful for running scShiba 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 scShiba.
config.yaml
: A yaml file of the configuration. This is the same as the input for scShiba but with the addition of the container
field.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
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 |
|