ngs.plot is a useful visualization utility in the analysis of NGS data. Here are some scripts useful for the application of ngs.plot in the daily analysis.
Some of them are or will be part of ngs.plot, some of them just for the convenience of the daily usage.
- ngsplot_json.sh:
A script for the case that we need to plot multiple datasets with several gene lists, and one dataset per plot. An example of json config file is provided under misc folder.
jq is required to parse the json config file.
Usage:
ngsplot_json.sh config.json
- genNormedNgsplotConfig.py:
A script to quickly generate configuration file needed by ngs.plot.
For example, current folder with these bam files:
FactorA.bam
FactorB.bam
FactorA_input.bam
FactorB_input.bam
> genNormedNgsplotConfig.py ./ > config.txt
> cat config.txt
FactorA.bam:FactorA_input.bam -1 FactorA:FactorA_input
FactorB.bam:FactorB_input.bam -1 FactorB:FactorB_input
- plotCorrGram.r:
A script to plot CorrGram of the matrix of the output from ngs.plot.
Visit [http://code.google.com/p/ngsplot](http://code.google.com/p/ngsplot) for details
Usage: plotCorrGram.r -I ngsplot_output.zip [Options]
## Mandatory parameters:
-I Result zip file created by ngs.plot.
-O Output name
## Optional parameters:
-F Functions to be used in calculating the values fed to calculate the correlation (default=mean).
mean(default): base on mean of each row.
max: base on max of each row.
window: base on the center region of each row.
-OP Options for -F functions.
[0,0.5): For 'mean', trim value for robust estimation, default is 0.
window_left, window_right: For 'window', borders of the window (total length of the row is 1), default is 0.33,0.66.
Add bin to PATH, and ngs.plot installed.