ggDNAvis0.3.2 package

'ggplot2'-Based Tools for Visualising DNA Sequences and Modifications

debug_join_vector_num

Print a numeric vector to console (ggDNAvis debug helper)

convert_base_to_number

Map a single base to the corresponding number (generic ggDNAvis help...

convert_input_seq_to_sequence_list

Split a single input sequence into a vector of "lines" for visualisati...

convert_locations_to_MM_vector

Convert absolute index locations to MM tag (write_modified_fastq() h...

convert_MM_vector_to_locations

Convert MM tag to absolute index locations (read_modified_fastq() he...

convert_modification_to_number_vector

Convert string-ified modification probabilities and locations to a sin...

convert_sequence_to_numbers

Map a sequence to a vector of numbers (generic ggDNAvis helper)

convert_sequences_to_annotations

Convert a vector of sequences to a dataframe for plotting sequence con...

create_image_data

Rasterise a vector of sequences into a numerical dataframe for ggplott...

debug_join_vector_str

Print a character/string vector to console (ggDNAvis debug helper)

extract_and_sort_sequences

Extract, sort, and add spacers between sequences in a dataframe

extract_methylation_from_dataframe

Extract methylation information from dataframe for visualisation

ggDNAvis-package

ggDNAvis: 'ggplot2'-Based Tools for Visualising DNA Sequences and Modi...

merge_fastq_with_metadata

Merge FASTQ data with metadata

merge_methylation_with_metadata

Merge methylation with metadata

rasterise_matrix

Rasterise a matrix to an x/y/layer dataframe (generic ggDNAvis helpe...

read_fastq

Read sequence and quality information from FASTQ

read_modified_fastq

Read modification information from modified FASTQ

reverse_complement

Reverse complement a DNA/RNA sequence (generic ggDNAvis helper)

reverse_locations_if_needed

Reverse modification locations if needed (`merge_methylation_with_meta...

reverse_probabilities_if_needed

Reverse modification probabilities if needed (`merge_methylation_with_...

reverse_quality_if_needed

Reverse qualities if needed (merge_methylation_with_metadata() helpe...

reverse_sequence_if_needed

Reverse sequences if needed (merge_methylation_with_metadata() helpe...

string_to_vector

Split a ","-joined string back to a vector (generic ggDNAvis helpe...

vector_to_string

Join a vector into a comma-separated string (generic ggDNAvis helper...

visualise_many_sequences

Visualise many DNA/RNA sequences

visualise_methylation_colour_scale

Visualise methylation colour scalebar

visualise_methylation

Visualise methylation probabilities for many DNA sequences

visualise_single_sequence

Visualise a single DNA/RNA sequence

write_fastq

Write sequence and quality information to FASTQ

write_modified_fastq

Write modification information stored in dataframe back to modified FA...

Uses 'ggplot2' to visualise either (a) a single DNA/RNA sequence split across multiple lines, (b) multiple DNA/RNA sequences, each occupying a whole line, or (c) base modifications such as DNA methylation called by modified bases models in Dorado or Guppy. Functions starting with visualise_<something>() are the main plotting functions, and functions starting with extract_<something>() are key helper functions for reading files and reformatting data. Source code is available at <https://github.com/ejade42/ggDNAvis> and a full non-expert user guide is available at <https://ejade42.github.io/ggDNAvis/>.

  • Maintainer: Evelyn Jade
  • License: MIT + file LICENSE
  • Last published: 2025-10-31