SplAdder, short for Splicing Adder, is a toolbox for alternative splicing analysis based on RNA-Seq alignment data. The software takes a given annotation and RNA-Seq read alignments in standardized formats, transforms the annotation into a splicing graph representation, augments the splicing graph with additional information extracted from the read data, extracts alternative splicing events from the graph and quantifies the events based on the alignment data. The quantified events can then be used for differential analysis.
Allocate an interactive session and run the program.
Sample session (user input in bold):
[user@biowulf]$ sinteractive
salloc.exe: Pending job allocation 46116226
salloc.exe: job 46116226 queued and waiting for resources
salloc.exe: job 46116226 has been allocated resources
salloc.exe: Granted job allocation 46116226
salloc.exe: Waiting for resource configuration
salloc.exe: Nodes cn3144 are ready for job
[user@cn3144 ~]$ module load spladder
[user@cn3144 ~]$ spladder --help
usage: spladder [-h] {prep, build, test, viz} ...
SplAdder - Graph-based splice event analysis; version: 3.1.1
positional arguments:
{prep, build, test, viz}
Running modes
build run mode to build and construct graphs
test run mode to differentially test events
viz run mode to visualize graphs and events
prep run mode to perform input preparations
options:
-h, --help show this help message and exit
[user@cn3144 ~]$ exit
salloc.exe: Relinquishing job allocation 46116226
[user@biowulf ~]$
Create a batch input file (e.g. spladder.sh). For example:
#!/bin/bash
set -e
module load spladder
spladder build -o spladder_out \
-a annotation.gtf \
-b S1.bam,S2.bam,S3.bam,S4.bam,S5.bam,S6.bam,S7.bam,S8.bam,S9.bam,S10.bam
--event-types exon_skip< spladder.in > spladder.out
Submit this job using the Slurm sbatch command.
sbatch [--cpus-per-task=#] [--mem=#] spladder.sh
Create a swarmfile (e.g. spladder.swarm). For example:
spladder build -o spladder_out -a annotation.gtf -b S1.bam --merge-strat merge_graphs --no-extract-ase --quantify-graph --qmode single spladder build -o spladder_out -a annotation.gtf -b S2.bam --merge-strat merge_graphs --no-extract-ase --quantify-graph --qmode single spladder build -o spladder_out -a annotation.gtf -b S3.bam --merge-strat merge_graphs --no-extract-ase --quantify-graph --qmode single spladder build -o spladder_out -a annotation.gtf -b S4.bam --merge-strat merge_graphs --no-extract-ase --quantify-graph --qmode single
Submit this job using the swarm command.
swarm -f spladder.swarm [-g #] [-t #] --module spladderwhere
| -g # | Number of Gigabytes of memory required for each process (1 line in the swarm command file) |
| -t # | Number of threads/CPUs required for each process (1 line in the swarm command file). |
| --module spladder | Loads the SplAdder module for each subjob in the swarm |