inc/dnaLoad.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

dnaLoaddnaLoadOpen (char *fileName)
dnaSeqdnaLoadNext (struct dnaLoad *dl)
int dnaLoadCurStart (struct dnaLoad *dl)
int dnaLoadCurEnd (struct dnaLoad *dl)
int dnaLoadCurSize (struct dnaLoad *dl)
void dnaLoadClose (struct dnaLoad **pDl)
dnaSeqdnaLoadAll (char *fileName)


Function Documentation

struct dnaSeq* dnaLoadAll ( char *  fileName  )  [read]

Definition at line 260 of file dnaLoad.c.

References dnaLoadClose(), dnaLoadNext(), dnaLoadOpen(), slAddHead, and slReverse().

00265 {
00266 struct dnaLoad *dl = dnaLoadOpen(fileName);
00267 struct dnaSeq *seqList = NULL, *seq;
00268 while ((seq = dnaLoadNext(dl)) != NULL)
00269     {
00270     slAddHead(&seqList, seq);
00271     }
00272 dnaLoadClose(&dl);
00273 slReverse(seqList);
00274 return seqList;
00275 }

Here is the call graph for this function:

void dnaLoadClose ( struct dnaLoad **  pDl  ) 

Definition at line 85 of file dnaLoad.c.

References dnaLoadStackFreeList(), freeMem(), freez(), dnaLoad::stack, and dnaLoad::topFileName.

Referenced by dnaLoadAll().

00087 {
00088 struct dnaLoad *dl = *pDl;
00089 if (dl != NULL)
00090     {
00091     dnaLoadStackFreeList(&dl->stack);
00092     freeMem(dl->topFileName);
00093     freez(pDl);
00094     }
00095 }

Here is the call graph for this function:

Here is the caller graph for this function:

int dnaLoadCurEnd ( struct dnaLoad dl  ) 

Definition at line 286 of file dnaLoad.c.

References dnaLoad::curEnd.

00291 {
00292 return dl->curEnd;
00293 }

int dnaLoadCurSize ( struct dnaLoad dl  ) 

Definition at line 295 of file dnaLoad.c.

References dnaLoad::curSize.

00298 {
00299 return dl->curSize;
00300 }

int dnaLoadCurStart ( struct dnaLoad dl  ) 

Definition at line 277 of file dnaLoad.c.

References dnaLoad::curStart.

00282 {
00283 return dl->curStart;
00284 }

struct dnaSeq* dnaLoadNext ( struct dnaLoad dl  )  [read]

Definition at line 251 of file dnaLoad.c.

References dnaLoad::curEnd, dnaLoad::curSize, dnaLoad::curStart, and dnaLoadStackOrSingle().

Referenced by dnaLoadAll().

00253 {
00254 struct dnaSeq *seq;
00255 dl->curSize = dl->curStart = dl->curEnd = 0;
00256 seq = dnaLoadStackOrSingle(dl);
00257 return seq;
00258 }

Here is the call graph for this function:

Here is the caller graph for this function:

struct dnaLoad* dnaLoadOpen ( char *  fileName  )  [read]

Definition at line 97 of file dnaLoad.c.

References AllocVar, cloneString(), and dnaLoad::topFileName.

Referenced by dnaLoadAll().

00100 {
00101 struct dnaLoad *dl;
00102 AllocVar(dl);
00103 dl->topFileName = cloneString(fileName);
00104 return dl;
00105 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Tue Dec 25 18:51:32 2007 for blat by  doxygen 1.5.2