TR_location: Display TR center location

Description Usage Arguments Value

View source: R/TR_location.R

Description

The TR center is normalized to reduce boundary effects.
The center-bias comes from boundary effects from the simple center/Length metric employed;
if the TR covers a significant fraction of the protein, then it's center necessarily falls near the middle.
We can compensate for this by normalizing over only the valid center locations:

x = \frac{center - l_{eff}*n_{eff}/2}{N-l_{eff}*n_{eff}}



TR center locations of 0 and 1 refere to the N- and C-terminus respectively.

Usage

1
2
3
4
5
6
7
TR_location(
  tr_all_sp,
  plot_title = NULL,
  byTRtype = FALSE,
  byProt = TRUE,
  paperfigure = FALSE
)

Arguments

tr_all_sp

a data.frame with TR results imported through load_tr_annotations

plot_title

(str) Title of the plot

byTRtype

boolean. If TRUE, function returns plot filled by TR-type

byProt

boolean. IF TRUE, function returns plot filled by each TR.

paperfigure

boolean. If TRUE, adapts figure for publication (larger font size, ...). Modifications can be done in paper.figure

Value

ggplot object


matteodelucchi/TRAL-Result-Analysis documentation built on Dec. 2, 2019, 11:42 p.m.