Skip to content

Releases

vitrio 0.3.1

Choose a tag to compare

@oierlauzi oierlauzi released this 29 Nov 16:05

What's Changed

  • Convert half precision values with Highway, once per instruction set by @oierlauzi in #63
  • Strip the image_ prefix from strided_transfer files and symbols by @oierlauzi in #64
  • Rewrite the README for a newcomer, and keep one copy of each guide by @oierlauzi in #65

Full Changelog: v0.3.0...v0.3.1

vitrio 0.3.0

Choose a tag to compare

@oierlauzi oierlauzi released this 27 Nov 09:28

What's Changed

  • Write a batch of patches into one image, the mirror of reading them by @oierlauzi in #58
  • Read MRC files written before the identifier was specified by @oierlauzi in #59
  • Read the sections of a single volume as the images of a stack in vitrio.data by @oierlauzi in #60
  • Read and write the metadata of image files by @oierlauzi in #61

Full Changelog: v0.2.2...v0.3.0

vitrio 0.2.2

Choose a tag to compare

@oierlauzi oierlauzi released this 13 Nov 13:14
05b1177

What's Changed

  • Add the metadata and the text that make vitrio findable by @oierlauzi in #55
  • Wait for a held dataset directory rather than losing it by @oierlauzi in #56

Full Changelog: v0.2.1...v0.2.2

vitrio 0.2.1

Choose a tag to compare

@oierlauzi oierlauzi released this 11 Nov 12:46
37f5122

What's Changed

  • Make the supported formats of the README readable by @oierlauzi in #52
  • Add the logo kit and show it in the README and the documentation by @oierlauzi in #54
  • Benchmark campaign 1: harness additions and general performance fixes by @oierlauzi in #53

Full Changelog: v0.2.0...v0.2.1

vitrio 0.2.0

Choose a tag to compare

@oierlauzi oierlauzi released this 27 Oct 14:10
501a4e2

What's Changed

  • Convert float16 with bit arithmetic of our own, and drop half by @oierlauzi in #40
  • Add benchmarks, short of the end-to-end integrations by @oierlauzi in #42
  • Advise the pages a read of a mapped scratch touches by @oierlauzi in #43
  • Asynchronous file transfers, through io_uring where the kernel offers it by @oierlauzi in #45
  • Read and write ZARR arrays by @oierlauzi in #44
  • Read MRC files compressed with gzip, such as the .map.gz of the EMDB by @oierlauzi in #50
  • Rework the introduction of the README by @oierlauzi in #51

Full Changelog: v0.1.4...v0.2.0

vitrio 0.1.4

Choose a tag to compare

@oierlauzi oierlauzi released this 15 Oct 19:54
bda219b

What's Changed

  • Fetch and build the dependencies, so the sdist needs only a compiler by @oierlauzi in #30
  • Organize the examples by language and difficulty by @oierlauzi in #31
  • Give the Python package an API reference by @oierlauzi in #32
  • Test in ubuntu 22.04 and Python 3.12 by @oierlauzi in #29

vitrio 0.1.3

Choose a tag to compare

@oierlauzi oierlauzi released this 11 Oct 14:44
cca307e

The library only grows in this release: nothing in its ABI was removed or changed, so what was built against 0.1.2 works with 0.1.3.

  • DigitalMicrograph files. DM3 and DM4 files, which Gatan Microscopy Suite writes gain and dark references in, are read: images and stacks of them, of integers, floats or complex values, in either byte order. The thumbnail a file carries is skipped, and only its first image is read.
    gain = vio.read("gain.dm4")
    RGB and packed complex images are not read, nor are DM2 files or DM5 files, which are HDF5 and wait for it to be supported (#13).

vitrio 0.1.2

Choose a tag to compare

@oierlauzi oierlauzi released this 11 Oct 01:17
2a125ed

The library only grows in this release: nothing in its ABI was removed or changed, so what was built against 0.1.1 works with 0.1.2.

  • EER movies. An EER file, whose pages hold the events an electron-counting detector recorded, is read as a movie: whoever reads it chooses how many fractions to cut it into and how far to bin its pixels. The events themselves can be read too, as detector event timelines. Both work from C++ and from Python:
    readers = vio.detector_event_image_reader_provider(40, binning=2)
    movie = vio.read("movie.eer", readers, data_type=np.float32)  # 40 fractions
  • Scratches from Python. A scratch keeps a copy of what is read, in memory or in a mapped file, and vio.reader_provider and vio.loader read through one. A scratch can now also live in a directory that several programs share within a budget, the files used least recently giving way to new ones.
  • vitrio.data, which feeds images and their metadata to a model in batches: a dataset of the images a table of metadata points to and the columns beside them, a sampler that shuffles and shards, and a loader that keeps batches in flight and hands them out as numpy arrays, PyTorch tensors or JAX arrays. examples/classify_particles.py trains a classifier of particles with it.
  • Faster region transfers. The inner loop that moves a region between a file and an array is chosen once, not for every row.

vitrio 0.1.1

Choose a tag to compare

@oierlauzi oierlauzi released this 10 Oct 09:17

The library is the one of 0.1.0: nothing in it changed, and its ABI is the same. This release is about what surrounds it.

  • An example. examples/extract_particles.py crops the particles picked on a set of micrographs into stacks. It reads and writes the STAR files of RELION, and a box that lies inside its micrograph is the one RELION cuts.
  • A new README, which says what vitrio is for, lists the formats it reads and writes, and shows how to use it from Python and from C++.
  • The documentation of the C++ API, built from the headers and published with each release: https://gigabit-clowns.github.io/vitrio/
  • import vitrio as vio is how the package is imported wherever it is shown in use.
pip install --upgrade vitrio

vitrio 0.1.0

Choose a tag to compare

@oierlauzi oierlauzi released this 09 Oct 22:32

The first release of vitrio, which reads and writes the image files of electron microscopy. Its code comes from the image subsystem of rexlib.

The C++ library

  • Reads and writes MRC and TIFF files, a whole file at a time or a batch of images through a loader or a saver that work on a thread pool.
  • Crops patches out of an image, such as the particles of a micrograph.
  • A scratch keeps a copy of what is read, in memory or in a mapped file, so that reading the same images again does not go back to the files.
  • C++14, built with CMake 3.18 or newer, and used as find_package(vitrio).

The Python package

pip install vitrio
  • Wheels for Linux (x86_64 and aarch64), macOS (arm64 and x86_64) and Windows (x86_64), for Python 3.10 and newer. They hold everything they need.
  • An array is whatever hands out host memory through DLPack or the buffer protocol: a numpy array, a tensor of PyTorch or JAX. It is read into or written from where it is, without a copy.

vitrio is under construction, and its API may change before 1.0.