# STARsolo custom reference fails during genomeGenerate — need genomeChrBinNbits for fragmented Nicotiana genome

**URL:** <https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360>\
**Category:** usegalaxy.eu support\
**Tags:** reference-index, mapping, transcriptomics, tool-help, rna\_starsolo\
**Created:** [August 30, 2026, 8:56pm UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360 "2026-08-30T20:56:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fforn](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/fforn/32/8962_2.png) [@fforn](https://help.galaxyproject.org/u/fforn)\
**Post date:** [August 30, 2026, 8:56pm UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360/1 "2026-08-30T20:56:26Z")

</div>

Hi Galaxy Europe team,

I am trying to reconstruct a published 10x Genomics v3 single-nucleus RNA-seq dataset from _Nicotiana tabacum_ K326 using RNA STARsolo on `singlecell.usegalaxy.eu`.

**Tool:** RNA STARsolo 2.7.11b+galaxy2

I am using a custom K326 reference:

- genome size: ~3.75 Gb
- 382,373 FASTA sequences/contigs
- matching GTF annotation
- 10x 3′ v3 FASTQs

The job fails during **STAR genome generation, before alignment**.

The generated command includes:

```bash
STAR --runMode genomeGenerate \
  --genomeDir tempstargenomedir \
  --genomeFastaFiles refgenome.fa \
  --sjdbOverhang 100 \
  --sjdbGTFfile ... \
  --genomeSAindexNbases 10 \
  --runThreadN 4 \
  --limitGenomeGenerateRAM 40960000000

```

STAR exits with:

```plaintext
EXITING because of FATAL PARAMETER ERROR:
limitGenomeGenerateRAM=40960000000 is too small for your genome

SOLUTION: please specify --limitGenomeGenerateRAM not less than
271935602954 and make that much RAM available

```

I previously tested `genomeSAindexNbases` values 14 and 13, and now 10. The required RAM remains approximately 272 GB, so changing that parameter does not solve the problem.

The reference is extremely fragmented, and STAR recommends reducing `genomeChrBinNbits` for genomes with many reference sequences. Using the STAR recommendation for this assembly gives approximately:

```plaintext
--genomeChrBinNbits 13
--genomeSAindexNbases 14

```

However, the Galaxy STARsolo wrapper exposes `genomeSAindexNbases` but not `genomeChrBinNbits`.

Would it be possible to help with either of these options?

1. Expose `--genomeChrBinNbits` for custom-reference genome generation in RNA STARsolo; or
2. Build/register this K326 STAR index with `genomeChrBinNbits=13` so that it can be selected as a built-in index.

**Failed job ID:** `4838ba20a6d86765bfc0340674b062e5`

**Shared history:**  
`singlecell.usegalaxy.eu/u/fforn/h/chen-sgt-lgt-tobacco`

The shared history contains the failed job, workflow inputs, reference FASTA and GTF.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![pavanvidem](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/pavanvidem/32/1687_2.png) [@pavanvidem](https://help.galaxyproject.org/u/pavanvidem)\
**Post date:** [September 1, 2026, 11:09am UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360/2 "2026-09-01T11:09:34Z")

</div>

Hi @fforn  
Congrats on posting your first question on GalaxyHelp!!

I think the easiest solution is to build an index for your reference genome. I will forward this to Galaxy Europe admins and post an update here when the index is ready.

Best,

Pavan

---

<div class="post-metadata">

**Author:** ![pavanvidem](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/pavanvidem/32/1687_2.png) [@pavanvidem](https://help.galaxyproject.org/u/pavanvidem)\
**Post date:** [September 2, 2026, 2:41pm UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360/3 "2026-09-02T14:41:18Z")

</div>

Hi again,

The reference genome version you are using is from 2014 and is still at the scaffolding level. The annotation also seems incomplete.

There is a latest assembly from 2023 on [NCBI](https://www.ncbi.nlm.nih.gov/datasets/genome/GCA_000715075.2/) with a new annotation from 2025.

Does it still fit your research question, or should it be the older genome from 2014?

---

<div class="post-metadata">

**Author:** ![fforn](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/fforn/32/8962_2.png) [@fforn](https://help.galaxyproject.org/u/fforn)\
**Post date:** [September 3, 2026, 4:55pm UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360/4 "2026-09-03T16:55:09Z")

</div>

> [@pavanvidem](#):
>
> still at the scaffolding level. The annotation also seems incomplete.

Hi Pavan,

Thanks a lot for your comment and for forwarding this to the Galaxy Europe admins. The corresponding author sent me the exact GTF used for the Cell Ranger analysis, and following your suggestion I found a chromosome-level K326 FASTA that matches it; gffread successfully reconstructed all 63,697 transcripts.

It looks like my main mistake was starting from a very old, highly fragmented scaffold-level assembly. So I definitely learned that, when working with older plant genomes, it is worth checking the assembly level and FASTA/GTF compatibility before trying to solve STAR indexing problems with more RAM or parameter tuning.

STARsolo has now been running for over an hour instead of immediately crashing with the ~272 GB RAM error, so this looks much more promising. If it works, the custom index for the old reference probably won’t be needed.

Thanks again for the help!

Federico

---

<div class="post-metadata">

**Author:** ![pavanvidem](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/pavanvidem/32/1687_2.png) [@pavanvidem](https://help.galaxyproject.org/u/pavanvidem)\
**Post date:** [September 3, 2026, 6:53pm UTC](https://help.galaxyproject.org/t/starsolo-custom-reference-fails-during-genomegenerate-need-genomechrbinnbits-for-fragmented-nicotiana-genome/18360/5 "2026-09-03T18:53:22Z")

</div>

Great! Hope it will work out. If there is any other issue, please let us know.
