Skip to main content

Collection of tools for painting super-resolution images

Project description

Documentation Status CI DOI Downloads Python versions PyPI version Changelog UML Render view

Collection of tools for painting super-resolution images. The Picasso software is complemented by our Nature Protocols publication.

A comprehensive documentation can be found here: Read the Docs.

To see all changes introduced across releases, see the changelog.

Picasso 0.10

In this version, a lot of new architectural (behind the scenes) changes were introduced to make Picasso more modular, maintainable and accessible to both developers and end-users. The adaptations include flexible dependencies and Python versions, integration of GPUfit, faster SPINNA and many more. You can explore these improvements in the changelog.

Installation

Check out the Picasso release page to download and run the latest compiled one-click installer for Windows or MacOS (the latter is experimental and feedback is welcome). Here you will also find the Nature Protocols legacy version (v0.1.0).

Python is also distributed as a PyPI package that is platform-independent (pip install picassosr) which grants not only GUI but also access to Picasso’s internal routines in custom Python programs. For more details, see the “Via PyPI” section below. For examples of how to use Picasso in Python scripts, see the section “Example Usage” below.

Note: Since v0.10.0 Picasso is more flexible in terms of dependencies and Python versions. Previously only Python 3.10 was supported, now newer versions are encouraged.

Via PyPI

  1. Open the console/terminal and create a new conda environment: conda create --name picasso python=3.14. Note you can use other Python versions as well.

  2. Activate the environment: conda activate picasso.

  3. Install Picasso package using: pip install picassosr.

  4. You can now run any Picasso function directly from the console/terminal by running: picasso render, picasso localize, etc, or import Picasso functions in your own Python scripts.

For Developers (local, editable installation)

If you wish to use your local version of Picasso with your own modifications:

  1. Open the console/terminal and create a new conda environment: conda create --name picasso python=3.14. Note you can use other Python versions as well.

  2. Activate the environment: conda activate picasso.

  3. Change to the directory of choice using cd.

  4. Clone this GitHub repository by running git clone https://github.com/jungmannlab/picasso. Alternatively, download the zip file and unzip it.

  5. Open the Picasso directory: cd picasso.

  6. You can modify Picasso code in this directory.

  7. To create a local Picasso package to use it in other Python scripts, run pip install -e ".[dev]". When you change the code in the picasso directory, the changes will be reflected in the package.

  8. You can now run any Picasso module directly from the console/terminal by running: picasso render, picasso localize, etc, or import Picasso functions in your own Python scripts.

Updating

If Picasso was installed from PyPI (not the developer version), run the following command:

pip install --upgrade picassosr

Creating shortcuts on Windows (optional)

Run the PowerShell script “createShortcuts.ps1” in the gui directory. This should be doable by right-clicking on the script and choosing “Run with PowerShell”. Alternatively, run the command powershell ./createShortcuts.ps1 in the command line. Use the generated shortcuts in the top level directory to start GUI components. Users can drag these shortcuts to their Desktop, Start Menu or Task Bar.

Example Usage

Besides using the GUI, you can use picasso like any other Python module. Consider the following example::

from picasso import io, postprocess

path = 'testdata_locs.hdf5'
locs, info = io.load_locs(path)

# Link localizations and calculate dark times
linked_locs = postprocess.link(picked_locs, info, r_max=0.05, max_dark_time=1)
linked_locs_dark = postprocess.compute_dark_times(linked_locs)

print(f"Average bright time {linked_locs_dark['n'].mean():.2f} frames")
print(f"Average dark time {linked_locs_dark['dark'].mean():.2f} frames")

For more examples, visit the sample notebooks.

Contributing

If you have a feature request or a bug report, please post it as an issue on the GitHub issue tracker. If you want to contribute, put a PR for it. You can find more guidelines for contributing here. We will gladly guide you through the codebase and credit you accordingly. Additionally, you can check out the Projects-page on GitHub. You can also contact us via picasso@jungmannlab.org.

Citing Picasso

If you use Picasso in your research, please cite our Nature Protocols publication describing the software.

J. Schnitzbauer*, M.T. Strauss*, T. Schlichthaerle, F. Schueder, R. Jungmann
Super-Resolution Microscopy with DNA-PAINT
Nature Protocols (2017). 12: 1198-1228 DOI: 10.1038/nprot.2017.024

If you use some of the functionalities provided by Picasso, please also cite the respective publications:

Credits

  • Design icon based on “Hexagon by Creative Stalls” from the Noun Project

  • Simulate icon based on “Microchip by Futishia” from the Noun Project

  • Localize icon based on “Mountains” by MONTANA RUCOBO from the Noun Project

  • Filter icon based on “Funnel” by José Campos from the Noun Project

  • Render icon based on “Paint Palette” by Vectors Market from the Noun Project

  • Average icon based on “Layers” by Creative Stall from the Noun Project

  • Server icon based on “Database” by Nimal Raj from the Noun Project

  • SPINNA icon based on “Spinner” by Viktor Ostrovsky from the Noun Project

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picassosr-0.10.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

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

picassosr-0.10.0-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file picassosr-0.10.0.tar.gz.

File metadata

  • Download URL: picassosr-0.10.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for picassosr-0.10.0.tar.gz
Algorithm Hash digest
SHA256 a803f3b3a5f76975282918f7b4240311d2aaa9668ecc8650bf7b4489799c0926
MD5 b8ca1efc1b320b5eb0fe9bf446c043f6
BLAKE2b-256 89374d3206d50c4b8c5313e0b323c0370f72607121696373c9af3bb3401bd750

See more details on using hashes here.

File details

Details for the file picassosr-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: picassosr-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for picassosr-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c3a7648bcd68f2f62a3186e0a47811e6513b42eb1bcca046e45776e66fd271c
MD5 fb751fe1f507d42a85ca9289ec3b19de
BLAKE2b-256 27f007e4474d3d2c5b1f8a9ae372b07b5c13877b85d7567d33fa26cac0a65edd

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