Changelog¶
0.4 / 2026-11-04¶
- Added VCF input support using POS/REF-length conversion to BED half-open
intervals, plus Python loop
inter1d,inter, andmergeoperations. Indexed Python loop operations were benchmarked faster than the installed pgltools Python 2 implementations on representative inputs. - Renamed paired-loop commands to
inter1d,inter, andmerge. - Added source/target anchor direction controls for one-dimensional intersection, paired-loop intersection, and one-anchor loop merging.
- Confirmed
bedpe,txt, andtxtnoheadoutput for all paired-loop operations and added BEDPE fixtures for direction and merge tests.
0.3 / 2026-09-25¶
-
Changed multi-input file output to write one result per input using an
.annodefault or the-osuffix;stdoutand/dev/stdoutretain merged output. Headerless BED text output now assumes BED3 and names extra columnsfield4,field5, and so on. -
Added comma-separated and
.lst/.listmulti-input support; independent input files can be processed in parallel with--workers. -
Updated
list-dbto hide compatibilitydefdirectories when a concrete installed version is available and mark selected gene/feature entries as default. -
Added
--write-readme/--readmeto write command-specific methods and output-column notes, and simplified.run.logto expanded command-only entries. - Added
SJCAB_PEAK2ANNO_WRITE_READMEto generated rc files; it can be set in the RC file or environment, with the environment taking precedence. An existing README is not changed. - Simplified
list-dbto list gene BED files and feature folders with columnsspecies,version,annotation,default, andpath. - Replaced setuptools-scm with versioningit for automatic Git-based package versioning in pip and conda builds.
- Removed the
sjcab_peak2anno_dbversion constraint from pip, conda, and automatic database installation. - Added
SJCAB_PEAK2ANNO_AUTO_INSTALL_DBrc/environment configuration for the automatic database-installation default.
0.2.0 / 2026-09-24¶
- Updated automatic database installation to use the current
install-genebedandinstall-featuresubcommands. - Restricted automatic installation to the requested species and improved
list-dbdiscovery for installed current-layout BED files. - Updated gene-reference discovery to use
DB_PATH/genebed, corrected species/default reporting, and alignedlist-dboutput into columns. - Corrected closest-gene distances to use standard BED half-open gap lengths; for example, a gap from peak end 36,936,544 to TSS start 36,974,543 is reported as 37,999 bp.
- Corrected minus-strand TSS conversion to use the BED end coordinate, so strand-aware closest-gene distances match the GENCODE/voom convention.
- Removed the gene-type option from feature-only commands.
- Fixed feature/state BED loading to bypass gene-type filtering entirely.
- Enabled automatic installation of missing implicit database references by
default; use
--no-auto-install-dbto opt out. - Changed the default
SJCAB_PEAK2ANNO_GENE_TYPEand all related API/CLI defaults fromalltonomicro. - Reworked the interval backend and documentation for reproducible Python and optional bedtools execution, including reviewable one-stage and two-stage bedtools scripts and matching peak-to-gene results.
- Improved indexed peak-to-gene queries, deterministic sorting and nearest-gene tie handling, feature order-list support, worker options, and regression coverage.
- Renamed the Python package and source directory to
sjcab_peak2anno; the shorterpeak2annoname is retained only as a CLI alias. - Added
docs/api.mdwith Python API examples using canonicalsjcab_peak2annoimports. - Added selectable interval backends through the
SJCAB_PEAK2ANNO_BACKENDconfiguration setting.autoprefersbedtoolswhen available and records the resolved backend in.run.log. - Implemented batched single-window
bedtoolsqueries for fixed-cutoff peak-to-gene annotation while retaining exact Python-compatible results. - Removed the
pybedtoolsbackend and CLI backend options. The backend remains configurable throughSJCAB_PEAK2ANNO_BACKEND; selectedbedtoolscommands are recorded inbedtools-peak2anno.shfor review. - Changed the default
autobackend to Python and removed bedtools from pip and conda runtime requirements. Bedtools is now an explicit optional environment-selected backend. - Aligned promoter-first and single-wide-window cutoff boundaries so Python and bedtools approaches produce identical peak-to-gene assignments.
- Generated a standalone raw-BED bedtools review script that emits a package-compatible table with selectable one-window and two-stage modes.
- Added indexed interval-window and nearest-gene queries to reduce repeated full-reference scans.
- Made
peak2geneoutput voom-compatible: rows are chromosome/start sorted, grouped names and IDs are lexical, promoter and distal assignments are mutually exclusive, and closest-gene ties follow reference order. - Added
--order-lst/-Ofor feature priority ordering, including database defaults and theutrshorthand fororder.utr.lst. - Made default feature discovery independent of numeric cutoff prefixes and added two-column order-list feature-name mappings.
- Added 5'UTR and 3'UTR to the default feature set.
- Added default-valued
-n/--workers; loop anchors can now annotate in parallel and combined steps use the same worker setting. - Added short command-line aliases and documented the legacy
voom2anno.shequivalence for peak-to-gene runs. - Added regression coverage for backend resolution, distance compatibility, and command-line parsing.
0.1.8 / 2026-09-11¶
- Updated the package and conda dependency to
sjcab_peak2anno_db0.1.8.
2026-09-10¶
- Added separate strand-aware upstream/downstream promoter cutoffs for gene annotation.
- Added rc-file and environment configuration for database, species versions, and gene cutoffs.
- Added rc-file and environment defaults for gene type and isoform set.
- Added configurable max/percent output modes for feature and state annotations.
- Renamed
loop2annotoloop2geneand replaced legacy gene cutoff options with--prom-enha-cutoffs.
2026-09-04¶
- Renamed the distribution to
sjcab_peak2anno. - Added the
sjcab-peak2annoCLI alias and pinnedsjcab_peak2anno_dbto 0.1.5. - Previously added bedtools and pybedtools to the conda runtime dependencies; these are no longer required.
- Lowered the declared Python minimum from 3.9 to 3.7.
2026-07-14¶
- Added the
peak2annoPython package scaffold withpeak2annoandsjcab_peak2annoconsole entry points. - Added
peak2gene,narrow2feature,broad2feature,peak2state, andlist-dbsubcommands. - Added a noarch conda recipe depending on
sjcab_peak2anno_db. - Added package documentation and offline unit tests for toy BED/database inputs.