ARB
Classes | Macros | Typedefs | Enumerations | Functions | Variables
probe.h File Reference
#include <list>
#include <set>
#include <arbdb.h>
#include <PT_com.h>
#include <PT_server.h>
#include "PT_tools.h"
#include <cache.h>
Include dependency graph for probe.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  probe_input_data
 
struct  probe_statistic_struct
 
class  MostUsedPos
 
class  probe_struct_global
 
class  gene_struct
 
struct  ltByArbName
 
struct  ltByInternalName
 

Macros

#define PT_SERVER_MAGIC   0x32108765
 
#define PT_SERVER_VERSION   3
 
#define CALCULATE_STATS_ON_QUERY
 
#define pt_assert_stage(s)
 
#define pt_assert_valid_chain_stage1(node)
 
#define PT_MAX_PARTITION_DEPTH   4
 
#define PT_POS_TREE_HEIGHT   20
 
#define PT_MIN_TREE_HEIGHT   PT_MAX_PARTITION_DEPTH
 
#define MIN_PROBE_LENGTH   2
 
#define MATCHANSWER   50
 
#define CREATEANSWER   51
 
#define FINDANSWER   52
 

Typedefs

typedef unsigned long ULONG
 
typedef unsigned int UINT
 
typedef unsigned char uchar
 
typedef std::list< gene_structgene_struct_list
 
typedef std::set< const
gene_struct
*, ltByInternalName
gene_struct_index_internal
 
typedef std::set< const
gene_struct *, ltByArbName
gene_struct_index_arb
 

Enumerations

enum  PT_MATCH_TYPE { PT_MATCH_TYPE_INTEGER = 0, PT_MATCH_TYPE_WEIGHTED_PLUS_POS = 1, PT_MATCH_TYPE_WEIGHTED = -1 }
 
enum  type_types { t_int = 1, t_string = 0, t_float = 2 }
 
enum  PT_base {
  PT_QU = 0, PT_N = 1, PT_A, PT_C,
  PT_G, PT_T, PT_BASES, PT_B_UNDEF
}
 
enum  Stage { STAGE1, STAGE2 }
 

Functions

CONSTEXPR_INLINE bool is_std_base (char b)
 
CONSTEXPR_INLINE bool is_std_base_or_N (char b)
 
CONSTEXPR_INLINE bool is_ambig_base (char b)
 
CONSTEXPR_INLINE bool is_valid_base (char b)
 
CONSTEXPR_INLINE char base_2_readable (char base)
 
charprobe_2_readable (char *id_string, int len)
 
void reverse_probe (char *seq, int len)
 

Variables

int gene_flag
 
probe_struct_global psg
 
gene_struct_index_arb gene_struct_arb2internal
 
gene_struct_index_internal gene_struct_internal2arb
 

Macro Definition Documentation

#define PT_SERVER_MAGIC   0x32108765

Definition at line 27 of file probe.h.

Referenced by enter_stage_1_build_tree(), and PTD_read_leafs_from_disk().

#define PT_SERVER_VERSION   3

Definition at line 28 of file probe.h.

Referenced by enter_stage_1_build_tree(), PTD_read_leafs_from_disk(), and start_pt_server().

#define CALCULATE_STATS_ON_QUERY

Definition at line 36 of file probe.h.

#define pt_assert_stage (   s)
#define pt_assert_valid_chain_stage1 (   node)

Definition at line 47 of file probe.h.

Referenced by PTD_write_chain_to_disk().

#define PT_MAX_PARTITION_DEPTH   4

Definition at line 54 of file probe.h.

Referenced by decide_passes_to_use().

#define PT_POS_TREE_HEIGHT   20

Definition at line 56 of file probe.h.

Referenced by build_pos_tree().

#define PT_MIN_TREE_HEIGHT   PT_MAX_PARTITION_DEPTH

Definition at line 57 of file probe.h.

Referenced by build_pos_tree(), and save_lower_subtree().

#define MIN_PROBE_LENGTH   2

Definition at line 59 of file probe.h.

Referenced by probe_match().

#define MATCHANSWER   50

Definition at line 69 of file probe.h.

#define CREATEANSWER   51

Definition at line 70 of file probe.h.

#define FINDANSWER   52

Definition at line 71 of file probe.h.

Typedef Documentation

typedef unsigned long ULONG

Definition at line 50 of file probe.h.

typedef unsigned int UINT

Definition at line 51 of file probe.h.

typedef unsigned char uchar

Definition at line 52 of file probe.h.

typedef std::list<gene_struct> gene_struct_list

Definition at line 454 of file probe.h.

Definition at line 455 of file probe.h.

typedef std::set<const gene_struct *, ltByArbName> gene_struct_index_arb

Definition at line 456 of file probe.h.

Enumeration Type Documentation

Enumerator
PT_MATCH_TYPE_INTEGER 
PT_MATCH_TYPE_WEIGHTED_PLUS_POS 
PT_MATCH_TYPE_WEIGHTED 

Definition at line 61 of file probe.h.

enum type_types
Enumerator
t_int 
t_string 
t_float 

Definition at line 76 of file probe.h.

enum PT_base
Enumerator
PT_QU 
PT_N 
PT_A 
PT_C 
PT_G 
PT_T 
PT_BASES 
PT_B_UNDEF 

Definition at line 82 of file probe.h.

enum Stage
Enumerator
STAGE1 
STAGE2 

Definition at line 122 of file probe.h.

Function Documentation

CONSTEXPR_INLINE bool is_std_base ( char  b)
CONSTEXPR_INLINE bool is_std_base_or_N ( char  b)

Definition at line 94 of file probe.h.

References PT_N, and PT_T.

Referenced by MatchingOligo::bind_against().

CONSTEXPR_INLINE bool is_ambig_base ( char  b)

Definition at line 95 of file probe.h.

References PT_N, and PT_QU.

Referenced by Mismatches::count_weighted().

CONSTEXPR_INLINE bool is_valid_base ( char  b)

Definition at line 96 of file probe.h.

References PT_BASES, and PT_QU.

Referenced by MismatchWeights::get().

CONSTEXPR_INLINE char base_2_readable ( char  base)

Definition at line 98 of file probe.h.

References PT_BASES, and safeCharIndex().

Referenced by get_match_overlay(), probe_2_readable(), and PT_dump_POS_TREE_recursive().

char* probe_2_readable ( char id_string,
int  len 
)
inline

translate a string containing PT_base into readable characters.

Definition at line 102 of file probe.h.

References base_2_readable().

Referenced by get_design_info(), and get_match_hinfo_formatted().

void reverse_probe ( char seq,
int  len 
)
inline

Definition at line 112 of file probe.h.

References swap().

Referenced by create_reversed_probe(), and find_family().

Variable Documentation

int gene_flag
gene_struct_index_arb gene_struct_arb2internal

Definition at line 46 of file PT_main.cxx.

Referenced by get_gene_struct_by_arb_species_gene_name(), and PT_init_map().

gene_struct_index_internal gene_struct_internal2arb

Definition at line 47 of file PT_main.cxx.

Referenced by get_gene_struct_by_internal_gene_name(), and PT_init_map().