calculate_boundary: calculate_boundary

View source: R/calculate_boundary.R

calculate_boundaryR Documentation

calculate_boundary

Description

The function calculates boundaries of sequence windows around the mutation. It is possible to define up to two window lengths. If the mutation is close to the start or end of the protein, the region is extended into the other direction to keep the indicated size

Usage

calculate_boundary(mut_pos_numeric, length_aa, flanking_region)

Arguments

mut_pos_numeric

Amino acid position of mutation

length_aa

Length of transcript in amino acids

flanking_region

Vector containing two flanking regions

Value

returns a list with the boundaries for the two regions

Author(s)

Marija Buljan <buljan@imsb.biol.ethz.ch> Peter Blattmann <blattmann@imsb.biol.ethz.ch>

Examples

calculate_boundary(250, 500, c(200, 300))
calculate_boundary(250, 500, 300)

peterblattmann/DominoEffect documentation built on Nov. 9, 2023, 2:39 a.m.