plot_metagene_bar: Plot 5'/P-site profile per read length as barplot

View source: R/riboseqc.R

plot_metagene_barR Documentation

Plot 5'/P-site profile per read length as barplot

Description

This function plots a 5' or P-site profile as barplot (for a specific originating compartment, resolution type, and read length).

This plot is used in the Ribo-seQC report in section 4.1/4.3.

Usage

plot_metagene_bar(metagene_data, rl, sample = "", output_rds_path = "")

Arguments

sample

String; sample name (selected from the input names iven in the input_sample_names parameter of create_html_report).

output_rds_path

String; full path to output folder for RDS object files created by this function. Defaults to NOT save RDS; to save RDS, provide path to destination folder.

data

Profile data for a resolution type, specific originating compartment, and read length.

Example:
res_all$profiles_fivepr$five_prime_subcodon$nucl$'30'
or
res_all$profiles_P_sites$five_prime_subcodon$nucl$'30'

Shown in bold are fixed list names, remaining list names should be adapted to the resolution type, specific originating compartment, and read length of interest.

Value

This function returns a plot that can be integrated in the html report and that can be saved as RDS object file.

Author(s)

Dominique Sydow, dominique.sydow@posteo.de

See Also

create_html_report


ohlerlab/RiboseQC documentation built on Aug. 15, 2023, 7:30 a.m.