helper.c File Reference

#include "helper.h"

Defines

#define nuc_to_4(X)   (X == 'A' ? 0 : (X == 'C' ? 1 : (X == 'G' ? 2 : 3)))

Functions

void code2seq (struct SEQALN_SEQUENCE *seq)
INLINE int delta (char a, char b, struct SEQALN_CONSTANTS *scoring)
INLINE int mdelta (char a, char b, struct SEQALN_CONSTANTS *scoring)
INLINE int pdelta (int a, char b, struct SEQALN_PROFILE *pro)
INLINE int gap (int k, struct SEQALN_CONSTANTS *scoring)
INLINE int pgap (int k, struct SEQALN_PROFILE *pro)
int revcomp (struct SEQALN_SEQUENCE *seq)
int revseq (struct SEQALN_SEQUENCE *seq)
int compseq (struct SEQALN_SEQUENCE *seq)
void rpt_version (char *prog, struct SEQALN_IO *io)
void reverse_list (SEQALN_TRACE **list)
void memfree (struct SEQALN_SEQUENCE *seq1, struct SEQALN_SEQUENCE *seq2, struct SEQALN_CONSTANTS *scoring, struct SEQALN_RESULTS *results, struct SEQALN_IO *io)
int xlate (struct SEQALN_SEQUENCE *seq)
void freeTraceList (struct SEQALN_RESULTS *rslt)

Variables

char complement [128]

Define Documentation

#define nuc_to_4 ( X   )     (X == 'A' ? 0 : (X == 'C' ? 1 : (X == 'G' ? 2 : 3)))

Referenced by xlate().


Function Documentation

void code2seq ( struct SEQALN_SEQUENCE seq  ) 

int compseq ( struct SEQALN_SEQUENCE seq  ) 

INLINE int delta ( char  a,
char  b,
struct SEQALN_CONSTANTS scoring 
)

void freeTraceList ( struct SEQALN_RESULTS rslt  ) 

INLINE int gap ( int  k,
struct SEQALN_CONSTANTS scoring 
)

INLINE int mdelta ( char  a,
char  b,
struct SEQALN_CONSTANTS scoring 
)

void memfree ( struct SEQALN_SEQUENCE seq1,
struct SEQALN_SEQUENCE seq2,
struct SEQALN_CONSTANTS scoring,
struct SEQALN_RESULTS results,
struct SEQALN_IO io 
)

INLINE int pdelta ( int  a,
char  b,
struct SEQALN_PROFILE pro 
)

INLINE int pgap ( int  k,
struct SEQALN_PROFILE pro 
)

int revcomp ( struct SEQALN_SEQUENCE seq  ) 

void reverse_list ( SEQALN_TRACE **  list  ) 

References SEQALN_LSTRUCT::next.

int revseq ( struct SEQALN_SEQUENCE seq  ) 

void rpt_version ( char *  prog,
struct SEQALN_IO io 
)

References SEQALN_VERSION, and SEQALN_IO::STDOUT.

Referenced by parseargs().

int xlate ( struct SEQALN_SEQUENCE seq  ) 


Variable Documentation

char complement[128]

Initial value:

{
   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,0,0,0,0,0,0,'.',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
   0,'T','V','G','H',0,0,'C','D',0,0,0,0,'K','X',
   0,0,0,'Y','S','A','A','B','W','X','R',0,0,0,0,0,0,
   0,'t','v','g','h',0,0,'c','d',0,0,0,0,'k','x',
   0,0,0,'y','s','a','a','b','w','x','r',0,0,0,0,0,0
   }

Referenced by compseq().


Generated on Wed Aug 10 11:57:04 2011 for Softwares from Orpara by  doxygen 1.5.6