plot
Render publication-ready plots directly from Pharmacon artifacts. The plotter auto-discovers which analysis groups are present in the file and dispatches to the appropriate rendering functions. Plot appearance is fully customisable via INI configuration files — see Pharmacon — Plot INI Reference for the full reference.
plot pta
Generate all compatible plots for every group found in a .pta file.
The type of figure produced depends on the analysis stored in the file:
Analysis in file |
Plots produced |
|---|---|
|
Time-series line plot ( |
|
Per-atom RMSF profile |
|
Stacked column (×2), heatmap (×2), pie charts, ligand monitor heatmap |
|
Timeline heatmap, residue heatmap, stacked column |
|
Residue×residue heatmap, occupancy ranking, H-bond network graph, timeline, count-per-frame |
|
Time series, scatter, variance-ratio scree, FES heatmap, probability heatmap |
Plots that require per-frame data are automatically skipped on merged files
(is_merged=True).
Arguments
Flag |
Required |
Description |
|---|---|---|
|
Yes |
Input |
|
Yes |
Output directory where plot files will be written |
|
No |
Pharmacon INI file with plot-settings overrides (see Pharmacon — Plot INI Reference) |
|
No |
Overwrite existing output directory contents |
|
No |
Maximum coercion warnings per plot before the plot is skipped (default: 0) |
|
No |
Log file (default: |
|
No |
File log verbosity (default: |
|
No |
Terminal log verbosity (default: |
Examples
Plot RMSD results:
pharmacon plot pta \
-i rmsd.pta \
-o ./plots/
Plot protein–ligand interactions:
pharmacon plot pta \
-i pl_interactions.pta \
-o ./plots/
Plot a merged artifact with a custom INI theme:
pharmacon plot pta \
-i pli_merged.pta \
-o ./plots/ \
-c my_theme.ini \
--overwrite
Use the master INI that covers every plot type:
pharmacon plot pta \
-i run.pta \
-o ./plots/ \
-c examples/plot_ini/all_plots.ini
Generate all PCA plots:
pharmacon trajectory pca -p topol.tpr -x traj.xtc -sel "protein and name CA" -c 5 -o pca.pta
pharmacon plot pta -i pca.pta -o pca_plots/ --overwrite
# Produces: pca_timeseries, pca_scatter, pca_variance_ratio,
# pca_probability, pca_heatmap_fes