Package: pyIMD
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 softwarepyIMD, which
allows to easily extract the mass as a function of time for non-moving cells out of the raw data.pyIMDStands for
Python inertial mass determination.This documentation ofpyIMDdescribes the API as well as gives provides a sample data set as well as sample scripts to
runpyIMDfrom 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.LinksDocumentationPyPIInstallationIf you download the portable for your operating system there is no need for any installation and you can usepyIMDdirectly trough the user interface.Download the latest in one portable for WINDOWS, UNIX, OSX x64 systemsOtherwise, to install this module from source, type on your terminal:>>> git clone https://git.bsse.ethz.ch/cunya/pyIMD
>>> cd pyIMD
>>> pip install .Example dataExample data files can be found in this repo. We provide example data of the various devices used (Cytomass and Nanonis) in various formats.Go toExample_data.Go toExample_scripts.UsageTo use this module in a Python script, write:>>> from pyIMD.imd import InertialMassDeterminationSet 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 = 4More info and examples can be found in the onlineDocumentationNoteUse tab completion to access the object’s attributes (e.g. to get the calculated mass):>>> mass = imd.calculated_cell_massKnown IssuesIn 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.ContributePlease do contribute! Issues and pull requests are welcome.
Thank you for your help improving software one changelog at a time!