Name | FlowCytometry JSON |
Version |
0.0.3.post0
JSON |
| download |
home_page | None |
Summary | A package for flow-cytometry simulations. |
upload_time | 2024-09-03 15:19:03 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2020 Martin de Sivry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
refracive index
optics
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
FlowCytometer Simulation Tool
=============================
|python| |coverage| |PyPi| |PyPi_download| |docs|
Overview
--------
The **FlowCytometer Simulation Tool** is a Python-based simulation framework designed to replicate the operation of a flow cytometer. It generates realistic raw signals for Forward Scatter (FSC) and Side Scatter (SSC) channels, incorporating noise, baseline shifts, signal saturation, and signal discretization into a specified number of bins. This tool is highly configurable, allowing users to simulate a wide range of scenarios and analyze the resulting signals.
Features
--------
- **Simulate Particle Events**: Generate realistic FSC and SSC signals based on user-defined particle event parameters.
- **Noise and Baseline Shift**: Introduce Gaussian noise and sinusoidal baseline shifts to simulate real-world conditions.
- **Signal Saturation**: Apply saturation effects to replicate detector limits.
- **Signal Discretization**: Discretize the continuous signal into a specified number of bins for quantized signal analysis.
- **Flexible Plotting**: Visualize the simulated signals with customizable options for plotting specific channels or both together.
Installation
------------
To install the `FlowCytometer` simulation tool, you can clone the repository and install the required dependencies:
.. code-block:: bash
git clone https://github.com/MartinPdeS/FlowCytometry.git
cd FlowCytometry
pip install .[testing]
Dependencies
------------
- `numpy`: For numerical operations and signal generation.
- `matplotlib`: For plotting the simulated signals.
- `scipy`: A module to generate Gaussian pulses (part of this package or an external dependency).
Getting Started
---------------
Below is a quick guide on how to get started with the `FlowCytometer` simulation tool.
.. code-block:: python
from FlowCytometry import FlowCytometer
cytometer = FlowCytometer(
n_events=30,
time_points=1000,
noise_level=30,
baseline_shift=0.01,
saturation_level=10_000,
n_bins=40,
)
# Simulate the flow cytometer signals
cytometer.simulate_pulse()
# Plot the generated signals
cytometer.plot()
This produce the following figure:
|example_fcm|
.. |python| image:: https://img.shields.io/pypi/pyversions/flowcytometry.svg
:target: https://www.python.org/
.. |example_fcm| image:: https://github.com/MartinPdeS/FlowCytometry/blob/master/docs/images/example_signal_FCM.png
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/FlowCytometry/python-coverage-comment-action-data/badge.svg
:alt: Unittest coverage
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/FlowCytometry/blob/python-coverage-comment-action-data/htmlcov/index.html
.. |PyPi| image:: https://badge.fury.io/py/FlowCytometry.svg
:target: https://badge.fury.io/py/FlowCytometry
.. |PyPi_download| image:: https://img.shields.io/pypi/dm/FlowCytometry.svg
:target: https://pypistats.org/packages/flowcytometry
.. |docs| image:: https://readthedocs.org/projects/flowcytometry/badge/?version=latest
:target: https://flowcytometry.readthedocs.io/en/latest/
Raw data
{
"_id": null,
"home_page": null,
"name": "FlowCytometry",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "refracive index, optics",
"author": null,
"author_email": "Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a2/d1/ebf596d9c9be6937496de1b46feba550f8dd19c3867cebf0e049933d02a1/flowcytometry-0.0.3.post0.tar.gz",
"platform": null,
"description": "FlowCytometer Simulation Tool\n=============================\n\n|python| |coverage| |PyPi| |PyPi_download| |docs|\n\nOverview\n--------\n\nThe **FlowCytometer Simulation Tool** is a Python-based simulation framework designed to replicate the operation of a flow cytometer. It generates realistic raw signals for Forward Scatter (FSC) and Side Scatter (SSC) channels, incorporating noise, baseline shifts, signal saturation, and signal discretization into a specified number of bins. This tool is highly configurable, allowing users to simulate a wide range of scenarios and analyze the resulting signals.\n\nFeatures\n--------\n\n- **Simulate Particle Events**: Generate realistic FSC and SSC signals based on user-defined particle event parameters.\n- **Noise and Baseline Shift**: Introduce Gaussian noise and sinusoidal baseline shifts to simulate real-world conditions.\n- **Signal Saturation**: Apply saturation effects to replicate detector limits.\n- **Signal Discretization**: Discretize the continuous signal into a specified number of bins for quantized signal analysis.\n- **Flexible Plotting**: Visualize the simulated signals with customizable options for plotting specific channels or both together.\n\nInstallation\n------------\n\nTo install the `FlowCytometer` simulation tool, you can clone the repository and install the required dependencies:\n\n.. code-block:: bash\n\n git clone https://github.com/MartinPdeS/FlowCytometry.git\n cd FlowCytometry\n pip install .[testing]\n\nDependencies\n------------\n\n- `numpy`: For numerical operations and signal generation.\n- `matplotlib`: For plotting the simulated signals.\n- `scipy`: A module to generate Gaussian pulses (part of this package or an external dependency).\n\nGetting Started\n---------------\n\nBelow is a quick guide on how to get started with the `FlowCytometer` simulation tool.\n\n\n.. code-block:: python\n\n from FlowCytometry import FlowCytometer\n\n cytometer = FlowCytometer(\n n_events=30,\n time_points=1000,\n noise_level=30,\n baseline_shift=0.01,\n saturation_level=10_000,\n n_bins=40,\n )\n\n # Simulate the flow cytometer signals\n cytometer.simulate_pulse()\n\n # Plot the generated signals\n cytometer.plot()\n\nThis produce the following figure:\n|example_fcm|\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/flowcytometry.svg\n :target: https://www.python.org/\n\n.. |example_fcm| image:: https://github.com/MartinPdeS/FlowCytometry/blob/master/docs/images/example_signal_FCM.png\n\n.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/FlowCytometry/python-coverage-comment-action-data/badge.svg\n :alt: Unittest coverage\n :target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/FlowCytometry/blob/python-coverage-comment-action-data/htmlcov/index.html\n\n.. |PyPi| image:: https://badge.fury.io/py/FlowCytometry.svg\n :target: https://badge.fury.io/py/FlowCytometry\n\n.. |PyPi_download| image:: https://img.shields.io/pypi/dm/FlowCytometry.svg\n :target: https://pypistats.org/packages/flowcytometry\n\n.. |docs| image:: https://readthedocs.org/projects/flowcytometry/badge/?version=latest\n :target: https://flowcytometry.readthedocs.io/en/latest/\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2020 Martin de Sivry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "A package for flow-cytometry simulations.",
"version": "0.0.3.post0",
"project_urls": null,
"split_keywords": [
"refracive index",
" optics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "17f30d6437cdbaa31ac30c819ad271b4b4b00f60cc1420fafc3341d588e5cb3e",
"md5": "90af183ef0d2ae35ab21b07ede9cdacf",
"sha256": "2ef361b54b09784fe3fc372c8cc72f94c0fe7b0366b36c7deb0e94368279ef03"
},
"downloads": -1,
"filename": "FlowCytometry-0.0.3.post0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "90af183ef0d2ae35ab21b07ede9cdacf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 22047,
"upload_time": "2024-09-03T15:19:01",
"upload_time_iso_8601": "2024-09-03T15:19:01.128169Z",
"url": "https://files.pythonhosted.org/packages/17/f3/0d6437cdbaa31ac30c819ad271b4b4b00f60cc1420fafc3341d588e5cb3e/FlowCytometry-0.0.3.post0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2d1ebf596d9c9be6937496de1b46feba550f8dd19c3867cebf0e049933d02a1",
"md5": "c9ad21cc6f321278f6e33a1c7da13f99",
"sha256": "abba6411bfc76380abdd1d60afdb848dacd684456a816a50a98cacfb6b9a18b3"
},
"downloads": -1,
"filename": "flowcytometry-0.0.3.post0.tar.gz",
"has_sig": false,
"md5_digest": "c9ad21cc6f321278f6e33a1c7da13f99",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 715663,
"upload_time": "2024-09-03T15:19:03",
"upload_time_iso_8601": "2024-09-03T15:19:03.049442Z",
"url": "https://files.pythonhosted.org/packages/a2/d1/ebf596d9c9be6937496de1b46feba550f8dd19c3867cebf0e049933d02a1/flowcytometry-0.0.3.post0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-03 15:19:03",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "flowcytometry"
}