Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Error with some rsIDs #180

@jcmarca

Description

@jcmarca

Postgap fails when using specific variations in a summary file

Here is an example of a summary file including one of the failing rsID:

variant_id beta p-value
rs2862954 -0.0291 2.00E-10

And this is the error message shown in the log file:

~/postgap/lib/postgap/Finemap.py:803: RuntimeWarning: divide by zero encountered in log
return subset_size*numpy.log(p) + (m - subset_size)numpy.log(1-p)
~/postgap/lib/postgap/Finemap.py:803: RuntimeWarning: invalid value encountered in double_scalars
return subset_size
numpy.log(p) + (m - subset_size)numpy.log(1-p)
~/postgap/lib/postgap/Finemap.py:803: RuntimeWarning: invalid value encountered in multiply
return subset_size
numpy.log(p) + (m - subset_size)*numpy.log(1-p)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions