1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/biology/ssaha/files/patch-MatchAligner.h
Felippe de Meirelles Motta 702ce22305 SSAHA is a software tool for very fast matching and alignment of DNA
sequences. It stands for Sequence Search and Alignment by Hashing
Algorithm. It achieves its fast search speed by converting sequence
information into a `hash table' data structure, which can then be
searched very rapidly for matches.

WWW: http://www.sanger.ac.uk/Software/analysis/SSAHA/

PR:		ports/124525
Submitted by:	Fernan Aguero <fernan@iib.unsam.edu.ar>
Approved by:	gabor (mentor, implicit)
2008-06-21 00:01:57 +00:00

34 lines
1.1 KiB
C++

--- ./QueryManager/MatchAligner.h.orig 2004-03-01 13:51:29.000000000 -0300
+++ ./QueryManager/MatchAligner.h 2008-06-12 15:39:31.000000000 -0300
@@ -315,13 +315,13 @@
static char getCodon( const char* pChar )
{
- return ( ( (ttDNA[ *pChar ] ==nv)
- || (ttDNA[ *(pChar+1) ] ==nv)
- || (ttDNA[ *(pChar+2) ] ==nv) )
+ return ( ( (ttDNA[ (int) *pChar ] ==nv)
+ || (ttDNA[ (int) *(pChar+1) ] ==nv)
+ || (ttDNA[ (int) *(pChar+2) ] ==nv) )
? 'X'
- : gResidueNames[ ttCodon[ ttDNA[ *(pChar) ] << 4
- | ttDNA[ *(pChar+1) ] << 2
- | ttDNA[ *(pChar+2) ] ] ] );
+ : gResidueNames[ ttCodon[ ttDNA[ (int) *(pChar) ] << 4
+ | ttDNA[ (int) *(pChar+1) ] << 2
+ | ttDNA[ (int) *(pChar+2) ] ] ] );
} // ~getCodon
@@ -519,8 +519,8 @@
: public vector<vector<PATH_TYPE> >
{
public:
- typedef pair<vector<vector<PATH_TYPE> >::iterator,
- vector<PATH_TYPE>::iterator> CellIterator;
+ typedef pair<typename vector<vector<PATH_TYPE> >::iterator,
+ typename vector<PATH_TYPE>::iterator> CellIterator;
template<class MATRIX_FILLER> ScoreType fillIn( MATRIX_FILLER& doMatrix )
{