featureCounts error: Assertion `numOfBuckets > 0' failed
1
0
Entering edit mode
Jessica • 0
@f94e0443
Last seen 4 days ago
New Zealand

Hello, I'm trying to run featureCounts (v2.0.6) on mapped BAM files from metagenomic data with the following code:

featureCounts -p -F SAF -T 20 -a 8.prodigal/dereplicated_contigs.SAF -o 8.featureCounts/contigs_featureCounts.txt 8.mapping/*.sorted.bam

The BAM files are roughly 1.5GB and the SAF file is 2.5GB. featureCounts loads in the annotation SAF file with no issues but as soon as it comes to processing the BAM file I get the following error:

|| Process BAM file S1.sorted.bam...                                          ||
featureCounts: hashtable.c:309: HashTableCreate: Assertion `numOfBuckets > 0' failed.
/var/spool/slurm/job48387597/slurm_script: line 17: 155999 Aborted     featureCounts -p -F SAF -T 20 -a 8.prodigal/dereplicated_contigs.SAF -o 8.featureCounts/contigs_featureCounts.txt 8.mapping/*.sorted.bam

I've checked to see if the BAM file was corrupt but everything seemed fine. I tried adjusting CPU and memory but that hasn't worked either. Any suggestions/advice would be great! Thanks

featureCounts Subread Bioconductor • 532 views
ADD COMMENT
0
Entering edit mode

Hi Jessica, the info in the screen output cannot indicate the exact location in featureCounts for the error.

Would it be possible if you can share the dereplicated_contigs.SAF and S1.sorted.bam files? This can help us to reproduce the error, hence to find a solution.

ADD REPLY
0
Entering edit mode

Yes sure! You should be able to access them here, thanks!

ADD REPLY
0
Entering edit mode
Yang Liao ▴ 440
@yang-liao-6075
Last seen 19 days ago
Australia

Hi Jessica, thanks for sharing the data with us! We have identified the issue behind the error: the header is very long in the BAM file. In fact, the length of the header is very close to the upper limit in BAM specification (2^31 bytes). Because featureCounts couldn't correctly allocate memory for storing the header, an error was reported.

We have fixed this issue and made a new version (https://sourceforge.net/projects/subread/files/subread-2.0.7/). The new version can correctly process the BAM file and the SAF file that you shared with us.

ADD COMMENT
0
Entering edit mode

Thank-you so much!

ADD REPLY

Login before adding your answer.

Traffic: 476 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6