00001 /* table of psl alignments, grouped by query */ 00002 #ifndef PSLTBL_H 00003 #define PSLTBL_H 00004 00005 struct psl; 00006 struct hash; 00007 00008 struct pslQuery 00009 /* object containing PSLs for a single query */ 00010 { 00011 struct pslQuery *next; 00012 char *qName; /* qName, memory not owned here */ 00013 struct psl *psls; /* alignments */ 00014 }; 00015 00016 struct pslTbl 00017 /* table of psl alignments */ 00018 { 00019 struct pslTbl *next; /* next psl table in a list */ 00020 char *setName; /* name identifying the set of psl. 00021 * maybe file name, or other name */ 00022 struct hash *queryHash; /* hash of pslQuery objects */ 00023 }; 00024 00025 struct pslTbl *pslTblNew(char *pslFile, char *setName); 00026 /* construct a new object, loading the psl file. If setName is NULL, the file 00027 * name is saved as the set name. */ 00028 00029 void pslTblFree(struct pslTbl **pslTblPtr); 00030 /* free object */ 00031 00032 void pslTblFreeList(struct pslTbl **pslTblList); 00033 /* free list of pslTbls */ 00034 00035 #endif 00036 00037 /* 00038 * Local Variables: 00039 * c-file-style: "jkent-c" 00040 * End: 00041 */ 00042
1.5.2