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.2.0.tar.gz (13.4 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.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nlscript_microscope_language-0.2.0.tar.gz
Algorithm Hash digest
SHA256 de19befbddf26ad21d35a362c642e9fb0bc025d95cdfcdc68cbac99247576f69
MD5 be8aed31c6b9bc12ad1df18f5a8235d7
BLAKE2b-256 bbb4e848262ebf415ea1527d997cb50da2a84d6c7fe48f380f603520bfc0f630

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nlScript_microscope_language-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3672e71909a8ae25c21569224af42e7c8f9cf5b323d7d8d4a9ef955100358365
MD5 5d171966948132c1db901e33bb594931
BLAKE2b-256 af4485fc7648b3a8dd31e3b4b6e88949bf097a4aca93ab69f22b5fded2e12638

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