Skip to content

PGAlign 1.1.0

Choose a tag to compare

@QihuangZhang QihuangZhang released this 14 Oct 03:36
· 3 commits to main since this release

PGAlign 1.1.0 is the first release on PyPI:

pip install pgalign              # or "pgalign[imzml]" to read imzML files

The alignment itself is unchanged. On the manuscript's atherosclerosis data, pg.align reproduces the reported 198 paired, 78 shifted and 20 flagged peak groups. Release v1.0.1 remains the version that accompanies the manuscript.

New since 1.0.1:

  • pg.align(unk, ref) runs the whole pipeline in one call and returns the aligned dataset, the reference on the same bins, a per-group shift table, the ambiguity table and a one-line summary. Its defaults follow the Methods, with peaks called on the three-point moving average; smooth=False gives the peak caller used in the simulation study and the canine sarcoma analysis.
  • pg.read_imzml reads imzML files and grids processed imzML as the manuscript's simulation study did; pg.read_scils_csv reads SCiLS Lab CSV exports.
  • pg.write_h5ad and pg.read_h5ad save and load results on every anndata version, since anndata 0.13 cannot write a column named m/z.
  • A command line: pgalign align unknown.imzML reference.imzML -o aligned.h5ad.
  • Input that cannot be aligned (m/z missing or out of order, missing intensities, m/z ranges that do not overlap, spectra without signal) raises an error that says what to fix. Some of these cases used to fail with an unrelated error, and two of them returned an alignment that looked plausible.
  • The tutorial notebook runs on a standard install and uses pg.align.