Repository navigation
Releases
PGAlign 2.0.0
PGAlign 2.0.0 trims the public API. The alignment is unchanged: every output on the bundled toy data is identical to 1.1.0, and release v1.0.1 remains the version that accompanies the manuscript.
pip install --upgrade pgalignBreaking changes:
- Removed
pgalign.prefilter_cells,pgalign.prefilter_genesandpgalign.prefilter_specialgenes, single-cell RNA-seq filters with no use for mass spectrometry data. pgalign.GKernalis nowpgalign.util.nadaraya_watson.rotate,group_range,in_range_lookup,comp_clusters,find_nearestandget_unk_comp_clustersare no longer exported frompgalign; they remain inpgalign.util. The public utilities aregridding,save_clusterresultsandspectrum_save.
Fixed:
PeakCalling.importpeakmarked the peaks imported for either spectrum in both;PeakCalling_single.importpeakraisedAttributeError. Both now keep the spectra apart.
Also new:
AGENTS.mdguides coding agents working in the repository, and https://stagill.github.io/PGAlign/llms.txt summarizes the package for AI assistants.- The Python examples in the README and the documentation run in CI, so an example that stops working fails the build.
PGAlign 1.1.0
PGAlign 1.1.0 is the first release on PyPI:
pip install pgalign # or "pgalign[imzml]" to read imzML filesThe 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=Falsegives the peak caller used in the simulation study and the canine sarcoma analysis.pg.read_imzmlreads imzML files and grids processed imzML as the manuscript's simulation study did;pg.read_scils_csvreads SCiLS Lab CSV exports.pg.write_h5adandpg.read_h5adsave and load results on every anndata version, since anndata 0.13 cannot write a column namedm/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.
PGAlign 1.0.1
This is the version that accompanies the manuscript "PGAlign: peak group alignment of mass spectrometry data" (Deng, Zhang & Zhang), under review at the Journal of Proteome Research. Later releases may change the results, so install this one to reproduce the manuscript:
pip install "git+https://github.com/StaGill/PGAlign@v1.0.1"The alignment algorithm is unchanged from the code that produced the manuscript's results. Changes since the package was renamed from GALAXY:
- Runs under pandas 3, which fresh installs on Python 3.12 and later receive. Step 3 and the output step looked up the m/z table by position in a way that pandas 3 reads as a label, and failed with a
KeyError. On pandas 2 the outputs are identical to before. - The mouse pancreas toy dataset now ships with the package (
pg.datasets.load_mouse_pancreas_toy()), so the examples in the README and the documentation run as written. - The output step,
pg.PGmzalign(align).getAnnSim(), which returns the unknown spectra on the reference m/z grid, is documented in the README, the tutorial and the API reference. - The README, the documentation and the case-study notes match the manuscript as submitted: data availability, section names, citation and the symbols used in the paper.
- Tests run on every push, on Python 3.9 with the minimum supported dependencies and on Python 3.14 with the latest releases. New tests cover the output step, the moving-average peak caller and the simulation code.
- The minimum scanpy version is now 1.9.2, since scanpy 1.9.0 and 1.9.1 cannot be imported alongside matplotlib 3.7 or later.