SpliceAI2 uses deep learning to predict how changes in DNA may affect RNA splicing. It models splice sites, splice junctions, and transcript structures, and reports scores that estimate the effects of individual variants on splicing. It is the successor to SpliceAI.
Allocate an interactive session and create a working directory:
[user@biowulf]$ sinteractive --gres=gpu:a100:1 --cpus-per-task=4 --mem=32g salloc: Pending job allocation 34791077 salloc: job 34791077 queued and waiting for resources salloc: job 34791077 has been allocated resources salloc: Granted job allocation 34791077 salloc: Nodes cn0076 are ready for job [user@cn0076 ~]$ mkdir -pv /data/$USER/SPLICEAI2_TEST [user@cn0076 ~]$ cd /data/$USER/SPLICEAI2_TESTDonwload weights and benchmarks and select three variants:
[user@cn0076 ~]$ module load pixi
[+] Loading pixi 0.40.3 on cn0076
[user@cn0076 ~]$ pixi exec \
--spec huggingface_hub \
-- hf auth login
[user@cn0076 ~]$ pixi exec \
--spec huggingface_hub \
-- hf download illumina-ai/SpliceAI2 \
--local-dir weights
Downloading bytes: | 0.00B
[...]
Download complete: ████████████████████████████████████████| 220MB, 243MB/s
Reconstruction complete: 100%|█████████████████████████████████████| 234MB / 234MB, 58.7MB/s
[user@cn0076 ~]$ pixi exec --spec huggingface_hub \
-- hf download illumina-ai/SpliceAI2-data \
benchmarks/GTEx_sQTL.tsv \
--repo-type dataset \
--local-dir testdata
GTEx_sQTL.tsv: 100%|████████████████████████████████████| 449k/449k [00:00<00:00, 68.5MB/s]
✓ Downloaded
path: /data/$USER/SPLICEAI2_TEST/spliceai2-testdata/benchmarks/GTEx_sQTL.tsv
[user@cn0076 ~]$ head -n 4 testdata/benchmarks/GTEx_sQTL.tsv > test.tsv
Link reference genome and build index:
[user@cn0076 ~]$ ln -s /fdb/igenomes/Homo_sapiens/UCSC/hg38/Sequence/WholeGenomeFasta/genome.fa hg38.fa [user@cn0076 ~]$ module load samtools [+] Loading samtools 1.23 ... [user@cn0076 ~]$ samtools faidx hg38.faRun spliceai2:
[user@cn0076 ~]$ module load spliceai2
[+] Loading spliceai2 2.0 on cn0076
[+] Loading apptainer 1.4.5 on cn0076
[user@cn0076 ~]$ MODEL1=/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_01
[user@cn0076 ~]$ MODEL2=/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_02
[user@cn0076 ~]$ spliceai2 \
--model_folders "$MODEL1" "$MODEL2" \
--var_tsv_file test.tsv \
--fasta_file hg38.fa \
--no_compile
['/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_01',
'/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_02'] spliceai2
Using 16bit Automatic Mixed Precision (AMP)
💡 Tip: For seamless cloud uploads and versioning, try installing
[litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint,
which syncs automatically with the Lightning model registry.
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
HPU available: False, using: 0 HPUs
You are using a CUDA device ('NVIDIA A100-SXM4-80GB') that has Tensor Cores.
Predicting DataLoader 0: 100%|███████████████████████████| 3/3 [00:03<00:00, 0.92it/s]
A results file, test.tsv.spliceai2, will be produced:
[user@cn0076 ~]$ more test.tsv.spliceai2Exit the application:
[user@cn0076 ~]$ exit [user@biowulf ~]$
Create a batch input file (e.g. spliceai2.sh). For example:
#!/bin/bash
#SBATCH --partition=gpu
#SBATCH --gres=gpu:a100:1
#SBATCH --cpus-per-task=4
#SBATCH --mem=32g
#SBATCH --time=00:30:00
module load spliceai2
cd /data/$USER/SPLICEAI2_TEST
MODEL1=/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_01
MODEL2=/data/$USER/SPLICEAI2_TEST/weights/spliceai2_multispecies_13M_02
spliceai2 \
--model_folders "$MODEL1" "$MODEL2" \
--var_tsv_file test.tsv \
--fasta_file hg38.fa \
--no_compile
Submit this job using the Slurm sbatch command.
sbatch spliceai2.sh