Skip to main content

Use nlScript to develop a language based on natural English syntax to control microscope acquisition pipelines.

Project description

nlScript microscope language

A natural language for configuring complex microscope timelapse experiments, based on nlScript.

Even on modern microscopes, time-lapse experiments are often limited to data acquisition at fixed intervals. At each time point, images are acquired at a fixed number of planes, at fixed stage positions, possibly repeated for a fixed set of channels. The dynamic nature of biological processes often requires a more flexible imaging pipeline to be observed optimally, e.g., with the imaging interval adapted to the rate of change, with different channels imaged at varying intervals, or with different positions imaged with varying magnification. The hardware of modern microscope allows for such a flexibility, the limiting factor is the software. The reasons for this is the effort needed to design and develop a user interface that is intuitive and yet allows to configure such a flexible imaging experiment.

To address this gap, we have developed a language for describing flexible time-lapse imaging experiments on microscopes. While our language has been developed for the Zeiss Celldiscoverer 7, it is easily adaptable to other microscope modalities. Remarkably, only a few sentence templates are sufficient to configure time-lapse experiments that (i) provide flexible intervals, (ii) select positions and channels at each time point, (iii) adopt magnification, (iv) adopt channel settings such as laser power, (v) provide adjustable environmental settings (temperature and CO2 concentration).

More information about how to use nlScript to develop custom natural language interfaces can be found here:

You can interactively try the language at https://nlScript.github.io/nlScript-microscope-language-js.

Installation

  • Install Python >=3.10 (including pip and venv)

  • Optional: create a virtual environment:

    cd path/to/this/repository-folder
    python -m venv env
    
  • If you created a virtual environment, activate it. On Windows, using Git Bash, e.g.

    source env/Scripts/activate
    
  • Install nlScript-microscope-language:

    pip install nlScript-microscope-language
    
  • Run it:

    nlScript-microscope-language 
    

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

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

nlscript_microscope_language-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

nlScript_microscope_language-0.1.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file nlscript_microscope_language-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nlscript_microscope_language-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82321ceea4b05a565bcc4be1aab296c7623177dc91e82d526fe44b0d35e0e35f
MD5 6b0e8edca2c5d1b1a21e83b36128607d
BLAKE2b-256 a21ef56bf457b69f965ef65de3c0d84d998ef61868b321a9395f2303ce924697

See more details on using hashes here.

File details

Details for the file nlScript_microscope_language-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nlScript_microscope_language-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d8a7eb2448859b134335c1192ae7391dd13a4854c42ac835f4c8811b2312502
MD5 5928d0bbae0ac7771084c301c75ea682
BLAKE2b-256 edd26314a2b0d6faf87dace767e32ec21ba75bf590b7b2a8831bbc843528e8b6

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