Skip to content

Installation

The linc-convert package is available on PyPI and can be installed with pip or pipx.

Installation with pip

  1. (Optional) Create a new environment
    conda create -n linc-convert python=3.11
    
  2. (Optional) Activate the environment
    conda activate linc-convert
    
  3. Install the linc-convert package in your environment
    pip install "linc-convert[all]"
    
    If you don't want to install all dependencies, you can install the dependencies for your specific use case. Replace all in the above command with:
  4. df for dark-field microscopy
  5. lsm for light-sheet microscopy
  6. psoct for polarization-sensitive optical coherence tomography
  7. wk for Webknossos annotations
  8. ts for the TensorStore backend

To install the latest development version from GitHub instead, run:

pip install "linc-convert[all] @ git+https://github.com/lincbrain/linc-convert.git@main"
4. Run the command-line interface to ensure that installation was successful
linc-convert --help
5. View the list of arguments for a modality by running, for example:
linc-convert psoct --help
6. View the full list of parameters by running, for example:
linc-convert psoct single_volume --help

Installation with pipx

pipx installs Python applications in isolated environments, making it ideal for command-line tools like linc-convert.

  1. Install pipx (if not already installed):

    python -m pip install --user pipx
    python -m pipx ensurepath
    

  2. Install linc-convert with pipx:

    pipx install "linc-convert[all]"
    
    To install the latest development version from GitHub instead, run:
    pipx install "linc-convert[all] @ git+https://github.com/lincbrain/linc-convert.git@main"
    

  3. Verify the installation:
    linc-convert --help