Skip to content

Bamsurgeon goes silent (does not finish) on high coverage small panel bam file #217

@ranjit58

Description

@ranjit58

I am using bamsurgeon for inserting mutation in a ctdna bam file, captured with panel with ~100 regions at median ~8000X coverage. In each region, I am adding mutations at low allele frequency (0.01% - 1%).

The bamsurgeon works fine when inserting ~40 mutation or so. When inserting 60 or more mutations, the program goes silent (not finishing). Using htop command i see several python process and one samtools mipleup process but not utilizing any cpu/memmory, sitting silent.

The last message is something like
INFO 2023-01-10 03:26:37,790 haplo_9_137709597_137709597 avgincover: 10233.000000, avgoutcover: 8937.500000

An example of I am using following commands
python3 -O bamsurgeon/bin/addsnv.py
-v test.bed
-f test.bam
-r index/index.fa
-o output.bam
--mindepth 1000
--maxdepth 50000
--force
-p 8
--seed 1234

One solution : Trying various options , when i add the flag --ignorepileup, the program does finishes. I don't know what caused the problem and if the fix is appropriate, so I am reporting this issue for any further input or suggestion.

thanks,
Ranjit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions