STAR error bgzf_open: Assertion failed

Category: 
Resolution: 
Resolved
Affected Software: 

You may encounter errors that look similar to these when running STAR 2.7.10b:

STAR: bgzf.c:158: bgzf_open: Assertion `compressBound(0xff00) < 0x10000' failed.

Cause

It seems to be related to this issue: https://github.com/alexdobin/STAR/issues/2063

STAR bundles an older version of HTSlib which is incompatible with zlib-ng, a library we build STAR with

Workaround

Use star/2.7.11b

We have patched STAR to use a newer version of HTSlib in this version, compatible with zlib-ng