Shians / NanoMethViz

https://shians.github.io/NanoMethViz/
Apache License 2.0
23 stars 1 forks source link

Adding plot of methylation values as points along genomic coordinates #20

Open Shians opened 2 years ago

Shians commented 2 years ago

A plot should be implemented to visualise the average methylation levels of specific regions along the chromosome position (midpoint between the start and end of features?). Such a plot can also serve as a basis for a plot of the methylation over equal size bins across the genome.

Basic approach:

  1. Calculate the average methylation levels of each feature
    • First take mean over each position, then take mean across position means.
  2. Calculate mid-point of each region.
  3. geom_point of mid-point vs average methylation.

Considerations:

  1. To properly span a genome requires information about genome sizes. Might require a new property in NanoMethResult to describe genome sizes in a table, or add as argument.
  2. May wish to split data by group, provide options to colour by or facet by group.