freebsd-ports/biology/ssaha/files/patch-SequenceReader.cpp
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

20 lines
717 B
C++

--- ./SequenceReader/SequenceReader.cpp.orig 2004-03-01 13:51:29.000000000 -0300
+++ ./SequenceReader/SequenceReader.cpp 2008-06-12 15:39:31.000000000 -0300
@@ -179,7 +179,7 @@
for ( ; i != reverseBuffer_.end() ; i++, j-- )
{
- *i= reverseChar[ *j ];
+ *i= reverseChar[ (int) *j ];
// cout << "char: " << (int)*j << *j << " - " << (int)*i << *i << endl;
}
@@ -356,7 +356,7 @@
throw SSAHAException
("Requested seq start exceeds requested seq end in SourceReaderIndex::extractSource");
} // ~if
- else if (seqEnd>lastSourceSeq_.size() )
+ else if (seqEnd>(int)lastSourceSeq_.size() )
{
cout << seqEnd << " " << lastSourceSeq_.size() << endl;
throw SSAHAException