00001 /* Last edited: Feb 11 15:34 2002 (ac2) */ 00002 /* 00003 00004 // ####################################################################### 00005 00006 // SSAHA : Sequence Search and Alignment by Hashing Algorithm 00007 // Version 3.2, released 1st March 2004 00008 // Copyright (c) Genome Research 2002 00009 00010 // SSAHA is free software; you can redistribute it and/or modify 00011 // it under the terms of version 2 of the GNU General Public Licence 00012 // as published by the Free Software Foundation. 00013 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public Licence for more details. 00018 00019 // You should have received a copy of the GNU General Public Licence 00020 // along with this program; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 // or see the on-line version at http://www.gnu.org/copyleft/gpl.txt 00023 00024 // ####################################################################### 00025 00026 // Module Name : SSAHAWrapper 00027 // File Name : SSAHAWrapper.h 00028 // Language : C++ 00029 // Module Author: Anthony J. Cox (ac2@sanger.ac.uk) 00030 00031 // Include guard: 00032 */ 00033 00034 #ifdef __cplusplus 00035 extern "C" 00036 { 00037 #endif 00038 00039 enum SSAHAQueryType 00040 { 00041 eDNAQuery, 00042 eProteinQuery 00043 }; 00044 00045 00046 00047 00048 typedef struct 00049 { 00050 unsigned int seqNum; 00051 int seqPos; 00052 } SSAHAHit; 00053 00054 /* return name of the seqNum-th sequence in the table */ 00055 const char* getSubjectName( unsigned int seqNum ); 00056 00057 00058 00059 /* load a set of SSAHA tables named tableName.* into RAM */ 00060 int loadTable( const char* const tableName ); 00061 00062 /* perform a SSAHA search */ 00063 int doSearch 00064 ( 00065 const char* const pWords, 00066 const int numWords, 00067 SSAHAHit** const pHits, 00068 int ** const pStarts 00069 ); 00070 00071 /* Clear search results from RAM */ 00072 /* always called by loadTable, but not by doSearch */ 00073 int clearSearch( void ); 00074 /* Clear SSAHA tables from RAM */ 00075 /* always called by loadTable */ 00076 int clearTable( void ); 00077 00078 00079 #ifdef __cplusplus 00080 } 00081 #endif 00082 00083 00084 00085 00086 00087 /* End of file SSAHAWrapper.h */
1.5.2