- Citation
- Principle of DANTE_LTR
- Availability
- Installation
- Quick start guide - How to use DANTE and DANTE_LTR on Galaxy server
- Quick start guide - How to use command line version of DANTE and DANTE_LTR
- Boundary refinement
- Solo LTR detection
- Modifying LTR-RT search constraints
- Fallback classification mode
- Core-domain detection mode
- CLI reference
- GFF3 DANTE_LTR output specification
Tool for identifying complete LTR retrotransposons based on analysis of protein domains identified with the DANTE tool. Both DANTE and DANTE_LTR are available on Galaxy server.
Novak, P., Hostakova, N., Neumann, P., Macas, J. (2024) – DANTE and DANTE_LTR: lineage-centric annotation pipelines for long terminal repeat retrotransposons in plant genomes. NAR Genomics and Bioinformatics 6:113. [https://doi.org/10.1093/nargab/lqae113]
Complete retrotransposons are identified as clusters of protein domains recognized by the DANTE tool. The domains in the clusters must be assigned to a single retrotransposon lineage by DANTE. In addition, the orientation and order of the protein domains, as well as the distances between them, must conform to the characteristics of elements from REXdb database Neumann et al. (2019). In the next step, the 5' and 3' regions of the putative retrotransposon are examined for the presence of 5' and 3' long terminal repeats. If 5'- and 3'-long terminal repeats are detected, detection of target site duplication (TSD) and primer binding site (PBS) is performed. The detected LTR retrotransposons are classified into 5 categories:
- Elements with protein domains, 5'LTR, 3'LTR, TSD and PBS - rank DLTP.
- Elements with protein domains, 5'LTR, 3'LTR, and PBS (TSD was not found) Rank DLP.
- Elements with protein domains, 5' LTR, 3'LTR, TSD (PBS was not found) - rank DLT.
- Elements with protein domains, 5'LTR and 3'LTR (PBS and TDS were not found) - rank DL.
- Elements as clusters of protein domains with the same classification, no LTRs - rank D.
DANTE_LTR and DANTE are available on Galaxy server or can be installed using conda package manager.
conda create -n dante_ltr -c bioconda -c conda-forge -c petrnovak dante_ltrFrom 0.6.3.1 each release is also published as an image on GHCR, with all dependencies included:
apptainer pull oras://ghcr.io/kavonrtep/dante_ltr/sif:0.6.5.0
apptainer exec -B $PWD dante_ltr_0.6.5.0.sif dante_ltr -g DANTE.gff3 -s genome.fasta -o output -c 10All commands (dante_ltr, dante_ltr_to_library, dante_ltr_summary,
dante_ltr_solo, dante_ltr_refine, dante_reclassify,
dante_ltr_gff3_to_canonical, clean_ltr.R) are on PATH without conda
activation, so the image also works under --cleanenv and as a Galaxy tool
container (<container type="singularity">oras://ghcr.io/kavonrtep/dante_ltr/sif:<version></container>).
:latest points to the newest release. Build it locally with
apptainer build dante_ltr.sif dante_ltr.def.
Important version information DANTE_LTR versions up to 0.3.5.3 are compatible with REXdb Viridiplante database version 3.0. Versions >=4.0.1 are compatible with REXdb Viridiplante database version 3.0 and 4.0. REXdb Viridiplantae v 4.0 include additional LTR-RT lineages characterized non-angiosperm species. Updated REXdb and used classification system can be found https://github.com/repeatexplorer/rexdb.
Detailed tutorial on how to use DANTE and DANTE_LTR on Galaxy server is here.
conda create -n dante_ltr -c bioconda -c conda-forge -c petrnovak dante_ltr=0.4.0.13 dante=0.2.10
conda activate dante_ltrwget https://raw.githubusercontent.com/kavonrtep/dante_ltr/main/test_data/sample_genome.fastadante -q sample_genome.fasta -o DANTE_output.gff3 -c 10Output will contain annotation of individual protein domains identified by DANTE stored in GFF3 file named DANTE_output.gff3. Check DANTE documentation for more details (https://github.com/kavonrtep/dante)
dante_ltr -g DANTE_output.gff3 -s sample_genome.fasta -o DANTE_LTR_annotation -M 1Option -M 1 will allow one missing domain in the complete LTR retrotransposon.
Output files will include:
DANTE_LTR_annotation.gff3- Annotation of all identified elementsDANTE_LTR_annotation_statistics.csv- number of elements in individual categoriesDANTE_LTR_annotation_summary.html- graphical summary of the results
dante_ltr_to_library -g DANTE_LTR_annotation.gff3 -s sample_genome.fasta -o ltr_libraryThis step will create a non-redundant library of LTR-RT sequences suitable for similarity-based annotation using RepeatMasker. The -o argument is an output directory. The RepeatMasker-formatted library is written to ltr_library/mmseqs2/mmseqs_representative_seq_clean_rm_compatible.fasta; other files in the directory are intermediate artifacts.
| File | What it is |
|---|---|
DANTE_LTR_annotation.gff3 |
Annotation of all identified LTR-RT elements |
DANTE_LTR_annotation_summary.html |
Graphical summary report |
DANTE_LTR_annotation_DLTP.fasta |
Complete elements (highest-confidence rank) |
ltr_library/mmseqs2/mmseqs_representative_seq_clean_rm_compatible.fasta |
RepeatMasker-formatted library |
For optional refinement of LTR boundaries, solo-LTR detection, custom constraints, and fallback classification, see the sections below. The full per-tool CLI reference is at the end of the document.
dante_ltr_refine revisits the LTR outer boundaries of a DANTE_LTR
annotation using cross-element evidence (MMseqs2 clustering of related
elements + parasail anchored extension, with MAFFT change-point fallback)
and emits per-side confidence labels. See
docs/refine_v2_analysis.md for the
algorithm, validation data, and term definitions.
Two attributes describe each LTR boundary in the refined GFF3.
Refinement_Status — outcome of the analysis:
| status | description |
|---|---|
not_evaluated |
the element's family was too small for cross-element analysis; the original boundary is retained. |
unresolved |
the analysis was applied but no method produced a validated coordinate; the original boundary is retained. |
confirmed |
the analysis validated the original DANTE_LTR boundary at the same coordinate (two independent signals support the position). |
refined |
the analysis moved the boundary to a new coordinate. |
Refinement_Confidence — the evidence supporting the call:
| confidence | description |
|---|---|
dual |
the same-role and direct-repeat estimates agree within 5 bp; both validate TG/CA. |
divergent |
both estimates validate TG/CA but disagree by more than 5 bp. |
inner_only |
only the direct-repeat estimate validated TG/CA. |
mafft |
the MAFFT change-point detector validated TG/CA. |
unrefined |
no method validated; the original boundary is retained. |
The refined GFF3 also carries diagnostic attributes that are not required
for downstream filtering: Refinement_Method (which signal produced the
call), Original_Start / Original_End (DANTE_LTR's original coordinates,
present only when refinement moved the boundary), and Cluster_ID /
Cluster_Size (the MMseqs2 cluster the element was analysed in).
Elements with Refinement_Status ∈ {confirmed, refined} constitute the
recommended high-confidence subset. dante_ltr_to_library --refined_gff3
and dante_ltr_solo --refined_gff3 apply this filter by default. Per-side
target_site_duplication child features and the TE TSD= attribute are
recomputed at the refined coordinates.
dante_ltr_refine -g DANTE_LTR_annotation.gff3 \
-s sample_genome.fasta \
-o refined/sample --threads 4 --workers 4
dante_ltr_solo -g DANTE_LTR_annotation.gff3 \
--refined_gff3 refined/sample_refined.gff3 \
-s sample_genome.fasta \
-o solo_output -c 10For the full CLI option list, see dante_ltr_refine --help or
CLI reference below.
⚠️ Work in progress. Solo LTR detection is under active development; outputs and attribute names may still change between releases.
dante_ltr_solo identifies solo LTR retrotransposons (LTR/LTR recombination
remnants that have lost their internal region) outside of the elements
already annotated by dante_ltr. The tool reuses the complete-element
annotation to build a per-lineage LTR reference library, BLASTs it against
the genome, and validates each candidate with target site duplication (TSD)
and junction checks. Algorithm details are in
docs/soloLTR.md.
The pipeline consumes a refined GFF3 (output of dante_ltr_refine) so
that library members can be grouped by per-lineage clusters and ordered
by refinement confidence. If you pass a plain DANTE_LTR GFF3,
dante_ltr_solo runs dante_ltr_refine internally and writes the
refined output to <output_dir>/refined/.
dante_ltr_solo -g DANTE_LTR_annotation.gff3 \
-s sample_genome.fasta \
-o solo_output -c 10For the full CLI option list, see dante_ltr_solo --help or
CLI reference below.
solo_ltr.gff3— one representative per locus, excluding entries that look like fragments of unannotated complete elements (see below). This is the file to use for downstream analysis.solo_ltr_te_fragments.gff3—SL_noTSDrepresentatives with a positiveUTR5_junction,PPT_junction, orPBS_checksignal. These are unlikely to be solo LTRs; they typically point to regions where the upstreamdante_ltrannotation missed a complete element.solo_ltr_raw.gff3— every BLAST hit (deduped by exact coordinates). Useful for QC / inspecting fragmentation.solo_ltr_statistics.csv— per-lineage counts of SL, SL_noTSD, complete elements, and theRsfratio (solo / complete), computed on the representative file (TE fragments excluded).solo_ltr_te_fragments_statistics.csv— per-lineage TE-fragment counts.solo_ltr_raw_statistics.csv— the same counts computed on the raw file (inflated by duplicates, kept for comparison).library/— the LTR library built from the input annotation, including the MAFFT per-cluster alignments and a per-cluster*_LTR_library_boundary_qc.tsvQC table.refined/— the refined GFF3 used as input (either the supplied refined GFF3 or the one produced by the auto-run ofdante_ltr_refine).chunks/— per-chunk intermediate outputs and raw BLAST tabular files.
Rank—SL(TSD confirmed) orSL_noTSD.TSD— the TSD sequence (exact) orSEQ1/SEQ2for 1-mismatch, ornot_found.LibraryID— the library consensus id (LTR_XXXXXX) that produced the hit.LibraryConfidence— provenance of the library entry that produced this hit, one ofvalidated(built from refinement-validated members only),mixed(cluster was evaluated but no member reached validated; built fromunresolvedmembers), orunrefined(cluster was too small for refinement; built via change-point fallback on the raw annotated boundaries).ClusterSize— number of raw hits collapsed into this representative.SupportingHits— comma-separatedLibraryIDs of the other raw hits in the cluster (omitted whenClusterSize == 1).boundary_uncertain=true— the SL representative is strictly contained (≥ 80 % of its length) inside a longer SL_noTSD member of the same cluster, indicating the representative's boundaries may be too tight.class_conflict=true— at least one reciprocal-overlap pair in the cluster had differentFinal_Classification.UTR5_junction,PPT_junction,PBS_check— forSL_noTSDrows:positiveindicates the hit looks like a fragment of an unannotated complete element on that side;not_applicableforSLrows. Any representative with at least onepositiveis partitioned out ofsolo_ltr.gff3and emitted insolo_ltr_te_fragments.gff3instead.
It is possible to modify constraints for LTR search by providing a csv table with constraints for individual lineages.
The table has the following format:
| Lineage | Domains order | offset5prime | offset3prime | domain_span | ltr_length |
|---|---|---|---|---|---|
| Class_I/LTR/Ty1_copia/Ale | GAG PROT INT RT RH | 2000 | 2000 | 5700 | 123 |
| Class_I/LTR/Ty1_copia/Alesia | GAG PROT INT RT RH | 2000 | 3000 | 5400 | 273 |
| Class_I/LTR/Ty1_copia/Angela | GAG PROT INT RT RH | 6000 | 3000 | 5500 | 1074 |
| Class_I/LTR/Ty1_copia/Bianca | GAG PROT INT RT RH | 3500 | 3000 | 6000 | 132 |
| Class_I/LTR/Ty1_copia/Bryco | GAG PROT INT RT RH | 3000 | 3000 | 5000 | 287 |
| Class_I/LTR/Ty1_copia/Gymco-I | GAG PROT INT RT RH | 3500 | 2500 | 5400 | 151 |
| Class_I/LTR/Ty1_copia/Gymco-II | GAG PROT INT RT RH | 2000 | 6000 | 4600 | 156 |
| Class_I/LTR/Ty1_copia/Gymco-III | GAG PROT INT RT RH | 2000 | 2000 | 5400 | 247 |
| Class_I/LTR/Ty1_copia/Gymco-IV | GAG PROT INT RT RH | 2000 | 2000 | 5400 | 276 |
| Class_I/LTR/Ty1_copia/Ikeros | GAG PROT INT RT RH | 6500 | 3000 | 6100 | 359 |
| ... | ... | ... | ... | ... | ... |
-
The
Domain ordercolumn defines the order of individual protein domains required for positive detection of the elements. -
The number in the
offset5primecolumn is the size of the upstream region used to search for the 5' LTR, while theoffset3primeis the size of the downstream region used to search for the 3' LTR (These values correspond to yellowish and greenish boxes in the figure above). -
The
domain_spanis the maximal distance between N' end of first domain and the C' end of the last domain of the element.
Modify these constraints if you think that the default constraints lead to under-detection of elements whose structure deviates from the default constraints. Setting offset5prime, offset3prime or domain_span too high can however lead to the detection of aberrant or chimeric elements.
- The
ltr_lengthis the shortest LTR for given lineage in REXdb database. LTR must be at least 80% of this value. To use modified constraints usedante_ltrwith option--te_constrainsand provide the path to the modified csv table.
The full table with default constraints can be found in
databases/lineage_domain_order.csv.
⚠️ Experimental (0.4.0.13).
For genomes poorly covered by REXdb, DANTE frequently cannot resolve
LTR protein domains past the superfamily or subfamily level. In that
case dante_ltr's default lineage-keyed matching misses most
elements. --fallback_mode demotes all input Final_Classification
values to a chosen coarse depth and uses a correspondingly relaxed
constraints table. The pre-demotion value is kept on each feature as
Original_Classification.
| mode | classifies into |
|---|---|
none |
lineage (default) |
coarse3 |
copia, gypsy/chromovirus, gypsy/non-chromovirus |
coarse2 |
copia, gypsy |
The domain complement must still be complete and in the expected order — only its classification is relaxed. Where the accessory domains are missing altogether rather than merely under-resolved, see core-domain mode.
Full spec: docs/fallback_classification_spec.md.
⚠️ Experimental (0.6.0.0).
On genomes far from REXdb the accessory domains (GAG, PROT, CHD, …) are
often undetectable altogether, so the default lineage-keyed matching has
nothing to match — a harder problem than the under-resolved
classification that --fallback_mode addresses. --mode core instead
seeds on the three core domains RT, RH and INT, whose order is what
distinguishes the superfamilies (RT RH INT = Ty3/gypsy,
INT RT RH = Ty1/copia), and searches outward from there for the LTRs.
Accessory domains are no longer required: they only shape the search
space and, once the element is delimited, its classification. That
classification is demoted when the evidence is thin, with Lineage_Call
set when a single lineage is supported and Lineage_Candidates listing
the possibilities when several are.
dante_ltr --mode core -g DANTE.gff3 -s genome.fasta -o output -c 10Measured on Draparnaldia, a green alga REXdb does not cover (391 Mb;
complete elements, i.e. rank above D):
| complete elements | median length | TSD | PBS | |
|---|---|---|---|---|
| default | 0 | – | – | – |
--fallback_mode coarse2 |
160 | 5 882 | 34 % | 50 % |
--mode core |
1 408 | 9 315 | 69 % | 68 % |
Core mode is not universally more sensitive, and should not be used
by default. It requires all three core domains to survive the domain
filter, which 2–25 % of validated elements fail depending on the genome;
on a REXdb-covered genome it recovers 96 % of what the default finds,
not 100 %. Reach for it when the accessory complement is missing
rather than merely under-resolved — for the latter --fallback_mode is
several times cheaper and nearly as good.
Design, validation and known limitations: docs/core_domain_mode_design.md.
dante_ltr_to_library keeps one representative per cluster, and discards a
cluster whose members disagree about classification rather than give it a label
it cannot support. Core mode labels each element with the lowest common ancestor
of its own domains, so a cluster routinely mixes Ty3/gypsy with
Ty3/gypsy|chromovirus — an ancestor and its descendant, which the default rule
reads as a conflict and drops.
| policy | keeps a mixed cluster when | labels it |
|---|---|---|
strict (default) |
the label it computes is the cluster's majority | with that majority |
nested |
the distinct labels form a single ancestor chain | with the deepest label enough elements carry, else their common ancestor |
dante_ltr_to_library -g core.gff3 -s genome.fasta -o lib --annotation_conflict nestednested counts distinct source elements rather than 1 kb sliding windows, and
promotes only when at least --lineage_promotion_min_elements (2) elements
carry the deepest label and they are at least --lineage_promotion_min_share
(0.25) of the cluster. On the Draparnaldia core-mode run it recovers 62 of 67
dropped clusters — 397 → 459 sequences, +16 % bp — and gives 69 of them a
lineage-level call instead of the bare superfamily bucket.
Two things to know before using it:
- It is opt-in rather than keyed to
--mode core, because lineage mode can also emit internal-node labels, so it is not provably a no-op there. - It can remove sequences as well as add them — the third case above.
dante_ltr runs the per-chunk detection in a process pool sized by -c and by a
memory budget, so that a large -c cannot start more chunks than fit in RAM. The budget
is read from /proc/meminfo by default, and that file is not namespaced: inside a
container or under a batch scheduler it reports the whole node rather than the job's
allocation, and the pool can be sized many times too large.
Pass the allocation explicitly on such systems:
dante_ltr -g DANTE.gff3 -s genome.fasta -o output -c 96 --max_memory 128Without the flag the budget is resolved from the first of these that is available:
AGENT_MEMORY; the scheduler variables PBS_RESC_MEM, SLURM_MEM_PER_NODE,
LSB_MAX_MEM_RUSAGE, SLURM_MEM_PER_CPU × SLURM_CPUS_ON_NODE; the cgroup memory
limit; and finally MemAvailable. The source is named in the pool-sizing message, and a
warning is printed if the budget is host-wide while a scheduler job is detected. On a
plain workstation nothing changes.
Full option lists for each tool. Also available via --help.
usage: dante_ltr [-h] -g GFF3 -s REFERENCE_SEQUENCE -o OUTPUT [-c CPU]
[--max_memory GB] [-M MAX_MISSING_DOMAINS] [-L MIN_RELATIVE_LENGTH]
[-S MAX_CHUNK_SIZE] [-v] [--te_constrains TE_CONSTRAINS]
[--no_ambiguous_domains] [--fallback_mode {none,coarse3,coarse2}]
[--mode {lineage,core}] [core mode options]
options:
-h, --help show this help message and exit
-g GFF3, --gff3 GFF3 gff3 file with full output from Domain Based Annotation of Transposable Elements (DANTE)
-s REFERENCE_SEQUENCE, --reference_sequence REFERENCE_SEQUENCE
reference sequence as fasta file
-o OUTPUT, --output OUTPUT
output file path and prefix
-c CPU, --cpu CPU number of CPUs
--max_memory GB, --max-memory GB
Memory available to this run, in GB -- the allocation the
scheduler granted. Used to size the chunk pool. Set this on a
cluster or in a container: without it the budget falls back to
the scheduler environment, then the cgroup limit, then
/proc/meminfo MemAvailable, which reports the whole node rather
than this job's limit.
-M MAX_MISSING_DOMAINS, --max_missing_domains MAX_MISSING_DOMAINS
-L MIN_RELATIVE_LENGTH, --min_relative_length MIN_RELATIVE_LENGTH
Minimum relative length of protein domain to be considered for retrotransposon detection
-S MAX_CHUNK_SIZE, --max_chunk_size MAX_CHUNK_SIZE
If the reference is larger than this, it is analyzed in chunks of
roughly this size (default 100000000). Controls both per-chunk memory
and pool granularity: chunks are the work items of the parallel
detection pool (sized by -c and the resolved memory budget, see
--max_memory), so smaller chunks lower per-chunk memory but
produce more, finer units of work.
-v, --version show program's version number and exit
--te_constrains TE_CONSTRAINS
csv table specifying TE constraints for LTR search; template at
https://github.com/kavonrtep/dante_ltr/blob/main/databases/lineage_domain_order.csv
--no_ambiguous_domains
Remove ambiguous domains from analysis
--fallback_mode {none,coarse3,coarse2}
Classify at a reduced taxonomic depth and demote DANTE's
lineage-level calls accordingly (see "Fallback classification mode").
--mode {lineage,core}
Detection strategy. 'lineage' (default) matches a full
lineage-keyed domain complement; 'core' seeds on the ordered
RT/RH/INT core and classifies afterwards (see "Core-domain
detection mode").
core mode options:
Only used with --mode core.
--min_relative_length_core MIN_RELATIVE_LENGTH_CORE
Relaxed minimum relative domain length for RT/RH/INT when
seeding. The ordered triplet is strong joint evidence, so
individually weak core domains are admitted (default 0.3)
--min_similarity MIN_SIMILARITY
Minimum domain similarity (default 0.4)
--core_max_gap CORE_MAX_GAP
Max bp between consecutive core domains; overrides the
constraints table
--core_max_span CORE_MAX_SPAN
Max bp from first to last core domain; overrides the table
--min_ltr_length MIN_LTR_LENGTH
Minimum LTR length (default 100)
--max_te_length MAX_TE_LENGTH
Maximum element length (default 35000)
--split_max_gap SPLIT_MAX_GAP
Max bp between two annotations of one frameshifted domain
(default 50)
--core_require_tsd Reject elements without a target site duplication
usage: dante_ltr_to_library [-h] -g GFF3 -s REFERENCE_SEQUENCE -o OUTPUT_DIR
[-m MIN_COVERAGE] [-c CPU]
options:
-g GFF3 gff3 file
-s REFERENCE_SEQUENCE fasta file
-o OUTPUT_DIR output directory
-m MIN_COVERAGE minimum cluster coverage to include in library (default: 3)
-c CPU number of CPUs
usage: dante_ltr_refine -g GFF3 -s GENOME -o OUTPUT [OPTIONS]
options:
-g GFF3 DANTE_LTR GFF3 input.
-s GENOME Reference genome FASTA.
-o OUTPUT Output prefix (4 files: refined GFF3, per-element TSV,
cluster TSV, run JSON).
--identity 0.9 MMseqs2 cluster identity.
--min_cluster_size 6 Minimum members per role (5'LTR and 3'LTR
must each have >= N).
--anchor_len 50 Anchor length inside LTR (bp).
--flank_len 1000 Flank length scanned outside LTR (bp).
--no_tsd_revert Disable per-element TSD-loss revert rule (diagnostic).
--no_msa_rescue Disable per-side MAFFT MSA rescue;
fall back to threshold-gated MAFFT.
--mafft_fallback_threshold 0.5
Inner-pool validation rate below which MAFFT change-point
fallback fires (only used with --no_msa_rescue).
--no-mafft-fallback Disable MAFFT entirely (parasail-only).
--threads 4 MMseqs2 / MAFFT threads.
--workers 4 Parallel cluster workers.
usage: dante_ltr_solo -g GFF3 -s REFERENCE_SEQUENCE -o OUTPUT_DIR [-c CPU]
[-i MIN_IDENTITY] [-C MIN_COVERAGE] [-S MAX_CHUNK_SIZE]
options:
-g GFF3 DANTE_LTR annotation GFF3 (from dante_ltr). May
be either an unrefined or a refined GFF3; if
unrefined, dante_ltr_refine is run automatically
and the result is written to <OUTPUT_DIR>/refined/.
-s REFERENCE_SEQUENCE Reference genome FASTA.
-o OUTPUT_DIR Output directory.
-c CPU Number of CPUs.
-i MIN_IDENTITY Minimum BLAST % identity (default 80).
-C MIN_COVERAGE Minimum alignment coverage of library LTR (default 0.8).
-S MAX_CHUNK_SIZE Genome chunk size for parallel search (default 100000000).
Feature types in the output GFF3:
- target_site_duplication — direct repeats around the insertion site.
- transposable_element — the full extent of the LTR retrotransposon.
- long_terminal_repeat (LTR) — direct repeats at the element's termini.
- protein_domain — a polyprotein domain identified by DANTE.
- primer_binding_site — site where a tRNA primer binds to initiate reverse transcription.
Core attributes you'll typically work with:
- Rank —
D,DL,DLT,DLP, orDLTP(see Principle). - ID — unique feature identifier.
- Final_Classification — hierarchical REXdb classification.
- LTR_Identity — % identity between 5' and 3' LTRs.
- TSD — the target site duplication sequence.
For the full attribute list (DANTE protein-domain fields, PBS metadata,
diagnostic fields), see
docs/gff3_attributes.md.



