Genome BioInformatics Research Lab

  IMIM * UPF * CRG * GRIB HOME SOFTWARE * gff2aplot * HowTo * Plot Layers
 
Layers on gff2aplot Figures
 
   

Summary

PostScript language does not allow transparencies. Therefore, the order in which figure elements are printed on the final plot is crucial. Each set of features drawn by gff2aplot is put into one of the pre-defined layers. It is obvious that it is important to know which layers we have and what can be shown on each of them.
Another interesting feature that we can learn here is the way gff2aplot can handle customizing parameters. All the available variables are at the beginning set from program's internal defaults. Command-line options always override previous customization values. But the most important feature is the programn's ability to sum that to any parameters from whatsoever customization files we will provide.

NOTE.- For the sake of clarity, we are going to use long names for the comand-line switches. See the command-line help if you prefer short names for those cases in which a short name is available.
Bitmaps for the examples were generated as PNGs (Portable Network Graphics). If your browser is not ready for such format yet, you can visualize the PDF or PS versions by clicking on the links below each snapshot. Links to customization files, log files, GFF input files and output PostScript figures, are also available on each command-line shown.

Contents


Bottom Layer


Empty Plot
 [PNG] [PS] [PDF
   
gff2aplot.pl                           \
    --logs-filename plot_layers_bg.log \
    --show-percent-box                 \
    --show-extra-box                   \
    --x-sequence-coords 0..1000        \
    --y-sequence-coords 0..1000        \
    --title 'Empty Plot'               \
    --percent-box-label 'SCORES'       \
    --extra-box-label 'EXTRA-BOX'      \
    --x-label ''  --y-label ''         \
    -- plot_layers_nodata.gff          \
     > plot_layers_bg.ps 
  

Setting BGCOLOR to lightblue
 [PNG] [PS] [PDF
   
gff2aplot.pl                                     \
    --logs-filename plot_layers_bgcol.log        \
    --show-percent-box                           \
    --show-extra-box                             \
    --x-sequence-coords 0..1000                  \
    --y-sequence-coords 0..1000                  \
    --title 'Empty Plot'                         \
    --subtitle                                   \
      'Setting background color to "lightblue".' \
    --percent-box-label 'SCORES'                 \
    --extra-box-label 'EXTRA-BOX'                \
    --x-label ''  --y-label ''                   \
    --background-color lightblue                 \
    -- plot_layers_nodata.gff                    \
     > plot_layers_bgcol.ps 
  

Color to Main Panels
 [PNG] [PS] [PDF
   
gff2aplot.pl                                                \
    --logs-filename plot_layers_boxcol.log                  \
    --show-percent-box                                      \
    --show-extra-box                                        \
    --x-sequence-coords 0..1000                             \
    --y-sequence-coords 0..1000                             \
    --title 'Empty Plot'                                    \
    --subtitle                                              \
      'Filling main plot boxes with "verylightblue" color.' \
    --percent-box-label 'SCORES'                            \
    --extra-box-label 'EXTRA-BOX'                           \
    --x-label ''  --y-label ''                              \
    --background-color  lightblue                           \
    --aplot-box-color   verylightblue                       \
    --percent-box-color verylightblue                       \
    --extra-box-color   verylightblue                       \
    -- plot_layers_nodata.gff                               \
     > plot_layers_boxcol.ps 
  

Showing plot grid
 [PNG] [PS] [PDF
   
gff2aplot.pl                                      \
    --logs-filename plot_layers_grd.log           \
    --show-percent-box                            \
    --show-extra-box                              \
    --x-sequence-coords 0..1000                   \
    --y-sequence-coords 0..1000                   \
    --title 'Empty Plot'                          \
    --subtitle                                    \
      'Switching GRID on (all three plot boxes).' \
    --percent-box-label 'SCORES'                  \
    --extra-box-label 'EXTRA-BOX'                 \
    --x-label ''  --y-label ''                    \
    --background-color  lightblue                 \
    --aplot-box-color   verylightblue             \
    --percent-box-color verylightblue             \
    --extra-box-color   verylightblue             \
    --show-grid                                   \
    -- plot_layers_nodata.gff                     \
     > plot_layers_grd.ps 
  

Annotation Layer


Annotating axes
 [PNG] [PS] [PDF
   
gff2aplot.pl                                           \
    --logs-filename plot_layers_feat.log               \
    --custom-filename plot_layers_feat.rc              \
    --title 'Annotated Axes'                           \
    --subtitle                                         \
      'Showing GFF annotation on both, X and Y, axes.' \
    --x-label 'X Sequence'                             \
    --y-label 'Y Sequence'                             \
    -- plot_layers_noaln.gff                           \
     > plot_layers_feat.ps 
  

Projecting annotations into panels
 [PNG] [PS] [PDF
   
gff2aplot.pl                                  \
    --logs-filename plot_layers_featrib.log   \
    --custom-filename plot_layers_feat.rc     \
    --title 'Annotated Axes'                  \
    --subtitle                                \
      'Showing ribbons for all GFF-features.' \
    --x-label 'X Sequence'                    \
    --y-label 'Y Sequence'                    \
    --show-ribbons 'ribbons'                  \
    --layout-var 'ribbon_color=verylightred'  \
    -- plot_layers_noaln.gff                  \
     > plot_layers_featrib.ps 
  

Annotation projections + lines
 [PNG] [PS] [PDF
   
gff2aplot.pl                                  \
    --logs-filename plot_layers_featribln.log \
    --custom-filename plot_layers_feat.rc     \
    --title 'Annotated Axes'                  \
    --subtitle                                \
      'Showing ribbons for all GFF-features.' \
    --x-label 'X Sequence'                    \
    --y-label 'Y Sequence'                    \
    --show-ribbons 'both'                     \
    --layout-var 'ribbon_color=verylightred'  \
    -- plot_layers_noaln.gff                  \
     > plot_layers_featribln.ps 
  

Shapes Layer


Zoom area
 [PNG] [PS] [PDF
   
gff2aplot.pl                                   \
    --logs-filename plot_layers_prezm.log      \
    --custom-filename plot_layers_feat.rc      \
    --custom-filename plot_layers_feat2.rc     \
    --title 'Layers for Extra Custom-Features' \
    --subtitle 'Showing zoom area mark.'       \
    --x-sequence-zoom  100..400                \
    --y-sequence-zoom  600..900                \
    --zoom-area                                \
    -- plot_layers_noaln.gff                   \
     > plot_layers_prezm.ps 
  

Shapes layer
 [PNG] [PS] [PDF
   
gff2aplot.pl                                                         \
    --logs-filename plot_layers_pre.log                              \
    --custom-filename plot_layers_feat.rc                            \
    --custom-filename plot_layers_feat2.rc                           \
    --title 'Layers for Extra Custom-Features (PRE)'                 \
    --subtitle                                                       \
      'Showing "extra" annotations that appear below any alignment.' \
    --x-sequence-zoom  100..400                                      \
    --y-sequence-zoom  600..900                                      \
    --custom-filename plot_layers_pre.rc                             \
    --zoom-area                                                      \
    -- plot_layers_noaln.gff                                         \
     > plot_layers_pre.ps 
  

Alignment Layer


Alignment Layer
 [PNG] [PS] [PDF
   
gff2aplot.pl                                          \
    --logs-filename plot_layers_aln.log               \
    --custom-filename plot_layers_feat.rc             \
    --custom-filename plot_layers_feat2.rc            \
    --title 'Alignment Features Layer'                \
    --subtitle                                        \
      'We are changing alignment features color too.' \
    --x-sequence-zoom  100..400                       \
    --y-sequence-zoom  600..900                       \
    --custom-filename plot_layers_pre.rc              \
    --zoom-area                                       \
    --feature-var '*::alignment_color=darkblue'       \
    -- plot_layers.gff                                \
     > plot_layers_aln.ps 
  

Color Alignment
 [PNG] [PS] [PDF
   
gff2aplot.pl                                     \
    --logs-filename plot_layers_alncol.log       \
    --custom-filename plot_layers_feat.rc        \
    --custom-filename plot_layers_feat2.rc       \
    --title 'Alignment Features Layer'           \
    --subtitle                                   \
      'Enabling ribbon colors pseudo-merge.'     \
    --x-sequence-zoom  100..400                  \
    --y-sequence-zoom  600..900                  \
    --custom-filename plot_layers_pre.rc         \
    --zoom-area                                  \
    --layout-var 'ribbon_color_merge=true'       \
    --feature-var '*::alignment_color=darkblue'  \
    -- plot_layers.gff                           \
     > plot_layers_alncol.ps 
  

Top Layer


Arrows and text annotations
 [PNG] [PS] [PDF
   
gff2aplot.pl                                                         \
    --logs-filename plot_layers_post.log                             \
    --custom-filename plot_layers_feat.rc                            \
    --custom-filename plot_layers_feat2.rc                           \
    --title 'Layers for Extra Custom-Features (POST)'                \
    --subtitle                                                       \
      'Showing "extra" annotations that appear above any alignment.' \
    --x-sequence-zoom  100..400                                      \
    --y-sequence-zoom  600..900                                      \
    --custom-filename plot_layers_pre.rc                             \
    --custom-filename plot_layers_post.rc                            \
    --zoom-area                                                      \
    --feature-var '*::alignment_color=darkblue'                      \
    -- plot_layers.gff                                               \
     > plot_layers_post.ps 
  

 
  Disclaimer webmaster