replace_identified_by_x: Replace identified positions in protein sequence by "x"

View source: R/replace_identified_by_x.R

replace_identified_by_xR Documentation

Replace identified positions in protein sequence by "x"

Description

Helper function for the calculation of sequence coverage, replaces identified positions with an "x" within the protein sequence.

Usage

replace_identified_by_x(sequence, positions_start, positions_end)

Arguments

sequence

a character value that contains the protein sequence.

positions_start

a numeric vector of start positions of the identified peptides.

positions_end

a numeric vector of end positions of the identified peptides.

Value

A character vector that contains the modified protein sequence with each identified position replaced by "x".


protti documentation built on Jan. 22, 2023, 1:11 a.m.