Skip to main content

A photokinetic analysis package developed for the DeForest Group

Project description

Photosimulator

photokineticanalysis.py


PhotokineticAnalysis()
  

Functions:


PhotokineticAnalysis.check()
  

Checks that the inputs for the calculate_theoretical function are correct


PhotokineticAnalysis.calculate_theoretical()
  

This section allows for calculating theoretical photouncaging values using the following first order kinetic equation for photouncaging:

$Y = {Y_o} + (plateau-{Y_o})(1-exp(-K*x))$

${Y_o} = 0$

Plateau = 1

Input:

  • Array of x values (Dosage)
  • Photokinetic constant, k

Output:

  • Table of x and corresponding y values (normalized to 1)
  • Graph of theoretical data

PhotokineticAnalysis.calculate_experimental()
  

This section allows for calculating the photouncaging constant k using the first order kinetic equation:

$Y = {Y_o} + (plateau-{Y_o})(1-exp(-K*x))$

${Y_o} = 0$

Plateau = 1

Input:

  • Excel file formatted such that the first column is labelled with the time unitstime and has all the time values and the corresponding y values labelled.

Output:

  • Kinetic rate constand with standard deviation
  • Table of x and corresponding y values (normalized to 1)
  • Graph of theoretical data

photokineticanalysis.py


ChemotaxisSimulation()
  

Functions:


ChemotaxisSimulation.cell_movement()
  

This section allows for modeling cell migration in 2D. It is based off of a stochastic compartment model developed by Fadai et al. 2019.

Input:

  • n:matrix size
  • m:matrix size
  • CC:location of initial cells
  • V:compartment size
  • rm: motility rate between 0-1, where 1 equates to faster cells
  • rp: proliferation rate between 0-1, where 1 equates to max proliferation
  • rd: death rate between 0-1, where 1 equates to max death rate
  • tf: final dimensionless time
  • C_start: if there is a chemotactic variable applied, when is it applied.
  • C_end: if there is a chemotactic variable applied, when does it end.
  • rhox: how the chemotactic variable is applied over space (i.e gradient,etc)

Output:

  • n * m matrix with final cell positions

ChemotaxisSimulation.simulate()
  

This function plots cell position over time and saves a movie file.

Input:

  • Title of movie file to be saved

Output:

  • Movie file_name.gif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Photosimulator-0.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Photosimulator-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file Photosimulator-0.0.1.tar.gz.

File metadata

  • Download URL: Photosimulator-0.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for Photosimulator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1965100993aa535fcdd082f0b3962a99d55940a1150bd1bc61054273948015f8
MD5 cf951fad5b477d79a68067d05c67dca0
BLAKE2b-256 4a5f6144aaef0a7595ae684331ce07a11da936dc9ce9033ebc93eb94a1110afe

See more details on using hashes here.

File details

Details for the file Photosimulator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Photosimulator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for Photosimulator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b6b9b1394d988826c52c852f1dc552e9dfa9a7769ca2a4f468eb57d243108d
MD5 f38fa444061f756565f3b445c761f03d
BLAKE2b-256 4c651420c1246dce00b7e35cd2af3718eb2a4555e763cbb1161a638402d9c003

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page