visualize_CELP | R Documentation |
Function to visualize translational stalling (CELP bias) overlaid on observed and corrected read counts.
visualize_CELP(tr_codon_read_count_loess_corrected_list, transcript, panel_rows = 1, panel_cols = 1, from_codon = NULL, to_codon = NULL, outfile = NULL)
tr_codon_read_count_loess_corrected_list |
A list of codon level read counts for all samples and transcripts.
It is the second element of a tr_codon_bias_coeff_corrected_count object produced by |
transcript |
Name of the transcript to be plotted |
panel_rows |
Number of rows in the case of plotting multiple samples on one page. Default: 1. |
panel_cols |
Number of columns in the case of plotting multiple samples on one page. Default: 1. |
from_codon |
Plot starts from this codon. Use this and to_codon to zoom in on particular regions of the transcript. Default: NULL (plot starts at the start codon). |
to_codon |
Plot ends with this codon. Use this and from_codon to zoom in on particular regions of the transcript. Default: NULL (plot stops at the stop codon). |
outfile |
Path and name of the output pdf file. If it is not provided, plots will be printed to standard output. Default: NULL. |
This function plots the CELP bias coefficient as a curve overlaid on barplots of observed read counts upward (positive y) and corrected read counts downward (in the nominal negative y range). This allows visual inspection of the prominent bias positions and a comparison of read count heterogeneity along the transcript before and after CELP bias correction.
visualize_CELP(tr_codon_bias_coeff_loess_corrected_count_LMCN$tr_codon_read_count_loess_corrected, "ENST00000000233", "<file.path>/ENST00000000233.CELP.bias.plots.pdf") visualize_CELP(tr_codon_bias_coeff_loess_corrected_count_LMCN$tr_codon_read_count_loess_corrected, "ENST00000000233", panel_rows = 2, panel_cols = 4, "<file.path>/ENST00000000233.CELP.bias.all.in.one.page.plots.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.