outputHeatStat: Output movStat results

outputHeatStatR Documentation

Output movStat results

Description

outputHeatStat outputs statistical results from movStat() to a text file and plots figures to a pdf file.

Usage

outputHeatStat(heatStats, ostatfile, plotPre, show_rownames = FALSE)

Arguments

heatStats

a list from movStat().

ostatfile

an output txt file name.

plotPre

a file name prefix for output plots. Final output file names like <plotPre>.plots.pdf.

show_rownames

whether show rownames in the heatmap, default is FALSE.

Details

This function will plot bar plots for heatStats$nsig, heatmaps for tf01, de01, deNum. and also write statistical results to a text file.

See Also

Other visualization functions: movViz(), plotHeatmap()

Examples

data(PACds)
swDE=movUTRtrend(PACds, group='group', method='DE',
avgPACtag=10, avgGeneTag=20,
aMovDEPACRes=DEPAC, DEPAC.padjThd=0.01,
mindist=50, fisherThd=0.01, logFCThd=1, selectOne='fisherPV')
## First call the differential analysis and then call movStat to stat the results.
stat=movStat(object=swDE, padjThd=0.01, valueThd=1)
## Output stat results into files.
## The pdf file stores the plots about the number of significant DE PACs
## and the overlap among different condition pairs.
outputHeatStat(heatStats=stat, ostatfile='3UTR_switching_DE.stat',
              plotPre='3UTR_switching_DE', show_rownames = TRUE)

BMILAB/movAPA documentation built on Jan. 3, 2024, 11:09 p.m.