ARB
Classes | Macros | Enumerations | Functions | Variables
ColumnStat_2_gnuplot.cxx File Reference
#include "NT_local.h"
#include <ColumnStat.hxx>
#include <AP_filter.hxx>
#include <awt_filter.hxx>
#include <aw_awars.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_select.hxx>
#include <arbdbt.h>
#include <arb_file.h>
#include <unistd.h>
Include dependency graph for ColumnStat_2_gnuplot.cxx:

Go to the source code of this file.

Classes

class  SortedFreq
 
class  Smoother
 
struct  PlotParam
 

Macros

#define AWAR_CS2GP   "tmp/ntree/colstat_2_gnuplot"
 
#define AWAR_CS2GP_NAME   AWAR_CS2GP "/name"
 
#define AWAR_CS2GP_SUFFIX   AWAR_CS2GP "/filter"
 
#define AWAR_CS2GP_DIRECTORY   AWAR_CS2GP "/directory"
 
#define AWAR_CS2GP_FILENAME   AWAR_CS2GP "/file_name"
 
#define AWAR_CS2GP_SMOOTH_VALUES   AWAR_CS2GP "/smooth_values"
 
#define AWAR_CS2GP_SMOOTH_GNUPLOT   AWAR_CS2GP "/smooth_gnuplot"
 
#define AWAR_CS2GP_GNUPLOT_OVERLAY_PREFIX   AWAR_CS2GP "/gnuplot_overlay_prefix"
 
#define AWAR_CS2GP_GNUPLOT_OVERLAY_POSTFIX   AWAR_CS2GP "/gnuplot_overlay_postfix"
 
#define AWAR_CS2GP_FILTER_NAME   AWAR_CS2GP "/ap_filter/name"
 

Enumerations

enum  PlotType {
  PT_GC_RATIO, PT_GA_RATIO, PT_RATE, PT_TT_RATIO,
  PT_MOST_FREQUENT_BASE, PT_SECOND_FREQUENT_BASE, PT_THIRD_FREQUENT_BASE, PT_LEAST_FREQUENT_BASE,
  PT_BASE_A, PT_BASE_C, PT_BASE_G, PT_BASE_TU,
  PT_HELIX, PT_PLOT_TYPES, PT_UNKNOWN
}
 
enum  PlotMode { PLOT, PLOT_AND_VIEW, PLOT_CLEANUP }
 

Functions

static GB_ERROR split_stat_filename (const char *fname, char **dirPtr, char **name_prefixPtr, char **name_postfixPtr)
 
static charget_overlay_files (AW_root *awr, const char *fname, GB_ERROR &error)
 
static PlotType string2PlotType (const char *type)
 
static const charmakeTitle (const char *fname)
 
static void colstat_2_gnuplot_cb (AW_window *aww, PlotParam *param, PlotMode mode)
 
static void colstat_ali_changed_cb (AW_root *root, AW_awar *awar_ali)
 
AW_windowNT_create_colstat_2_gnuplot_window (AW_root *root)
 

Variables

static const charplotTypeName [PT_PLOT_TYPES]
 
static const charplotTypeDescription [PT_PLOT_TYPES]
 

Macro Definition Documentation

#define AWAR_CS2GP   "tmp/ntree/colstat_2_gnuplot"

Definition at line 26 of file ColumnStat_2_gnuplot.cxx.

Referenced by NT_create_colstat_2_gnuplot_window().

#define AWAR_CS2GP_NAME   AWAR_CS2GP "/name"

Definition at line 28 of file ColumnStat_2_gnuplot.cxx.

Referenced by NT_create_colstat_2_gnuplot_window().

#define AWAR_CS2GP_SUFFIX   AWAR_CS2GP "/filter"
#define AWAR_CS2GP_DIRECTORY   AWAR_CS2GP "/directory"

Definition at line 30 of file ColumnStat_2_gnuplot.cxx.

Referenced by colstat_2_gnuplot_cb().

#define AWAR_CS2GP_FILENAME   AWAR_CS2GP "/file_name"

Definition at line 31 of file ColumnStat_2_gnuplot.cxx.

Referenced by colstat_2_gnuplot_cb().

#define AWAR_CS2GP_SMOOTH_VALUES   AWAR_CS2GP "/smooth_values"
#define AWAR_CS2GP_SMOOTH_GNUPLOT   AWAR_CS2GP "/smooth_gnuplot"
#define AWAR_CS2GP_GNUPLOT_OVERLAY_PREFIX   AWAR_CS2GP "/gnuplot_overlay_prefix"
#define AWAR_CS2GP_GNUPLOT_OVERLAY_POSTFIX   AWAR_CS2GP "/gnuplot_overlay_postfix"
#define AWAR_CS2GP_FILTER_NAME   AWAR_CS2GP "/ap_filter/name"

Definition at line 37 of file ColumnStat_2_gnuplot.cxx.

Referenced by NT_create_colstat_2_gnuplot_window().

Enumeration Type Documentation

enum PlotType
Enumerator
PT_GC_RATIO 
PT_GA_RATIO 
PT_RATE 
PT_TT_RATIO 
PT_MOST_FREQUENT_BASE 
PT_SECOND_FREQUENT_BASE 
PT_THIRD_FREQUENT_BASE 
PT_LEAST_FREQUENT_BASE 
PT_BASE_A 
PT_BASE_C 
PT_BASE_G 
PT_BASE_TU 
PT_HELIX 
PT_PLOT_TYPES 
PT_UNKNOWN 

Definition at line 136 of file ColumnStat_2_gnuplot.cxx.

enum PlotMode
Enumerator
PLOT 
PLOT_AND_VIEW 
PLOT_CLEANUP 

Definition at line 332 of file ColumnStat_2_gnuplot.cxx.

Function Documentation

static GB_ERROR split_stat_filename ( const char fname,
char **  dirPtr,
char **  name_prefixPtr,
char **  name_postfixPtr 
)
static

Definition at line 39 of file ColumnStat_2_gnuplot.cxx.

References ARB_strdup(), GB_export_errorf(), nt_assert, and NULp.

Referenced by get_overlay_files().

static char* get_overlay_files ( AW_root awr,
const char fname,
GB_ERROR error 
)
static
static PlotType string2PlotType ( const char type)
static

Definition at line 187 of file ColumnStat_2_gnuplot.cxx.

References PT_PLOT_TYPES, and PT_UNKNOWN.

Referenced by colstat_2_gnuplot_cb(), and makeTitle().

static const char* makeTitle ( const char fname)
static
static void colstat_2_gnuplot_cb ( AW_window aww,
PlotParam param,
PlotMode  mode 
)
static
static void colstat_ali_changed_cb ( AW_root root,
AW_awar awar_ali 
)
static
AW_window* NT_create_colstat_2_gnuplot_window ( AW_root root)

Variable Documentation

const char* plotTypeName[PT_PLOT_TYPES]
static
Initial value:
= {
"gc_gnu",
"ga_gnu",
"rate_gnu",
"tt_gnu",
"f1_gnu",
"f2_gnu",
"f3_gnu",
"f4_gnu",
"a_gnu",
"c_gnu",
"g_gnu",
"tu_gnu",
"helix_gnu"
}

Definition at line 155 of file ColumnStat_2_gnuplot.cxx.

const char* plotTypeDescription[PT_PLOT_TYPES]
static
Initial value:
= {
"G+C ratio",
"G+A ratio",
"Rate",
"TT Ratio",
"Most frequent base",
"2nd frequent base",
"3rd frequent base",
"Least frequent base",
"A ratio",
"C ratio",
"G ratio",
"T/U ratio",
"Helix"
}

Definition at line 171 of file ColumnStat_2_gnuplot.cxx.