Skip to content

finngen_studies

gentropy.finngen_studies.FinnGenStudiesStep

FinnGen study index generation step.

Source code in src/gentropy/finngen_studies.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class FinnGenStudiesStep:
    """FinnGen study index generation step."""

    def __init__(self, session: Session, finngen_study_index_out: str) -> None:
        """Run FinnGen study index generation step.

        Args:
            session (Session): Session object.
            finngen_study_index_out (str): Output FinnGen study index path.
        """
        # Fetch study index.
        FinnGenStudyIndex.from_source(session.spark).df.write.mode(
            session.write_mode
        ).parquet(finngen_study_index_out)

__init__(session: Session, finngen_study_index_out: str) -> None

Run FinnGen study index generation step.

Parameters:

Name Type Description Default
session Session

Session object.

required
finngen_study_index_out str

Output FinnGen study index path.

required
Source code in src/gentropy/finngen_studies.py
12
13
14
15
16
17
18
19
20
21
22
def __init__(self, session: Session, finngen_study_index_out: str) -> None:
    """Run FinnGen study index generation step.

    Args:
        session (Session): Session object.
        finngen_study_index_out (str): Output FinnGen study index path.
    """
    # Fetch study index.
    FinnGenStudyIndex.from_source(session.spark).df.write.mode(
        session.write_mode
    ).parquet(finngen_study_index_out)