Skip to content

Out of memory when attempting to read BAM header in REDI3 analyze #91

Description

@void-tiff

Hello! Thank you so much for your work on this tool, it's been a lot easier to use for my huge dataset than REDI2.

I have a BAM file that's ~30GB that I'm trying to analyze, but it kills the job pretty quickly due to running out of memory trying to read the header:

[E::bam_hdr_read] Out of memory
[ERROR] (<class 'ValueError'>) file does not have a valid header (mode='r') - is it BAM/CRAM format?
[ERROR] Killing job

I have specified 96 threads (running on 48 CPUs), so after looking it up I suspect it might be an issue with the number of threads but I'm not sure. I can run samtools view -H in the command line just fine so I know this isn't an issue with the header itself being corrupted or not being there at all.

If it helps, the full command I'm running is
python -m reditools analyze {input BAM file} -r {trinity fasta} -o {output file} -t 96

It could also be the fact that I'm not using the --window command, but I don't have a good intuition on how big or small that number should be, nor do I know if that would affect the reading of the header.

I'm brand new to HPCs and am learning as I go, so your help and patience is very appreciated!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions