lastplot


Namelastplot JSON
Version 1.2.1 PyPI version JSON
download
home_pageNone
SummaryLastPlot is a Python package designed to elaborate data into graphs coming from lipid extractions (LC/MS).
upload_time2024-08-21 12:33:30
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lipid Analysis and Statistical Testing with Plotting for LC-MS Output Transformation (LastPlot)

## What is it

LastPlot is a Python package designed to elaborate data into graphs coming from lipid extractions (LC/MS).
Starting from a file containing the **pmol/mg** values per each sample, this package streamlines the process of data
analysis and visualization.

## Features

LastPlot includes the following features:

- Data Sanitization: Clean and prepare data for analysis, removing internal standard samples and non value samples.
- Data Normalization: Normalize values with log10 to ensure consistency across samples.
- Normality Check: Use the Shapiro-Wilk test to check for normality of residuals.
- Equality of Variance Check: Use Levene's test to assess the equality of variances.
- Statistical Significance Annotation: Annotate boxplots with significance levels using t-test, Welch's t-test, or
  Mann-Whitney test depending on the data requirements, through the starbars package.
- Visualization Tools: Create boxplots to aid in data interpretation.

## Installation

You can install the package via pip:

```
pip install lastplot
```

\
Alternatively, you can install the package from the source:

```
git clone https://github.com/elide-b/lastplot.git
cd lastplot
pip install .
```

## Usage

Here is one example of how to use LastPlot:

```
import lastplot

# Example usage
df = lastplot.data_workflow(
    file_path="My project.xlsx",
    data_sheet="Data Sheet",
    mice_sheet="Mice ID Sheet",
    output_path="C:/Users/[YOUR-USERNAME]/Documents/example",
    control_name="WT",
    experimental_name=["FTD", "BPD", "HFD"]
)

lastplot.zscore_graph_lipid(
    df_final=df,
    control_name="WT",
    experimental_name=["FTD", "BPD", "HFD"]
    output_path="C:/Users/[YOUR-USERNAME]/Documents/example",
    palette="tab20b_r",
    show=True,
)
```

Returns graphs.

## Examples

For more detailed examples, please check the [example](https://github.com/elide-b/lastplot/tree/master/example)
folder.

## Contributing

We welcome contributions!
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
simply open an issue with the tag **"enhancement"**.

To contribute:

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -m 'Add some amazing feature'`).
4. Push to the branch (`git push origin feature-branch`)
5. Open a pull request

## License

Distributed under the MIT License. See `LICENSE.txt` for more information.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lastplot",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Elide Brunelli <elide.98@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/65/fd/5190e77341bfe283bf7f2af1c712f5e815a23ff887877e949a1e32a51813/lastplot-1.2.1.tar.gz",
    "platform": null,
    "description": "# Lipid Analysis and Statistical Testing with Plotting for LC-MS Output Transformation (LastPlot)\n\n## What is it\n\nLastPlot is a Python package designed to elaborate data into graphs coming from lipid extractions (LC/MS).\nStarting from a file containing the **pmol/mg** values per each sample, this package streamlines the process of data\nanalysis and visualization.\n\n## Features\n\nLastPlot includes the following features:\n\n- Data Sanitization: Clean and prepare data for analysis, removing internal standard samples and non value samples.\n- Data Normalization: Normalize values with log10 to ensure consistency across samples.\n- Normality Check: Use the Shapiro-Wilk test to check for normality of residuals.\n- Equality of Variance Check: Use Levene's test to assess the equality of variances.\n- Statistical Significance Annotation: Annotate boxplots with significance levels using t-test, Welch's t-test, or\n  Mann-Whitney test depending on the data requirements, through the starbars package.\n- Visualization Tools: Create boxplots to aid in data interpretation.\n\n## Installation\n\nYou can install the package via pip:\n\n```\npip install lastplot\n```\n\n\\\nAlternatively, you can install the package from the source:\n\n```\ngit clone https://github.com/elide-b/lastplot.git\ncd lastplot\npip install .\n```\n\n## Usage\n\nHere is one example of how to use LastPlot:\n\n```\nimport lastplot\n\n# Example usage\ndf = lastplot.data_workflow(\n    file_path=\"My project.xlsx\",\n    data_sheet=\"Data Sheet\",\n    mice_sheet=\"Mice ID Sheet\",\n    output_path=\"C:/Users/[YOUR-USERNAME]/Documents/example\",\n    control_name=\"WT\",\n    experimental_name=[\"FTD\", \"BPD\", \"HFD\"]\n)\n\nlastplot.zscore_graph_lipid(\n    df_final=df,\n    control_name=\"WT\",\n    experimental_name=[\"FTD\", \"BPD\", \"HFD\"]\n    output_path=\"C:/Users/[YOUR-USERNAME]/Documents/example\",\n    palette=\"tab20b_r\",\n    show=True,\n)\n```\n\nReturns graphs.\n\n## Examples\n\nFor more detailed examples, please check the [example](https://github.com/elide-b/lastplot/tree/master/example)\nfolder.\n\n## Contributing\n\nWe welcome contributions!\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also\nsimply open an issue with the tag **\"enhancement\"**.\n\nTo contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -m 'Add some amazing feature'`).\n4. Push to the branch (`git push origin feature-branch`)\n5. Open a pull request\n\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LastPlot is a Python package designed to elaborate data into graphs coming from lipid extractions (LC/MS).",
    "version": "1.2.1",
    "project_urls": {
        "Home": "https://github.com/elide-b/lastplot"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d8a275ebce744318e15403e6d875193686e08e3d018f97e244b2116e114cfca2",
                "md5": "264e98bff40a2476c9209b0e58eacc1d",
                "sha256": "49389b38ceaab0414d4c0c1057f6f663c49ceb3fb6f05c83729ecabb63b3aaf2"
            },
            "downloads": -1,
            "filename": "lastplot-1.2.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "264e98bff40a2476c9209b0e58eacc1d",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 19452,
            "upload_time": "2024-08-21T12:33:29",
            "upload_time_iso_8601": "2024-08-21T12:33:29.553520Z",
            "url": "https://files.pythonhosted.org/packages/d8/a2/75ebce744318e15403e6d875193686e08e3d018f97e244b2116e114cfca2/lastplot-1.2.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "65fd5190e77341bfe283bf7f2af1c712f5e815a23ff887877e949a1e32a51813",
                "md5": "a03027ca7502d67ec45eab74c60dcb61",
                "sha256": "df6a1243aa7026b585a2efc699b79af417e1ffad1842c1b84d723b6e83854fc5"
            },
            "downloads": -1,
            "filename": "lastplot-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a03027ca7502d67ec45eab74c60dcb61",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 21083,
            "upload_time": "2024-08-21T12:33:30",
            "upload_time_iso_8601": "2024-08-21T12:33:30.541839Z",
            "url": "https://files.pythonhosted.org/packages/65/fd/5190e77341bfe283bf7f2af1c712f5e815a23ff887877e949a1e32a51813/lastplot-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-21 12:33:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "elide-b",
    "github_project": "lastplot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lastplot"
}
        
Elapsed time: 0.32921s