findlinear


Namefindlinear JSON
Version 0.4.2 PyPI version JSON
download
home_pagehttps://findlinear.readthedocs.io
SummaryTo find the linear segment of a curve or dataset.
upload_time2023-01-19 22:50:21
maintainer
docs_urlNone
authorYu Huo
requires_python>=3.8,<3.11
licenseMIT
keywords linear segment systems biology bioinformatics plate readers
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # findlinear: Determining the linear segments of data with Bayesian model comparison

`findlinear` is a Python module for finding the linear segment given a curve or dataset with `x` and `y`. 

## How does it work?
It uses the idea of Bayesian model comparison and calculate the evidence of each possible segment of curve being linear. 
After calculating the evidence of each segment, it detects the global maximum, or uses the `findpeaks` library to find the local maxima of evidence, from which the user can choose the relevant linear segment (e.g. that with the largest evidence, or that with the largest slope when the data consists of multiple linear segments).

## Installation
For users, type in terminal
```
> pip install findlinear
```

For developers, create a virtual environment and then type 
```
> git clone https://git.ecdf.ed.ac.uk/s1856140/findlinear.git
> cd findlinear 
> poetry install --with dev 
```

## Quickstart
Data `x` is a list or a 1D Numpy array, sorted ascendingly; the data `y` is a list or a Numpy array, with each row being one replicate of measurement.
```
>>> from findlinear.findlinear import findlinear, get_example_data
>>> x, y = get_example_data()
>>> fl = findlinear(x, y)
>>> fl.find_all()
>>> fl.plot()
>>> fl.get_argmax()
>>> fl.get_peaks()
```

## Documentation
Detailed documentation is available on [Readthedocs](https://findlinear.readthedocs.io/en/latest/).

## Citation
A preprint is coming soon.

            

Raw data

            {
    "_id": null,
    "home_page": "https://findlinear.readthedocs.io",
    "name": "findlinear",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<3.11",
    "maintainer_email": "",
    "keywords": "linear segment,systems biology,bioinformatics,plate readers",
    "author": "Yu Huo",
    "author_email": "yu.huo@ed.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/46/33/53a537d8a3b4d58bdf2ffcbcd49b40c0de3d3370575e8b50025c2c7a0b54/findlinear-0.4.2.tar.gz",
    "platform": null,
    "description": "# findlinear: Determining the linear segments of data with Bayesian model comparison\n\n`findlinear` is a Python module for finding the linear segment given a curve or dataset with `x` and `y`. \n\n## How does it work?\nIt uses the idea of Bayesian model comparison and calculate the evidence of each possible segment of curve being linear. \nAfter calculating the evidence of each segment, it detects the global maximum, or uses the `findpeaks` library to find the local maxima of evidence, from which the user can choose the relevant linear segment (e.g. that with the largest evidence, or that with the largest slope when the data consists of multiple linear segments).\n\n## Installation\nFor users, type in terminal\n```\n> pip install findlinear\n```\n\nFor developers, create a virtual environment and then type \n```\n> git clone https://git.ecdf.ed.ac.uk/s1856140/findlinear.git\n> cd findlinear \n> poetry install --with dev \n```\n\n## Quickstart\nData `x` is a list or a 1D Numpy array, sorted ascendingly; the data `y` is a list or a Numpy array, with each row being one replicate of measurement.\n```\n>>> from findlinear.findlinear import findlinear, get_example_data\n>>> x, y = get_example_data()\n>>> fl = findlinear(x, y)\n>>> fl.find_all()\n>>> fl.plot()\n>>> fl.get_argmax()\n>>> fl.get_peaks()\n```\n\n## Documentation\nDetailed documentation is available on [Readthedocs](https://findlinear.readthedocs.io/en/latest/).\n\n## Citation\nA preprint is coming soon.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "To find the linear segment of a curve or dataset.",
    "version": "0.4.2",
    "split_keywords": [
        "linear segment",
        "systems biology",
        "bioinformatics",
        "plate readers"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c48ce0382bd7c335823ef2c398e453f944ac35584d76249e3dc9509128be4a0e",
                "md5": "1d4d601f341d02fe87a7d41ac102b2bc",
                "sha256": "5714d93912f017cf2ce9a1684090c2522520c9a174812cb407f95de06ef8c81e"
            },
            "downloads": -1,
            "filename": "findlinear-0.4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1d4d601f341d02fe87a7d41ac102b2bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<3.11",
            "size": 9502,
            "upload_time": "2023-01-19T22:50:20",
            "upload_time_iso_8601": "2023-01-19T22:50:20.430379Z",
            "url": "https://files.pythonhosted.org/packages/c4/8c/e0382bd7c335823ef2c398e453f944ac35584d76249e3dc9509128be4a0e/findlinear-0.4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "463353a537d8a3b4d58bdf2ffcbcd49b40c0de3d3370575e8b50025c2c7a0b54",
                "md5": "a336e551622c525985052418b485ccb4",
                "sha256": "afd7019460d05a8225b5e71520e8c452e2c64cb438495b98274a13ae487397e0"
            },
            "downloads": -1,
            "filename": "findlinear-0.4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a336e551622c525985052418b485ccb4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<3.11",
            "size": 9110,
            "upload_time": "2023-01-19T22:50:21",
            "upload_time_iso_8601": "2023-01-19T22:50:21.975152Z",
            "url": "https://files.pythonhosted.org/packages/46/33/53a537d8a3b4d58bdf2ffcbcd49b40c0de3d3370575e8b50025c2c7a0b54/findlinear-0.4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-19 22:50:21",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "findlinear"
}
        
Elapsed time: 0.08998s