Welcome to pyIMD!
Evolution of mass over time and the corresponding microscopy images are shown for a time span of 20min. The mass data was acquired every 10ms (data shown in black), overlaid in red is the rolling mean with a window of 1000. Images taken every 3 min over the observed times span, we see on average a steady increase of the cell mass.
With the introduction of a picoscopic cell balance that is compatible with optical microscopy, a new tool for the investigation of the cell state-dependent cell mass regulation is available for use in biophysics, cell biology, physiology and medicine. However, the analysis of the data can be challenging due to a) the amount of high resolution data or b) the structure of low-stress measurement (low resolution) data. Here, we introduce the software pyIMD, which allows to easily extract the mass as a function of time for non-moving cells out of the raw data. pyIMD Stands for Python inertial mass determination.
This documentation of pyIMD describes the API as well as gives provides a sample data set as well as sample scripts to run pyIMD from Jupyter or the Python console but it also contains a tutorial about how pyIMD is used with the user interface. The aim of this module is the calculation of the total/inertial mass for measurements taken in the continuous sweep or in the phase-lock loop (PLL) mode.
Links
Installation
If you download the portable for your operating system there is no need for any installation and you can use pyIMD directly trough the user interface.
Otherwise, to install this module from source, type on your terminal:
>>> git clone https://git.bsse.ethz.ch/cunya/pyIMD >>> cd pyIMD >>> pip install .
Example data
Example data files can be found in this repo. We provide example data of the various devices used (Cytomass and Nanonis) in various formats.
Go to Example_data.
Go to Example_scripts.
Usage
To use this module in a Python script, write:
>>> from pyIMD.imd import InertialMassDetermination
Set path to files either absolute or relative to where you run the script from, i.e. using the provided show case data:
>>> file_path1 = "/pyIMD/examples/data/show_case/0190110_ShowCase_PLL_B.txt"
>>> file_path2 = "/pyIMD/examples/data/show_case/20190110_ShowCase_PLL_A.txt"
>>> file_path3 = "/pyIMD/examples/data/show_case/20190110_ShowCase_PLL_LongTerm.txt"
>>> imd.create_pyimd_project(file_path1, file_path2, file_path3, '\t', 23, 'PLL', figure_width=16.5, figure_height=20,
initial_parameter_guess=[60.0, 2.0, 0.0, 0.0], cell_position=9.5, figure_format='pdf')
>>> imd.run_intertial_mass_determination()
List default settings for calculation:
>>> imd.print_pyimd_project()
Change settings for calculation and figure output the following way before calling run_intertial_mass_determination():
>>> imd.settings.spring_constant = 4
More info and examples can be found in the online Documentation
Note
Use tab completion to access the object’s attributes (e.g. to get the calculated mass):
>>> mass = imd.calculated_cell_mass
Known Issues
In a IPython notebook the progress bar works not properly but has no effect on the calculations. In a IPython notebook the calculation speed is much slower.
Contribute
Please do contribute! Issues and pull requests are welcome. Thank you for your help improving software one changelog at a time!
Metadata
Release files for pyIMD 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyIMD-0.0.8.tar.gz | 51.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyIMD-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 142.4 kB
Release files / pyIMD-0.0.8.tar.gz
| Download URL | pyIMD-0.0.8.tar.gz |
|---|---|
| Size | 51.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a91b3a1f655b8f8cd0422bc4b99d2a72ed66a7708eae8c21bd6e23b8f7c8814c
|
|
BLAKE2b-256 checksum How to use checksums |
3972726b18ce4293510dbd231e7c0071434dd972b7cfb4631f88e4478408dce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
|
Release files / pyIMD-0.0.8-py3-none-any.whl
| Download URL | pyIMD-0.0.8-py3-none-any.whl |
|---|---|
| Size | 90.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
980df567d74d4151fd11476fe3eeadca2cd753857fd8c8def9eef6886caa7465
|
|
BLAKE2b-256 checksum How to use checksums |
aa5b2ddb4e47f795851ec4ad2b91aa8a349e6def3cca0487a1908928bcb4c1ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
|