Skip to contents

Plot the frequency of coverage for protein sequence

Usage

plot_position_frequency(
  dat,
  protein = dat[["Protein"]][1],
  state = dat[["State"]][1]
)

Arguments

dat

data as imported by the read_hdx function

protein

selected protein

state

selected biological state for given protein

Value

a ggplot object

Details

The function plot_position_frequency generates a histogram of the coverage frequency in selected biological states for selected protein. The position frequency plot presents how many times each position of the sequence is covered by different peptides.

Examples

plot_position_frequency(alpha_dat)
#> Warning: The dot-dot notation (`..count..`) was deprecated in ggplot2 3.4.0.
#>  Please use `after_stat(count)` instead.
#>  The deprecated feature was likely used in the HaDeX package.
#>   Please report the issue to the authors.