00001 #ifndef DEF_UTIL_H 00002 #define DEF_UTIL_H 00003 00004 #include "blastParser.h" 00005 #include "blatParser.h" 00006 00007 typedef struct { 00008 char* transcriptName; 00009 char* swissProt; 00010 char* uniprotId; 00011 char* geneSymbol; 00012 char* refseqId; 00013 char* refseqDescription; 00014 } KgXref; 00015 00016 00017 00018 typedef struct { 00019 char* transcriptName; 00020 char* treeFamId; 00021 } KgTreeFam; 00022 00023 00024 extern int getNucleotideOverlap ( BlatQuery* blQ ); 00025 extern Array util_readKnownGeneXrefs (char* fileName); 00026 extern Array util_readKnownGeneTreeFams (char* fileName); 00027 extern int sortKgXrefsByTranscriptName (KgXref *a, KgXref *b); 00028 extern void transcript2geneSymbolAndGeneDescription (Array kgXrefs, char *transcriptName, char** geneSymbol, char **description); 00029 00030 00031 #endif