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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nlScript_microscope_language-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31b031fa627b701c831f19dd876e32688fdf2dae9b0051c885003217c28552b7
MD5 bc0c112e8fd5b739cb96e04a70670712
BLAKE2b-256 7947c6de202c8b9647a586e19ecf5c7befcb42683bc5a99a1f9af37e0b9bcb9a

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