GDE_FileIO.cxx File Reference
#include "GDE_proto.h"
#include <aw_msg.hxx>
#include <climits>
#include <algorithm>
Include dependency graph for GDE_FileIO.cxx:

Go to the source code of this file.


static void Regroup (NA_Alignment &alignment)
static void NormalizeOffset (NA_Alignment &aln)
static void ReadNA_Flat (char *filename, NA_Alignment &data)
static GB_ERROR LoadFile (char *filename, NA_Alignment &dataset, int type, int format)
static int FindType (char *name, int *dtype, int *ftype)
void LoadData (char *filen, NA_Alignment &dataset)
void AppendNA (NA_Base *buffer, int len, NA_Sequence *seq)
void Ascii2NA (char *buffer, int len, int matrix[16])
int WriteNA_Flat (NA_Alignment &aln, char *filename, int method)
void Warning (const char *s)
void InitNASeq (NA_Sequence *seq, int type)

Function Documentation

static void Regroup ( NA_Alignment alignment)
static void NormalizeOffset ( NA_Alignment aln)
static void ReadNA_Flat ( char filename,
NA_Alignment data 
static GB_ERROR LoadFile ( char filename,
NA_Alignment dataset,
int  type,
int  format 

Definition at line 132 of file GDE_FileIO.cxx.

References DataType, error(), NA_Alignment::format, GDE, gde_assert, GENBANK, NA_FLAT, NULp, ReadGen(), and ReadNA_Flat().

Referenced by LoadData().

static int FindType ( char name,
int dtype,
int ftype 

Definition at line 160 of file GDE_FileIO.cxx.

References Find(), GBUFSIZ, GDE, GENBANK, NA_FLAT, NASEQ_ALIGN, and result.

Referenced by LoadData().

void LoadData ( char filen,
NA_Alignment dataset 
void AppendNA ( NA_Base buffer,
int  len,
NA_Sequence seq 
void Ascii2NA ( char buffer,
int  len,
int  matrix[16] 

Definition at line 259 of file GDE_FileIO.cxx.

Referenced by ReadGen(), and ReadNA_Flat().

int WriteNA_Flat ( NA_Alignment aln,
char filename,
int  method 
void Warning ( const char s)

Definition at line 334 of file GDE_FileIO.cxx.

References aw_message().

Referenced by putelem(), WriteGDE(), WriteGen(), and WriteNA_Flat().

void InitNASeq ( NA_Sequence seq,
int  type