Downloading SpliceAI Scores VCF Files from BaseSpace API
To download SpliceAI precomputed score files from BaseSpace Illumina, you'll need to authenticate with the platform and use the appropriate API calls to access and download the files.
Authentication Process
First, you need to obtain an access token to use the BaseSpace API:
Generate an access token using BaseSpace CLI:
Authenticate with BaseSpace CLI using bs auth
The CLI will open a URL for authentication in your browser
Once authenticated, the access token is stored in ~/.basespace/default.cfg[1][4]
Extract the token from the config file:
Located at ~/.basespace/{config name}.cfg (default is default.cfg)[1]
Locating SpliceAI Files
The precomputed SpliceAI scores are available as VCF files on BaseSpace:
Project location: The SpliceAI precomputed files can be found at:
https://basespace.illumina.com/analyses/194103939/files?projectId=66029966[6]
Available files:
Raw and masked versions are available
Default files use the -D 50 parameter setting (maximum distance between variant and splice site)[6][7]
Downloading SpliceAI Files via API
Use the following API calls to download the files:
bash
# General syntax for downloading files from BaseSpace
curl -X 'GET' -H 'Authorization: Bearer {Access Token}' 'https://api.basespace.illumina.com/v2/files/{File ID}/content' -LOJ
For a more streamlined approach, use the BaseSpace CLI:
bash
# Download all files from a specific analysis
bs download dataset -i {Dataset ID} -o {output directory}
# Download only VCF files
bs download dataset -i {Dataset ID} --extension vcf.gz -o {output directory}
```[4]
### Using BaseSpace Downloader App
1. Navigate to Analyses in BaseSpace Sequence Hub
2. Select the SpliceAI analysis
3. Select File > Download > Analysis
4. Choose file types to download
5. The BaseSpace Sequence Hub Downloader will guide you through the process[3][9]
## File Types and Usage Notes
SpliceAI provides annotation scores for genetic variants, with two types of files:
1. **Raw Files** (`-M 0`): Include all splicing changes
2. **Masked Files** (`-M 1`): Filter out scores representing annotated acceptor/donor gain and unannotated acceptor/donor loss[6][7]
The score format in the VCF is:
`ALLELE|SYMBOL|DS_AG|DS_AL|DS_DG|DS_DL|DP_AG|DP_AL|DP_DG|DP_DL`
Where:
- DS_* values are delta scores (probability of splice alteration)
- DP_* values show position relative to the variant[7]
## Working with Downloaded Files
After downloading, you can use the SpliceAI scores in various ways:
- As annotation input for VEP using the SpliceAI plugin
- For direct analysis of potential splice-altering variants
- The recommended delta score cutoff is 0.5 (0.2 for high recall, 0.8 for high precision)[7]
For integrating SpliceAI scores into R-based analyses, you can use the BaseSpaceR package from Bioconductor[5][8].