python-pandas-plink 2.3.2-1
Package Information
| Description | Read PLINK files into Pandas data frames pandas-plink reads and writes PLINK1 binary (bed/bim/fam) files into xarray-backed data structures, exposing the genotypes as a dask array and the variant and sample annotations as pandas data frames. Reading of PLINK2 binary (pgen/pvar/psam) files is supported as well. It is the genotype import layer of the tensorqtl mapper for quantitative trait loci analysis. |
|---|---|
| Maintainer | Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org> |
| Changed By | Andreas Tille <tille@debian.org> |
| Sponsor | tille@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/med-team/python-pandas-plink.git (browse) |
| Closes | #1155029 |
| Tracker | https://tracker.debian.org/pkg/python-pandas-plink |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Architecture | source amd64 |
|---|---|
| Distribution | unstable |
| Date | Tue, 24 Nov 2026 12:50:20 +0100 |
| Source | python-pandas-plink |
| Version | 2.3.2-1 |
| Changed-By | Andreas Tille <tille@debian.org> |
Changelog
python-pandas-plink (2.3.2-1) unstable; urgency=medium . * Initial release (Closes: #1155029)
.dsc
| Priority | optional |
|---|---|
| Component | main |
| Package-List | python3-pandas-plink deb python optional arch=any |
| Section | python |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pandas-plink Upstream-Contact: Danilo Horta <danilo.horta@pm.me> Source: https://github.com/limix/pandas-plink Files: * Copyright: 2018 Danilo Horta <danilo.horta@pm.me> License: Expat Files: debian/* Copyright: 2026 Andreas Tille <tille@debian.org> License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DFSG Assistant LLM REVIEW 0 blocker, 0 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for python-pandas-plink version 2.3.2-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 0 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 6 found
Licensing
Upstream is MIT/Expat throughout: LICENSE.md states "Copyright (c) 2018 Danilo Horta" under the MIT text, and no other holder appears anywhere in the tree (the only other notice is doc/conf.py's copyright = "2018, Danilo Horta"). debian/copyright is DEP-5, matches both holders (upstream and debian/*), uses the correct short name Expat, reproduces the licence text, and Files: * covers the C sources, docs, notebook and the PLINK/GRM/REL test fixtures. No non-free terms, no vendored third-party code, and no file without a licence. The patch adds only setup.py and build metadata, covered by Files: debian/*.
Packaging
Packaging is sound for a first upload: debhelper 14 with the dh sequencer and pybuild, correct Build-Depends (all build-time test deps marked <!nocheck>, cffi and pyproject plugins present), complete runtime Depends matching the module imports, arch:any with a compiled cffi extension, DEP-3 patch, autopkgtest, Vcs-*, upstream metadata, and Standards-Version 4.7.4 against Policy 4.7.4.1. Two minor, upstream-inherited defects are worth a patch or upstream report: the documented get_data_folder() returns a path that does not exist in the installed package because the test data lives in tests/data_files and is not installed, and version still says 2.3.1 while the package is 2.3.2.
Issues
minor packaging 1. get_data_folder()/example_file_prefix() point at pandas_plink/test/data_files, which the binary package does not contain ◂
- Files:
pandas_plink/_data.py:10-22,pandas_plink/__init__.py:2,MANIFEST.in:8-26,doc/usage.rst:12-27,pandas_plink/_read.py:46,pandas_plink/_read_grm.py:23,pandas_plink/_read_rel.py:19,pandas_plink/_write.py:112,pyproject.toml:32 - Basis: checked, in the package or with a reference tool
- Evidence:
return os.path.join(p, "test", "data_files")in _data.py, while the data is attests/data_files/and the patch's[tool.setuptools] packages = ["pandas_plink"]installs only that package; there is no debian/*.install or override installing tests/. MANIFEST.in likewise namespandas_plink/test/data_files/chr11.bedandversion.py, neither of which exists in the source tree. - Problem: get_data_folder() and the deprecated example_file_prefix() are exported in all, documented in doc/api/, and used by the doctests of read_plink, read_plink1_bin, read_grm, read_rel and write_plink1_bin as well as by doc/usage.rst. In the installed package the returned directory does not exist, so these documented calls fail with FileNotFoundError and
pandas_plink.test()(which runs those doctests with --doctest-modules) fails. The autopkgtest does not catch it because tests/ resolves its fixtures from its own directory. - Fix: Install the fixtures at the path the code expects, e.g. a debian/python3-pandas-plink.install line for tests/data_files → usr/lib/python3/dist-packages/pandas_plink/test/data_files (or an override_dh_auto_install doing the copy), and correct MANIFEST.in; alternatively patch _data.py to a path the package really ships. Forward the mismatch upstream.
minor packaging 2. pandas_plink.version is 2.3.1 in a 2.3.2 package ◂
- Files:
pandas_plink/__init__.py:9,pyproject.toml:7 - Basis: checked, in the package or with a reference tool
- Evidence:
__version__ = "2.3.1"versusversion = "2.3.2"in pyproject.toml and the changelog'spython-pandas-plink (2.3.2-1). - Problem: The package advertises version 2.3.2 but reports 2.3.1 from pandas_plink.version, so code that checks the version gets the wrong answer. This is an upstream oversight, but it is shipped in Debian.
- Fix: Carry a one-line patch setting version = "2.3.2" (or generate it from the package metadata) and forward it upstream.
Verified ◂
- Read debian/copyright in full (DEP-5, Format line correct): Files: * 2018 Danilo Horta Expat, Files: debian/* 2026 Andreas Tille Expat, Expat text reproduced, matches LICENSE.md.
- Grepped the whole tree, dotfiles and ignored files included, for Copyright/(C)/©/SPDX/licence names: the only notices are LICENSE.md, doc/conf.py (
copyright = "2018, Danilo Horta") and README.md's MIT mention; no other holder, no non-free wording, no GPL/LGPL/Apache/MPL code. - No vendored third-party library: pandas_plink/_bed_reader.c, _bed_writer.c and .h are the package's own hand-written CFFI sources compiled into pandas_plink.bed_reader; pgen.ksy is a format description with no third-party header.
- debian/patches/0001_convert_to_setuptools.patch: DEP-3 fields (Description, Origin, Forwarded, Last-Update), only rewrites pyproject.toml and adds setup.py; setup.py present in the tree is created by this patch, not an upstream file.
- tests/data_files/chr11.bed and chr12.bed: PLINK1 binary genotype fixtures read by tests/test_reader.py (read_plink1_bin wildcard tests); test data, covered by Files: *.
- tests/data_files/grm-bin/plink.grm.N.bin: GCTA GRM N-matrix binary fixture used by read_grm tests; test data, covered by Files: *.
- tests/data_files/rel-bin/plink2.rel.bin: PLINK2 REL binary fixture used by read_rel tests; test data, covered by Files: *.
- tests/data_files/grm-gz/plink.grm.gz: gzip-compressed text GRM fixture (read_grm 'gz' test); test data, covered by Files: *.
- tests/data_files/rel-zs/plink2.rel.zst: zstd-compressed REL fixture (read_rel 'zs' test); test data, covered by Files: *.
- prescan author check: no holder found in files that debian/copyright does not name; consistent with my grep.
- Build-Depends cross-checked against imports: cffi (build_ext.py, pandas_plink.bed_reader), pandera, zstandard, deprecated, dask, xarray, pandas, numpy, tqdm are all declared; build-time test deps carry <!nocheck> and dh skips dh_auto_test then (compat 14).
- Runtime Depends match the modules imported by pandas_plink (_bed_read, _read, _read_rel, _data, _type, _write) plus python3-cffi for the _cffi_backend import.
- Standards-Version 4.7.4 against Policy 4.7.4.1 (first two components match); changelog first entry 2.3.2-1 unstable with a Closes; Vcs-Git/Vcs-Browser/Homepage/upstream metadata present; autopkgtest control and runner use only declared packages and py3versions from python3.
- Read every file under debian/ except debian/watch (reviewed elsewhere).
- uscan found the packaged version as the newest upstream release (upstream
2.3.2, packaged2.3.2).
Not confirmed ◂
- debian/clean lists only pandas_plink/bed_reader*.so; CFFI/setuptools also emits a C source while building, and I could not confirm where it is written (cffi is not installed on the reviewing system), so I could not decide whether a generated pandas_plink/bed_reader.c is left in the source tree and should be added to debian/clean.
- Binary fixtures (tests/data_files/*.bed, *.bin, *.gz, *.zst) were not opened; their formats are judged from their names and the code that reads them.
- The orig tarball's top directory is limix-pandas-plink-865f5a5, i.e. a GitHub commit archive rather than a release tarball; I could not confirm that the commit is upstream's 2.3.2 release (CHANGELOG ends at 2.2.6 and version says 2.3.1).
Proposed changes ◂
None.
Uploader's response to the LLM review
Please accept
— Andreas Tille (tille), 0 hours ago