gggenomes1.1.2 package

A Grammar of Graphics for Comparative Genomics

add_tracks

Add different types of tracks

introduce

Introduce non-existing columns

is_reverse

Check whether strand is reverse

layout_genomes

Layout genomes

layout_seqs

Layout sequences

layout

Re-layout a genome layout

pick

Pick bins and seqs by name or position

shift

Shift bins left/right

split_by

Split by key preserving order

strand_chr

Convert strand to character

strand_int

Convert strand to integer

strand_lgl

Convert strand to logical

swap_if

Swap values of two columns based on a condition

swap_query

Swap query and subject in blast-like feature tables

theme_gggenomes_clean

gggenomes default theme

track_ids

Named vector of track ids and types

track_info

Basic info on tracks in a gggenomes object

unnest_exons

Unnest exons

vars_track

Tidyselect track variables

width

The width of a range

write_gff3

Write a gff3 file from a tidy table

in_range

Do numeric values fall into specified ranges?

add_seqs

Add seqs

has_vars

Check if variables exist in object

align

Align genomes relative to target genes, feats, seqs, etc.

as_feats

Compute a layout for feat data

as_links

Compute a layout for link data

as_seqs

Compute a layout for sequence data

as_subfeats

Compute a layout for subfeat data

if_reverse

Vectorised if_else based on strandedness

as_sublinks

Compute a layout for links linking feats

check_strand

Check strand

combine_strands

Combine strands

def_formats

Defined file formats and extensions

def_names

Default column names and types for defined formats

dim.gggenomes_layout

ggplot2::facet_null checks data with empty(df) using dim. This c...

drop_feat_layout

Drop feature layout

drop_layout

Drop a genome layout

drop_link_layout

Drop a link layout

drop_seq_layout

Drop a seq layout

ex

Get path to gggenomes example files

flip_strand

Flip strand

flip

Flip bins and sequences

focus

Show features and regions of interest

geom_bin_label

Draw bin labels

geom_feat_text

Add text to genes, features, etc.

geom_feat

Draw feats

geom_gene_label

Draw feat/link labels

geom_gene

Draw gene models

geom_link

Draw links between genomes

geom_seq_break

Decorate truncated sequences

geom_seq_label

Draw seq labels

geom_seq

draw seqs

geom_variant

Draw place of mutation

geom_wiggle

Draw wiggle ribbons or lines

GeomFeatText

Geom for feature text

get_seqs

Get/set the seqs track

gggenomes

Plot genomes, features and synteny maps

position_strand

Stack features

position_variant

Plot types of mutations with different offsets

pull_track

Use tracks inside and outside geom_* calls

qw

Create a vector from unquoted words.

read_alitv

Read AliTV .json file

read_bed

Read a BED file

read_blast

Read BLAST tab-separated output

read_context

Read files in different contexts

read_gbk

Read genbank files

read_gff3

Read features from GFF3 (and with some limitations GFF2/GTF) files

read_paf

Read a .paf file (minimap/minimap2).

read_seq_len

Read sequence index

read_tracks

Read files in various standard formats (FASTA, GFF3, GBK, BED, BLAST, ...

read_vcf

Read a VCF file

reexports

Objects exported from other packages

require_vars

Require variables in an object

scale_color_variant

Default colors and shapes for mutation types.

scale_x_bp

X-scale for genomic data

set_class

Modify object class attributes

An extension of 'ggplot2' for creating complex genomic maps. It builds on the power of 'ggplot2' and 'tidyverse' adding new 'ggplot2'-style geoms & positions and 'dplyr'-style verbs to manipulate the underlying data. It implements a layout concept inspired by 'ggraph' and introduces tracks to bring tidiness to the mess that is genomics data.

  • Maintainer: Thomas Hackl
  • License: MIT + file LICENSE
  • Last published: 2025-11-14