Python Library Release Notes#
Version 1.6.1: February 12, 2026#
Fixed data overwrite bug in
RearrangementWriter.Fixed pkg_resources import error with setuptools>=82.0.0.
Version 1.6.0: July 7, 2025#
Updated schema.
Version 1.5.1: June 2, 2024#
Updated versioneer to v0.29.
Version 1.5.0: August 29, 2023#
Updated schema set and examples to v1.5.
Officially dropped support for Python 2.
Added check for valid enum values to schema validation routines.
Set enum values to first defined value during template generation routines.
Removed mock dependency installation in ReadTheDocs environments from setup.
Improved package import time.
Version 1.4.1: August 27, 2022#
General:
Updated pandas requirement to 0.24.0 or higher.
Added support for missing integer values (
NaN) inload_rearrangementby casting to the pandasInt64data type.Added gzip support to
read_rearrangement.Significant internal refactoring to improve schema generalizability, harmonize behavior between the python and R libraries, and prepare for AIRR Standards v2.0.
Fixed a bug in the
validatesubcommand ofairr-toolscausing validation errors to only be reporting for the first invalid file when multiple files were specified on the command line.
Data Model and Schema:
Added support for arrays of objects in a single JSON or YAML file.
Added support for the AIRR Data File and associated schema (DataFile, Info). The Data File data format holds AIRR object of multiple types and is backwards compatible with Repertoire metadata.
Added support for the new germline and genotyping schema (GermlineSet, GenotypeSet) and associated schema.
Renamed
schema.CachedSchematoschema.AIRRSchema.Removed
specs/blank.airr.yaml.
Deprecations:
Deprecated
load_repertoire. Useread_airrinstead.Deprecated
write_repertoire. Usewrite_airrinstead.Deprecated
validate_repertoire. Usevalidate_airrinstead.Deprecated
repertoire_template. Useschema.RepertoireSchema.templateinstead.Deprecated the commandline tool
airr-tools validate repertoire. Useairr-tools validate airrinstead.
Version 1.3.1: October 13, 2020#
Refactored
merge_rearrangementto allow for larger number of files.Improved error handling in format validation operations.
Version 1.3.0: May 30, 2020#
Updated schema set to v1.3.
Added
load_repertoire,write_repertoire, andvalidate_repertoiretoairr.interfaceto read, write and validate Repertoire metadata, respectively.Added
repertoire_templatetoairr.interfacewhich will return a complete repertoire object where all fields havenullvalues.Added
validate_objecttoairr.schemathat will validate a single repertoire object against the schema.Extended the
airr-toolscommandline program to validate both rearrangement and repertoire files.
Version 1.2.1: October 5, 2018#
Fixed a bug in the python reference library causing start coordinate values to be empty in some cases when writing data.
Version 1.2.0: August 17, 2018#
Updated schema set to v1.2.
Several improvements to the
validate_rearrangementfunction.Changed behavior of all airr.interface functions to accept a file path (string) to a single Rearrangement TSV, instead of requiring a file handle as input.
Added
baseargument toRearrangementReaderandRearrangementWriterto support optional conversion of 1-based closed intervals in the TSV to python-style 0-based half-open intervals. Defaults to conversion.Added the custom exception
ValidationErrorfor handling validation checks.Added the
validateargument toRearrangementReaderwhich will raise aValidationErrorexception when reading files with missing required fields or invalid values for known field types.Added
validateargument to all type conversion methods inSchema, which will now raise aValidationErrorexception for value that cannot be converted when set toTrue. When setFalse(default), the previous behavior of assigningNoneas the converted value is retained.Added
validate_headerandvalidate_rowmethods toSchemaand removed validations methods fromRearrangementReader.Removed automatic closure of file handle upon reaching the iterator end in
RearrangementReader.
Version 1.1.0: May 1, 2018#
Initial release.