Skip to contents

Calculate protein coverage by the peptides in selected biological state or states.

Usage

get_protein_coverage(
  dat,
  protein = dat[["Protein"]][1],
  states = unique(dat[["State"]]),
  protein_length = NULL
)

Arguments

dat

data imported by the read_hdx function.

protein_length

numeric, indicates the length of the protein. If not provided, the maximal end value from the file is used.

Value

a numeric percentage value (rounded to two decimal places).

Details

Function get_protein_coverage calculates the percentage coverage of the protein sequence, rounded to two decimal places.

See also

Examples

get_protein_coverage(alpha_dat)
#> [1] 100
get_protein_coverage(alpha_dat, protein_length = 150)
#> Error: Assertion on 'protein_length' failed: FALSE.