Hi Anna,
I think you are not using `--genomeSAindexNbases` in the right place.. That flag is for Genome Generation i.e for when you are making an index and not for the actual alignment step ! When you have small reference genome you need to account for it during "genome generation" i.e indexing step
So it should be something like this:
Step 1: Make index
```
STAR --runThreadN 16 \
--runMode genomeGenerate \
--genomeDir /path/to/your/starIndex/directory\
--genomeFastaFiles /your/reference/file
--genomeSAindexNbases 3
```
I'm sure you are aware of this but make sure that your "starIndex-directory" is premade, as STAR doesn't make it !
And backslashs are just BASH convention to span multiple lines.
Step 2 : Alignment
```
STAR --runThredN 16 \
--genomeDir /your/starIndex/directory \
--readFilesIn /your/FASTQ/files \
--outFileNamePrefix /your/fileNamePrefix
```
This is what I think at least, Alex might clarify whether you can or can't use `--genomeSAindexNbases` during alignment step.
Cheers,
Kirill