Catalog PyPI
PACKAGE EXPLORERView in registry

adjudicator

PyPI

A CLI tool for collapsing and filtering structural genome annotations using gene family assignments

annotationbioinformaticsgenegenomegfagffgff3model
Versions collected1
Direct dependencies6From release 1.0.0
Last observed20 Oct, 19:35 UTC

README

Version 1.0.0 documentation

Adjudicator

Version: 1.0.0 · License: Apache-2.0 · Status: Production/Stable
PyPI: pip install adjudicator · Source: ncgr/Adjudicator
Author: Connor Cameron · ctc@ncgr.org · National Center for Genome Resources


Overview

Adjudicator is a command-line tool for collapsing and filtering structural genome annotations across multiple sources. It uses best-hit HMM domain scores from gene family assignments (via the Legume Information System) to compare overlapping gene models and select the best-supported annotation for all overlapping models.

Two commands are provided:

  • collapse — Merge overlapping gene models from two or more annotators, selecting the best model per region.
  • repeat-filter — Remove gene models that overlap known repeat or transposon regions beyond a configurable coverage threshold.

Requirements

RequirementVersion
Python≥ 3.10
click≥ 8.1
intervaltree≥ 3.2.1
sortedcontainers≥ 2.4.0

Installation

pip install adjudicator
adjudicator --version
# adjudicator, version 0.1.0

Input File Formats

TSV Sample Sheet (--input-tsv)

Tab-separated. Lines beginning with # and blank lines are skipped.

ColumnTypeDescription
1stringUnique label for this evidence set.
2pathPath to the .gff3 structural annotation file.
3pathPath to the .gfa LIS gene family assignment file.

Row order determines precedence when gene models have equivalent scores.

# label	gff3_path	gfa_path
maker	/data/ann/maker.gff3	/data/fam/maker.gfa
helixer	/data/ann/helixer.gff3	/data/fam/helixer.gfa
stringtie	/data/ann/stringtie.gff3	/data/fam/stringtie.gfa

GFF3 (.gff3)

Standard GFF3 format with a three-level hierarchy: gene → mRNA → exon. See the GFF3 specification.

GFA (.gfa)

LIS gene family assignment files produced by the Legume Information System gene family pipeline.


Commands

collapse

Collapses overlapping structural annotations across all entries in the TSV. Processing is hierarchical: Row 1 vs. Row 2 produces an intermediate result, which is then compared against Row 3, and so on.

Synopsis

adjudicator collapse --input-tsv <FILE> [OPTIONS]

Options

OptionShortTypeDefaultValid rangeDescription
--input-tsv-ipath(required)—Tab-separated sample sheet.
--min-overlap-mfloat0.000010.0 – 1.0Minimum fractional overlap of feature A by feature B to consider them overlapping.
--no-orphans-nflagFalse—Exclude genes with no gene family assignment from the output.
--output-dir-opath.—Directory to write output files. Created if it does not exist.
--strict / --no-strictflagFalse—Exit with error if any referenced input file does not exist on disk.
--verbose-vflagFalse—Print per-sample file paths and processing steps to stdout.

Output Files

<output-dir>/
├── A_B.wao.gff3                       # Overlap intersections
├── A_B.unique_b.gff3                  # Gene models unique to annotator B
├── A_B.final.gff3                     # Adjudicated gene IDs
├── A_B.gfa                            # Merged gene family assignments
└── A_B.final.wsubfeatures.gff3        # ✅ Primary output

Examples

adjudicator collapse \
    --input-tsv samples.tsv \
    --output-dir results/collapse/
adjudicator collapse \
    --input-tsv samples.tsv \
    --no-orphans \
    --min-overlap 0.4 \
    --output-dir results/collapse/ \
    --verbose

repeat-filter

Filters gene models from each entry in the TSV against a reference repeat annotation. Gene models whose exons exceed --max-coverage overlap with a repeat region are removed.

Synopsis

adjudicator repeat-filter --input-tsv <FILE> --annotation <FILE> [OPTIONS]

Options

OptionShortTypeDefaultValid rangeDescription
--input-tsv-ipath(required)—Tab-separated sample sheet.
--annotation-apath(required)—GFF3 file of repeat regions to filter against.
--max-coverage-mfloat0.40.0 – 1.0Maximum fractional overlap between a gene's exons and a repeat region before the model is removed.
--output-dir-opath.—Directory to write output files. Created if it does not exist.
--strict / --no-strictflagFalse—Exit with error if any referenced input file does not exist on disk.
--verbose-vflagFalse—Print per-sample file paths and processing steps to stdout.

Output Files

<output-dir>/
├── <label>_repeat_filter.wao.gff3                  # Overlap intersections
└── <label>_repeat_filter.final.wsubfeatures.gff3   # ✅ Primary output

Examples

adjudicator repeat-filter \
    --input-tsv samples.tsv \
    --annotation repeats.gff3 \
    --output-dir results/filtered/
adjudicator repeat-filter \
    --input-tsv samples.tsv \
    --annotation transposons.gff3 \
    --max-coverage 0.3 \
    --output-dir results/filtered/ \
    --strict \
    --verbose

Workflow

# Step 1: Filter repeat regions
adjudicator repeat-filter \
    --input-tsv raw_samples.tsv \
    --annotation repeats.gff3 \
    --output-dir step1_filtered/

# Step 2: Rewrite TSV to point to filtered outputs (GFA paths unchanged)
awk -F'\t' 'OFS="\t" { $2="step1_filtered/"$1"_repeat_filter.final.wsubfeatures.gff3"; print }' \
    raw_samples.tsv > filtered_samples.tsv

# Step 3: Collapse filtered annotations
adjudicator collapse \
    --input-tsv filtered_samples.tsv \
    --output-dir step2_collapsed/

Error Reference

Condition--strict off--strict on
Input file not foundWarning to stderrError: The following files were not found: ...
TSV row has wrong column countBadParameter: Line N: expected 3 columns, got N.Same
Label (column 1) is emptyBadParameter: Line N: column 1 (label) must not be empty.Same
GFF3 path does not end in .gff3BadParameter: Line N: column 2 must end in '.gff3'Same
GFA path does not end in .gfaBadParameter: Line N: column 3 must end in '.gfa'Same
TSV contains no data rowsError: No data rows found in '<file>'.Same

Glossary

TermDefinition
Gene modelA predicted gene structure represented as a gene → mRNA → exon hierarchy in GFF3.
GFF3Generic Feature Format version 3. Tab-delimited format for genomic features and their hierarchical relationships.
GFAGene Family Assignment file from the LIS pipeline, containing HMM domain scores used to rank competing gene models.
AdjudicationSelection of one gene model from a set of overlapping candidates based on HMM score evidence.
Orphan geneA gene model with no gene family assignment in the GFA file.
WAO intersectionA bedtools-style "write all overlaps" operation reporting fractional overlap between features across two GFF3 files.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.022 May 20266

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
ncgr/adjudicator

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7cd94d96a7a9c25ce70831ee283cc53ed77826e511dad11d61af74158b7ee107