segfault when getting unbinned contigs

Issue #50 resolved
Mitchell Sullivan created an issue

Hi,

I'm getting a segfault with the --unbinned flag for some reason. I think it is happening when it writes the unbinned file as all the other files seem to have been written properly.

 $ metabat -l -i data/merged_assembly.fasta  -o data/metabat_bins/binned_contigs
MetaBAT 2 (v2.12.1) using minContig 2500, minCV 1.0, minCVSum 1.0, maxP 95%, minS 60, and maxEdges 200. 
12 bins (109311580 bases in total) formed.

 $ metabat -l --unbinned -i data/merged_assembly.fasta  -o data/metabat_bins/binned_contigs
MetaBAT 2 (v2.12.1) using minContig 2500, minCV 1.0, minCVSum 1.0, maxP 95%, minS 60, and maxEdges 200. 
13 bins (109480599 bases in total) formed.
[1]    111221 segmentation fault  metabat -l --unbinned -i data/merged_assembly.fasta -o 

Comments (5)

  1. Rob Egan

    Thanks for the bug report Mitchell. I believe that I see the problem in the code, can you try to run with out the -l option, so it outputs the fasta files? And confirm whether there is segfault then? Thanks, Rob

  2. Mitchell Sullivan reporter

    Hi Rob,

    Sorry I deleted the files and haven't been able to replicate it. From memory I did check without the -l flag and the bug was still present.

    -Mitch

  3. Rob Egan

    Okay, well I pushed a change that should address the issue you observed. Let us know if you have any problems. Rob

  4. Log in to comment