Skip to content

Installation

The linc-convert package is available through multiple installation methods. Note that the package is not yet available on PyPI, so all installation methods install directly from the GitHub repository.

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] @ git+https://github.com/lincbrain/linc-convert.git@main"
    
    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
  9. Run the command-line interface to ensure that installation was successful
    linc-convert --help
    
  10. View the list of arguments for a modality by running, for example:
    linc-convert psoct --help
    
  11. 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] @ git+https://github.com/lincbrain/linc-convert.git@main"
    

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

Installation with Docker or Apptainer/Singularity

For container-based installations using Docker, Apptainer, or Singularity, please refer to the Container Installation Guide.