Complete canonical API text; task articles explain the workflows. Tutorials
Site guide · find your task
Setup and learning paths
HomeInstall and prepare the environmentChoose your learning moduleModule I · Chord
1.1 Tables and field meanings1.2 Produce and import comparisons1.3 Build the layers step by step1.4 Direction, curvature and clearance1.5 Filter and summarize links1.6 Full source-file workflow1.7 Complete chord showcaseModule II · Collinear
2.1 Reuse chord input tables2.2 Switch coordinates and add layers2.3 Routes, clearance and the ruler2.4 Compare CDS neighbourhoods2.5 Focus, anchors and segments2.6 Complete collinear showcaseModule III · Plasmid
3.1 DNA, annotations and 13 references3.2 From a circle to annotation layers3.3 Features, primers and restriction3.4 Thirteen plasmid references3.5 Complete plasmid casesConsult as needed · Data and layers
Prepare tables and coordinatesImport and convert dataImport nucleotide and protein alignmentsProject protein intervals to genomic coordinatesFeatures, stacking and genomic decorationLabels and local placementQuantitative tracksMappings, scales, guides and themesSet values by sequence and strandCommon adjustments and grammarExport, preview and diagnosticsLearning map and reference
Articles and complete workflowsFunction referenceReproducible galleryFrequently asked questionsMigrate to the candidate APITerminology and design sourcesDevelopment status and changesAggregates nearby alignment ribbons on a normalized query/subject grid.
Bundling is always explicit: geom_link_ribbon() continues to draw one
ribbon per input row unless the returned data are supplied by the user.
Groups use relative endpoint direction, so reversing both ends can remain
in the same group. The envelope follows the first row's absolute directions;
length and identity are length-weighted source means (length is rounded),
not statistics of a newly computed alignment. Conflicting extra metadata
become typed missing values. Use group_by to keep source categories
separate and retain the original input with the source-row report.
Single-base endpoint rows stay independent because their endpoint order
cannot define an absolute aggregate direction. Density can still count
them without merging their geometry.
Usage
Code
bundle_ggchord_ribbons(
ribbon_data,
seq_data,
bins = 80L,
min_bundle = 2L,
weight = c("length", "count", "pident"),
group_by = NULL
)Arguments
- ribbon_data
Alignment data in ggchord ribbon format.
- seq_data
Sequence data containing
accverandlength.- bins
Positive integer number of normalized midpoint bins per sequence, default 80.
- min_bundle
Minimum number of rows required for aggregation, default 2. Smaller groups remain as individual ribbons.
- weight
Bundle weight:
"length","count", or"pident". Identity weight is aligned length multiplied by identity proportion.- group_by
Optional character columns that must agree before ribbons can be bundled.
Value
A list with data and report. The data include
.bundle_n, .bundle_weight, and .bundle_density; the
report maps each output row back to its source rows.
