Skip to content

A solution to core dumped and/or running too slow #109

@YichaoOU

Description

@YichaoOU

Hi,

I found the call_peaks function could cause the program to halt or fail due to empty sections in the for loop for sect in sections.

A simple solution is to exit the function before the for loop:

    if len(sections)==0:
        peak_dict['Nclusters'] = peak_number
        return peak_dict 

I also found the --plot option can make the program freeze.

By saying halt or freeze, I think the program is still running, because for my Igg bam file, which is only 15MB, The program is finished. But when I have a ~200MB bam file, the program took more than 1 day and then core dumped (not because of memory). With the simple fixed, it is running smoothly now.

Best,
Yichao

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions