Skip to contents

ggDNAvis 1.1.0

  • BREAKING CHANGE: Removed lengths_colname as a mandatory argument to extract_and_sort_methylation().

    • This will cause an error in old code that provides the now-meaningless lengths_colname argument.

    • The returned list still contains $lengths, but this is now recalculated directly from the sequence lengths in sequences_colname / $sequences rather than read from the parent dataframe.

    • There may be behaviour changes in any cases where the lengths stored in the parent dataframe did not match the actual lengths of sequences_colname / $sequences.

  • Made merge_fastq_with_metadata() and merge_methylation_with_metadata() now create reverse_sequence (and _quality, _locations, _probabilities) columns as well as forward_sequence etc columns.

    • This can be useful when dealing with genes on the minus strand, where the local "forward" direction relative to the gene is the global "reverse" direction relative to the reference genome.
  • Added sanitise_sequences (and aliases for American and singular spellings) Boolean argument to visualise_single_sequence(), visualise_many_sequences(), and visualise_methylation().

    • This removes non-ACGTU characters (case insensitive) with a warning, whereas previously invalid characters gave an error.

    • Therefore, removed sequence validation from the Shiny app. Invalid characters will now be automatically removed. Didn’t bother adding an option to set sanitise_sequences = FALSE from the webapp because that doesn’t seem very useful and anyone who needs fine control and error detection is almost certainly using the R package anyway.

  • Added invert_direction_vector() and sanitise_sequences_vector() helper functions.

  • Minor tweaks to reversing options manuscript figure.

ggDNAvis 1.0.1

CRAN release: 2026-06-23

  • Removed magick as a dependency and added it to suggests (required only for tests).

  • Minor tweaks to methylation text manuscript figure.

ggDNAvis 1.0.0

CRAN release: 2026-03-06

This major release has enormous changes to pretty much every aspect of ggDNAvis. Expect code to break, but also for performance and features to be enhanced across the board.

New features:

  • Interactive web-app now available

  • Aliases: American spellings should now be available for all major function and argument names.

    • Every instance of visualise should now also work with visualize e.g. visualize_single_sequence().

    • Every instance of colour should now also work with color and col e.g. sequence_text_color or background_col.

    • There is a minor exception in that visualise_methylation_colour_scale() accepts visualize_methylation_color_scale() but does not accept col in the function name (and does not accept mixing visualise with color or visualize with colour).

    • Some aliases are set up for common typos, especially regarding pluralisation. In particular, index_annotations_above also accepts index_annotation_above, and index_annotation_full_line accepts any combination of annotation and line being plural or single.

    • If any aliases which ought to work don’t, please raise an issue at https://github.com/ejade42/ggDNAvis/issues and they can be easily added.

  • visualise_many_sequences() and visualise_methylation() now have index annotations!

  • Index annotations can now be forced to always occur at the start and end of each line

  • visualise_methylation() can now draw text inside the boxes

    • Can draw sequence text like visualise_many_sequences(), via sequence_text_type = "sequence".

    • Can draw sequence probabilities, via sequence_text_type = "probability". sequence_text_rounding and sequence_text_scaling then determine how the probability score integers from 0-255 are scaled (e.g. c(-0.5, 256) takes (probability + 0.5) / 256 to convert to 0-1 probability) and rounded for display.

    • As a consequence, visualise_methylation() now takes sequences rather than sequence lengths as its third input, and extract_and_sort_methylation() therefore returns sequences as well as sequence lengths.

  • visualise_methylation_colour_scale can now have the text assigned to any of the four cardinal directions rather than always below. If set to "left" / "west" or "right" / "east", gradient direction will be vertical instead of horizontal.

Minor changes:

Full list of new functions, including exported helpers:

Deleted functions:

  • convert_input_seq_to_sequence_list()

  • convert_sequences_to_annotations()

ggDNAvis 0.3.2

CRAN release: 2025-10-31

  • Added files related to pkgdown website building to .Rbuildignore so they are not part of the R package anymore (this caused a CRAN rejection).

ggDNAvis 0.3.1

Bug fixes:

  • Fixed 1-pixel-wide border appearing between the panel and the margin when using non-white background colours

ggDNAvis 0.3.0

CRAN release: 2025-10-01

Changes:

  • Removed raster::raster() dependency

  • Added new rasterise_matrix() function to do rasterisation

  • Changed convert_input_seq_to_sequence_list() behaviour:

    • Instead of additional spacing lines always being added before or after first line of sequence, there are now independent boolean settings for whether there should be spacing lines before and whether there should be spacing lines after.

Bug fixes:

  • Fixed critical error with plot matching lenience on some local linux systems that resulted in tests failing

  • Inserted additional padding blank lines above/below with index_annotation_vertical_position > 1 to avoid plot dimensions breaking (visualise_single_sequence())

Known issues remaining:

  • Related to ggplot v4.0.0:

    • Pixel rendering changes means rectangles sometimes fail to render in visualise_methylation_colour_scale(), resulting in the appearance of vertical white lines. This depends on the precision and exact export size.

    • There is a faint line around the panel area with non-white backgrounds.

ggDNAvis 0.2.1

CRAN release: 2025-09-21

ggDNAvis 0.2.0