Reproducible Space Ranger Visium pipeline container
141
apptainer pull docker://flobenhsj/spaceranger-fixed:4.0.1
This produces a portable .sif image containing Space Ranger 4.0.1.
wget https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-GRCh38-2024-A.tar.gz
tar -xvzf refdata-gex-GRCh38-2024-A.tar.gz
wget https://cf.10xgenomics.com/supp/spatial-exp/probeset/Visium_Human_Transcriptome_Probe_Set_v2.1.0_GRCh38-2024-A.csv
wget https://visiumhdslide.10xgenomics.com/vlf/H1-GZ847TV.vlf
ā ļø Replace
H1-GZ847TV.vlfwith the correct slide-specific file for your experiment.
Typical required inputs:
wget <CYTA_IMAGE_URL>
wget <HIGH_RES_IMAGE_URL>
FASTQs are generated by sequencing and must be placed in:
/path/to/fastq_directory/
project/
āāā container/
ā āāā spaceranger-fixed_4.0.1.sif
āāā reference/
ā āāā refdata-gex-GRCh38-2024-A/
āāā probeset/
ā āāā Visium_Human_Transcriptome_Probe_Set_v2.1.0_GRCh38-2024-A.csv
āāā slide/
ā āāā H1-GZ847TV.vlf
āāā images/
ā āāā cytassist.tif
ā āāā hires.ome.tiff
āāā fastq/
#!/bin/bash
#SBATCH --job-name=spaceranger
#SBATCH --output=spaceranger_%j.out
#SBATCH --error=spaceranger_%j.err
#SBATCH --cpus-per-task=XX
#SBATCH --mem=XXXG
#SBATCH --time=HH:MM:SS
#SBATCH --account=YOUR_ACCOUNT
set -euo pipefail
module load apptainer || true
WORKDIR=/path/to/project
SIF=$WORKDIR/container/spaceranger-fixed_4.0.1.sif
cd "$WORKDIR"
apptainer exec \
--bind "$WORKDIR" \
"$SIF" \
spaceranger count \
--id=RUN_NAME \
--fastqs=fastq \
--sample=SAMPLE_NAME \
--transcriptome=reference/refdata-gex-GRCh38-2024-A \
--slide=SLIDE_ID \
--area=CAPTURE_AREA \
--probe-set=probeset/Visium_Human_Transcriptome_Probe_Set_v2.1.0_GRCh38-2024-A.csv \
--slidefile=slide/H1-GZ847TV.vlf \
--cytaimage=images/cytassist.tif \
--image=images/hires.ome.tiff \
--create-bam=false \
--localcores=XX \
--localmem=XXX
echo "Done: $(date)"
| Parameter | Description |
|---|---|
--id | Output run name |
--fastqs | FASTQ directory |
--sample | Sample ID in FASTQs |
--transcriptome | Reference genome |
--slide | Slide ID (must match .vlf) |
--area | Capture area (e.g. A1) |
--probe-set | Probe annotation CSV |
--slidefile | .vlf geometry file |
--cytaimage | CytAssist image |
--image | High-resolution tissue image |
--localcores | CPU cores |
--localmem | RAM (GB) |
.vlf file must match slide ID exactlyflobenhsj/spaceranger-fixedContent type
Image
Digest
sha256:ea9509b55ā¦
Size
1 GB
Last updated
6 months ago
docker pull flobenhsj/spaceranger-fixed:v2