ARB
Classes | Macros | Typedefs | Functions | Variables
arb_gene_probe.cxx File Reference
#include <arbdbt.h>
#include <adGene.h>
#include <map>
#include <list>
#include <set>
#include <string>
#include <unistd.h>
#include <sys/types.h>
Include dependency graph for arb_gene_probe.cxx:

Go to the source code of this file.

Classes

struct  nameOrder
 
struct  PositionPair
 
struct  ltNonOverlap
 
class  GenePositionMap
 

Macros

#define gp_assert(cond)   arb_assert(cond)
 
#define CHECK_SEMI_ESCAPED(s)
 

Typedefs

typedef map< const char
*, string, nameOrder
FullNameMap
 
typedef list< PositionPairPositionPairList
 

Functions

static GB_ERROR create_data_entry (GBDATA *gb_species2, const char *sequence, int seqlen)
 
static GBDATAcreate_gene_species (GBDATA *gb_species_data2, const char *internal_name, const char *long_name, int abspos, const char *sequence, int length)
 
static GB_ERROR create_genelike_entry (const char *internal_name, GBDATA *gb_species_data2, int start_pos, int end_pos, const char *ali_genome, const char *long_name)
 
static GB_ERROR create_intergene (GBDATA *gb_species_data2, int start_pos, int end_pos, const char *ali_genome, const char *long_gene_name)
 
static GB_ERROR create_gene (GBDATA *gb_species_data2, int start_pos, int end_pos, const char *ali_genome, const char *long_gene_name)
 
static GB_ERROR create_split_gene (GBDATA *gb_species_data2, PositionPairList &part_list, const char *ali_genome, const char *long_gene_name)
 
static GB_ERROR scan_gene_positions (GBDATA *gb_gene, PositionPairList &part_list)
 
static GB_ERROR insert_genes_of_organism (GBDATA *gb_organism, GBDATA *gb_species_data2)
 
int ARB_main (int argc, char *argv[])
 

Variables

static int gene_counter = 0
 
static int split_gene_counter = 0
 
static int intergene_counter = 0
 
static FullNameMap names
 

Macro Definition Documentation

#define gp_assert (   cond)    arb_assert(cond)
#define CHECK_SEMI_ESCAPED (   s)

Definition at line 227 of file arb_gene_probe.cxx.

Referenced by create_gene_species().

Typedef Documentation

typedef map<const char *, string, nameOrder> FullNameMap

Definition at line 50 of file arb_gene_probe.cxx.

Definition at line 95 of file arb_gene_probe.cxx.

Function Documentation

static GB_ERROR create_data_entry ( GBDATA gb_species2,
const char sequence,
int  seqlen 
)
static

Definition at line 202 of file arb_gene_probe.cxx.

References error(), GB_await_error(), GB_create_container(), GBT_write_string(), and NULp.

Referenced by create_gene_species().

static GBDATA* create_gene_species ( GBDATA gb_species_data2,
const char internal_name,
const char long_name,
int  abspos,
const char sequence,
int  length 
)
static
static GB_ERROR create_genelike_entry ( const char internal_name,
GBDATA gb_species_data2,
int  start_pos,
int  end_pos,
const char ali_genome,
const char long_name 
)
static

Definition at line 276 of file arb_gene_probe.cxx.

References create_gene_species(), GB_await_error(), and NULp.

Referenced by create_gene(), and create_intergene().

static GB_ERROR create_intergene ( GBDATA gb_species_data2,
int  start_pos,
int  end_pos,
const char ali_genome,
const char long_gene_name 
)
static

Definition at line 281 of file arb_gene_probe.cxx.

References create_genelike_entry().

Referenced by insert_genes_of_organism().

static GB_ERROR create_gene ( GBDATA gb_species_data2,
int  start_pos,
int  end_pos,
const char ali_genome,
const char long_gene_name 
)
static

Definition at line 290 of file arb_gene_probe.cxx.

References create_genelike_entry().

Referenced by insert_genes_of_organism().

static GB_ERROR create_split_gene ( GBDATA gb_species_data2,
PositionPairList part_list,
const char ali_genome,
const char long_gene_name 
)
static
static GB_ERROR scan_gene_positions ( GBDATA gb_gene,
PositionPairList part_list 
)
static
static GB_ERROR insert_genes_of_organism ( GBDATA gb_organism,
GBDATA gb_species_data2 
)
static
int ARB_main ( int  argc,
char argv[] 
)

Variable Documentation

int gene_counter = 0
static

Definition at line 33 of file arb_gene_probe.cxx.

Referenced by insert_genes_of_organism().

int split_gene_counter = 0
static

Definition at line 34 of file arb_gene_probe.cxx.

Referenced by insert_genes_of_organism().

int intergene_counter = 0
static

Definition at line 35 of file arb_gene_probe.cxx.

Referenced by insert_genes_of_organism().

FullNameMap names
static