Visualize genes and it's transcript proportions in a barplot.
plot_proportion_barplot( dturtle, genes = NULL, meta_gene_id = NULL, group_colors = NULL, fit_line_color = "red", text_size = 11, label_angle = c(25, 1, 1), savepath = NULL, filename_ext = "_barplot.png", add_to_table = FALSE, BPPARAM = BiocParallel::SerialParam(), ... )
dturtle |
|
---|---|
genes | Character vector of genes to plot. If |
meta_gene_id | Optionally specify the column name in |
group_colors | Optionally specify the colours for the two sample groups in the plot. Must be a named vector, with the group names as names. |
fit_line_color | Optionally specify the colour to use for the mean fit line. |
text_size | Specify basic text size (in pt) to use in plot. |
label_angle | Specify the angle of the x-axis labels, the vjust and hjust value (in that order). |
savepath | If you want your files to be saved to disk, specify a save path here. The directories will be created if necessary. |
filename_ext | Optionally specify a file name extension here, which also defines the save image format. The file name will be 'gene_name+extension'. |
add_to_table | If a |
BPPARAM | If multicore processing should be used, specify a |
... | Arguments passed on to
|
Returns list of saved plots, for adding to the DTU table. If no savepath
is provided, returns a list of the created plots for further processing. If add_to_table
is provided, return the altered dturtle
object, if at least one of the plots could be added to the DTU summary table.
Shows the transcripts proportional change per analysis group, together with the mean fit value via a horizontal line. Significant transcript's names are marked in red.
run_drimseq()
and posthoc_and_stager()
for DTU object creation. create_dtu_table()
and plot_dtu_table()
for table visualization.
Other DTUrtle visualization:
create_dtu_table()
,
plot_dimensional_reduction()
,
plot_proportion_pheatmap()
,
plot_transcripts_view()