Polyclonal

Latest version: v6.14

Safety actively analyzes 706259 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

2.2

---
- Require at least ``pandas`` 1.5.
- Some minor changes to avoid ``pandas`` warnings about future deprecations.
- For ``Polyclonal`` initialization, allow `data_mut_escape_overlap` != "exact" even with `sites` set

2.1

---
- ``lineplot_and_heatmap`` filters site max value after other slider filters, this gives correct behavior and is sort of a bug fix for the plots.
- Add ``slider_binding_range_kwargs`` to ``lineplot_and_heatmap``
- Allow ``df_to_merge`` to be list for ``mut_escape_plot`` methods.

2.0

---
Many of these changes are **backward incompatible** with respect to plotting.

- Changed plotting of escape. Replaced ``mut_escape_heatmap`` and ``mut_escape_lineplot`` with ``lineplot_and_heatmap``
- Changed default epitope colors for ``Polyclonal`` objects.
- Replaced ``Polyclonal.mut_escape_heatmap`` and ``Polyclonal.mut_escape_lineplot`` with ``Polyclonal.mut_escape_plot``.
- Replaced ``PolyclonalCollection.mut_escape_heatmap`` and ``PolyclonalCollection.mut_escape_lineplot`` with ``PolyclonalCollection.mut_escape_plot``.

1.2

----
- ``PolyclonalCollection`` plotting (specifically lineplot) still works even if there is just one model in collection. Before this edge case caused an error.
- Allow negative site numbers.

1.1

----
- Sort sites in mutation and site-escape data frames output by ``PolyclonalCollection``.

1.0

---------------------------
- Renamed the bootstrapping models from ``PolyclonalCollection`` to ``PolyclonalBootstrap`` and made ``PolyclonalCollection`` a general-purpose class for collection of ``Polyclonal`` objects. This makes the idea of model collections more general, and better aligns the class names with what they actually do. This is a **backward-incompatible change**.
- Added methods for correlating models to ``PolyclonalCollection``: methods ``mut_escape_corr``, ``mut_escape_corr_heatmap``.
- Added ``sites`` parameter to ``Polyclonal`` to enable non-sequential-integer (eg, reference) based site numbering, and propagated this change to plotting and ``PolyclonalCollection``.
- Added the ``PolyclonalAverage`` class for computing the average of models.
- ``PolyclonalCollection`` and subclasses return both mean and median and provide option to plot either, and ``PolyclonalCollection.default_avg_to_plot`` attribute added.
- Remove the old ``Polyclonal.harmonize_epitopes_with`` method that modified ``Polyclonal`` models in place, and replaced with the new ``Polyclonal.epitope_harmonized_model`` that returns a copy of the original model with the epitopes harmonized and also provides guarantees about consistent epitope order, etc. This is a **backward-incompatible change**.
- Added ``alphabets.biochem_order_aas`` and by default plot heatmaps with biochemically ordered amino acids.
- Added `n_replicates` slider to ``PolyclonalCollection.mut_escape_heatmap``
- Added `min_replicates` to ``PolyclonalCollection.mut_escape_lineplot``
- Added ``plot.corr_heatmap`` function.
- Added ``utils.tidy_to_corr`` function.
- Added ``polyclonal_collection.fit_models`` to fit multiple models using multiprocessing.
- Added ``RBD_average.ipynb`` notebook.
- Fix bug in setting ``epitope_colors`` as dict in ``Polyclonal``.
- Fix ``SettingWithCopyWarning`` in heatmap plotting.
- Added ``letter_suffixed_sites`` parameter to ``MutationParser`` and ``site_level_variants``.
- Added ``sites`` to ``plot.mut_escape_heatmap`` and ``plot.mut_escape_lineplot`` to enable ordering of str site numbers and utilized within ``Polyclonal`` objects.
- Increment ``binarymap`` version requirement to >= 0.5.
- Changed real antibody example from REGN10933 to LY-CoV1404

Page 6 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.