src/coordMapper.cpp File Reference

#include "gn/gnSequence.h"
#include <iostream>
#include <fstream>
#include <algorithm>

Include dependency graph for coordMapper.cpp:

Include dependency graph

Go to the source code of this file.

Classes

struct  ExMem

Functions

boolean ExMemLessthan (const ExMem &a, const ExMem &b)
void load_map_file (string &filename, vector< gnLocation > &loc_list)
uint32 loc_binary_search (vector< gnLocation > &loc_list, uint32 startI, uint32 endI, gnLocation &query_loc)
boolean LocationEndLessthan (const gnLocation &a, const gnLocation &b)
boolean LocationLessthan (const gnLocation &a, const gnLocation &b)
boolean LocationSizeLessthan (const gnLocation &a, const gnLocation &b)
int main (int argc, char *argv[])
void map_coordinates (vector< gnLocation > &loc_list, vector< gnLocation > &map_list)
void map_list_coordinates (list< gnLocation > &loc_list, list< gnLocation > &map_list)
void print_feature (ostream &os, gnBaseFeature *cur_feat)
void print_usage (char *pname)


Function Documentation

boolean ExMemLessthan const ExMem a,
const ExMem b
[static]
 

Definition at line 31 of file coordMapper.cpp.

References ExMem::ex_start, ExMem::in_start, and ExMem::length.

Referenced by main().

void load_map_file string &  filename,
vector< gnLocation > &  loc_list
 

Definition at line 45 of file coordMapper.cpp.

References gnSeqI.

Referenced by main().

uint32 loc_binary_search vector< gnLocation > &  loc_list,
uint32  startI,
uint32  endI,
gnLocation query_loc
 

Definition at line 93 of file coordMapper.cpp.

References gnLocation::GetStart(), and uint32.

Referenced by main().

boolean LocationEndLessthan const gnLocation a,
const gnLocation b
[static]
 

Definition at line 21 of file coordMapper.cpp.

References gnLocation::GetEnd(), and gnLocation::GetStart().

boolean LocationLessthan const gnLocation a,
const gnLocation b
[static]
 

Definition at line 15 of file coordMapper.cpp.

References gnLocation::GetStart().

boolean LocationSizeLessthan const gnLocation a,
const gnLocation b
[static]
 

Definition at line 27 of file coordMapper.cpp.

References gnLocation::GetEnd(), and gnLocation::GetStart().

int main int  argc,
char *  argv[]
 

Definition at line 106 of file coordMapper.cpp.

References ExMem::ex_start, ExMemLessthan(), gnSequence::getIntersectingFeatures(), gnSeqI, ExMem::in_start, int64, ExMem::length, gnSequence::length(), load_map_file(), gnSequence::LoadSource(), loc_binary_search(), map_coordinates(), print_feature(), print_usage(), and uint32.

void map_coordinates vector< gnLocation > &  loc_list,
vector< gnLocation > &  map_list
 

Definition at line 64 of file coordMapper.cpp.

References gnSeqI, and uint32.

Referenced by main().

void map_list_coordinates list< gnLocation > &  loc_list,
list< gnLocation > &  map_list
 

Definition at line 74 of file coordMapper.cpp.

References gnSeqI.

void print_feature ostream &  os,
gnBaseFeature cur_feat
 

Definition at line 85 of file coordMapper.cpp.

References gnBaseFeature::GetName(), gnBaseFeature::GetQualifierListLength(), gnBaseFeature::GetQualifierName(), gnBaseFeature::GetQualifierValue(), and uint32.

Referenced by main().

void print_usage char *  pname  ) 
 

Definition at line 41 of file coordMapper.cpp.


Generated on Mon Mar 28 06:00:43 2005 for libGenome by doxygen 1.3.6