Skip to content

Brodinlab/olinkform

Repository files navigation

olinkform

https://github.com/Brodinlab/olinkform/workflows/Python%20package/badge.svg?branch=master

Documentation Status

The preprocessing lib for olink data

Usage

Parse a data file

from olinkform import parse

result = parse(path, version)
# version v1 or v2 are supported,
# which are corresponding to the old and new olink formats, individually

The result is a dict with the following format

{
    "sampleId": {
        "markerId" : {
            "batch": string
            "value": float,
            "LOD": float,
            "MDF": float
        }
    }
}

Parse a data file to dataframe

from olinkform import parse_to_dataframe

df = parse_to_dataframe(path, version)

The result is a dataframe with columns:

['batch', 'sample_id','marker', 'value', 'LOD', 'MDF']

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.