plotPALDistribution: plotPALDistribution

Description Usage Arguments Details Value See Also Examples

View source: R/funclib_plot.R

Description

Plot the PAL distribution of gene, umi or global.

Usage

1
plotPALDistribution(taildf, resultpath, dType, medianPAL)

Arguments

taildf

A dataframe that contains the tail information of all reads, Contains at least three columns: PAL, gene, umi, and sample.

resultpath

The specified path to save barplot.

dType

The tail length affiliation relationship that you want to draw, which includes three options: "global", "gene", "umi". "global" A stands for uniform treatment of all tail lengths. "gene" stands for tail length plotted according to genetic statistics. "umi" stands for tail length plotted according to umi statistics

medianPAL

A Boolean value. T means Annotating peak. F means the opposite.

Details

Using the PoltPAL family of functions, the tail length distribution of the gene or UMI of different sample will be plotted, as well as the global tail length distribution.

Value

A density curve with peak annotations.

See Also

[plotPADistribution()] to plot the gene region distribution of PA sites.

Other Visualization functions: DSA_UpsetPlot(), DSA_ViolinPlot(), PALdsa(), nonAanalysis(), plotGenePAnumbers(), plotPADistribution(), plotPASignals(), tailViso()

Examples

1
2
3
data(AnnotedTails)
p1 <- plotPALDistribution(AnnotedTails,"./","global",medianPAL=T)
p2 <- plotPALDistribution(AnnotedTails,"./","gene",medianPAL=T)

XHWUlab/PolyAtailor documentation built on Dec. 28, 2021, 12:13 a.m.