This repository contains scripts used to 10x pre-processing and RNA-velocity estimation with StarSolo.
STAR >=2.7.3a
cellranger
If you don't have STAR
available as a module you can install it with conda:
conda install -c bioconda star=2.7.3a
- Find genome (
fasta
) and annotation (gtf
) used withcellranger
. You will need to rebuild the star index withSTAR >=2.7.3a
. Adjust the number of threads (--runThreadN
) to your setup.
mkdir ./star
STAR \
--runMode genomeGenerate \
--genomeDir ./star/ \
--genomeFastaFiles mm38.fa \
--sjdbGTFfile mm38.gtf \
--runThreadN 20
- Run helper script for StarSolo
This script will check the necessary requirements and downloads the proper whitelist based on 10X chemistry. It also adjusted the parameters for StarSolo accordingly.
-i
path to fastq files-c
10X chemistry usedv1
,v2
orv3
-s
path to star index fromstep 1
-t
number of threads used- last parameter is the output path
sh scripts/velocity.sh -i /path/to/fastq -c v3 -s /path/to/star -t 20 ./velocity
wget http://ftp.ensembl.org/pub/release-98/gtf/mus_musculus/Mus_musculus.GRCm38.98.chr.gtf.gz
wget http://ftp.ensembl.org/pub/release-98/fasta/mus_musculus/dna/Mus_musculus.GRCm38.dna.chromosome.{1..19,X,Y,MT}.fa.gz
gunzip -c Mus_musculus.GRCm38.dna.chromosome.*.fa.gz > mm38.fa
gunzip *.gt.gz > mm38.gtf
- Kevin Blighe: 10X chemistry
- Kevin Lane: template setup