Skip to main content

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 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.

Metadata

Release files for lastplot 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lastplot 1.2.1
File Size Uploaded Provenance
lastplot-1.2.1.tar.gz 21.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lastplot 1.2.1
File Interpreter ABI Platform
lastplot-1.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 40.5 kB

Release files / lastplot-1.2.1.tar.gz

Download URL lastplot-1.2.1.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
df6a1243aa7026b585a2efc699b79af417e1ffad1842c1b84d723b6e83854fc5
BLAKE2b-256 checksum
How to use checksums
65fd5190e77341bfe283bf7f2af1c712f5e815a23ff887877e949a1e32a51813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / lastplot-1.2.1-py2.py3-none-any.whl

Download URL lastplot-1.2.1-py2.py3-none-any.whl
Size 19.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
49389b38ceaab0414d4c0c1057f6f663c49ceb3fb6f05c83729ecabb63b3aaf2
BLAKE2b-256 checksum
How to use checksums
d8a275ebce744318e15403e6d875193686e08e3d018f97e244b2116e114cfca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for lastplot 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page