File size: 788 Bytes
925ee3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Bundled mRNA half-life reference datasets."""

from __future__ import annotations

from pathlib import Path

import pandas as pd

_DATA_DIR = Path(__file__).parent / "data"


def herzog2017_halflives() -> pd.DataFrame:
    """Load mRNA half-lives from Herzog et al. 2017 (SLAM-seq, mouse ESCs).

    Returns
    -------
    DataFrame with columns ``gene_symbol`` and ``half_life_hours``.
    """
    path = _DATA_DIR / "herzog2017_halflives.csv"
    return pd.read_csv(path)


def schofield2018_halflives() -> pd.DataFrame:
    """Load mRNA half-lives from Schofield et al. 2018 (TimeLapse-seq, K562).

    Returns
    -------
    DataFrame with columns ``gene_symbol`` and ``half_life_hours``.
    """
    path = _DATA_DIR / "schofield2018_halflives.csv"
    return pd.read_csv(path)