Visualize exon-intron structure of transcripts on genomic scale.
plot_transcripts_view( dturtle, genes = NULL, gtf, genome, one_to_one = NULL, tested_transcripts_only = "mixed", reduce_introns = TRUE, reduce_introns_fill = "white", reduce_introns_min_size = 50, include_ID_in_title = TRUE, fontsize_vec = c(10, 1.1, 0.6), arrow_colors = c("#7CAE00", "#00BFC4"), arrow_start = 0.88, extension_factors = c(0.025, 0.22), savepath = NULL, filename_ext = "_transcripts.png", add_to_table = FALSE, BPPARAM = BiocParallel::SerialParam(), ... )
dturtle |
|
---|---|
genes | Character vector of genes to plot. If |
gtf | Either path to a |
genome | The genome on which to create the ideogram tracks. This has to be a valid |
one_to_one | Specify |
tested_transcripts_only | Specify, if only transcripts which were tested in DTU analysis should be plotted. This are only the not-filtered transcripts of significant genes.
Defaults to |
reduce_introns | Logical if intron ranges shall be shrunken down, highlighting the exonic structure. |
reduce_introns_fill | Optionally specify the background color of ranges where introns have been reduced. |
reduce_introns_min_size | Specify the minimal size introns are reduced to (in bp). |
include_ID_in_title | Logial, if the Gene-ID should be included in the plot title. Defaults to TRUE. |
fontsize_vec | Vector of fontsizes to use. The first value is the side annotation text fontsize (in pt), the second value the cex factor for the title, the third value the cex factor for the feature & chromosome names. |
arrow_colors | Specify the colors of the arrows indicating the direction of proportional changes. The first color string is for a positive change, the second for a negative one. |
arrow_start | Advanced: Set the x coordinate of the arrow annotations (in NPC) |
extension_factors | Advanced: Specify the extension factors to extend the plotted genomic range. The first value if for the extension of the front (left) side, the second for the back (right). |
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 down 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.
Reduced intron length is computed by taking the square root, but is not less than the specified reduce_introns_min_size
length.
If less GRanges
are found than expected, try setting one_to_one
to TRUE
or the used extension character.
When calling this function many times, try importing the GTF-File with gtf <- import_gtf("GTF_PATH", feature_type=NULL, out_df=FALSE)
once and pass it to the gtf
parameter to improve performance.
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_barplot()
,
plot_proportion_pheatmap()