Skip to content

types

gentropy.common.types

Types and type aliases used in the package.

GWASEffect

Bases: NamedTuple

Components of GWAS effect.

Attributes:

Name Type Description
beta Column

Effect.

standard_error Column

Effect standard error.

Source code in src/gentropy/common/types.py
35
36
37
38
39
40
41
42
43
44
class GWASEffect(NamedTuple):
    """Components of GWAS effect.

    Attributes:
        beta (Column): Effect.
        standard_error (Column): Effect standard error.
    """

    beta: Column
    standard_error: Column

PValComponents

Bases: NamedTuple

Components of p-value.

Attributes:

Name Type Description
mantissa Column

Mantissa of the p-value.

exponent Column

Exponent of the p-value.

Source code in src/gentropy/common/types.py
23
24
25
26
27
28
29
30
31
32
class PValComponents(NamedTuple):
    """Components of p-value.

    Attributes:
        mantissa (Column): Mantissa of the p-value.
        exponent (Column): Exponent of the p-value.
    """

    mantissa: Column
    exponent: Column

gentropy.common.types.LD_Population = Literal['afr', 'amr', 'asj', 'eas', 'est', 'fin', 'nfe', 'nwe', 'seu'] module-attribute

gentropy.common.types.VariantPopulation = Literal['afr', 'amr', 'ami', 'asj', 'eas', 'fin', 'nfe', 'mid', 'sas', 'remaining'] module-attribute

gentropy.common.types.DataSourceType = Literal['gnomad', 'finngen', 'gwas_catalog', 'eqtl_catalog', 'ukbiobank', 'open_targets', 'intervals'] module-attribute

gentropy.common.types.GWASEffect

Bases: NamedTuple

Components of GWAS effect.

Attributes:

Name Type Description
beta Column

Effect.

standard_error Column

Effect standard error.

Source code in src/gentropy/common/types.py
35
36
37
38
39
40
41
42
43
44
class GWASEffect(NamedTuple):
    """Components of GWAS effect.

    Attributes:
        beta (Column): Effect.
        standard_error (Column): Effect standard error.
    """

    beta: Column
    standard_error: Column