]> git.donarmstrong.com Git - mothur.git/blobdiff - chimera.cpp
changes for 1.12.2
[mothur.git] / chimera.cpp
index 483e5530b094ce011a1e8894a6160a9ea60f2361..685d6dbdbb990867dd4e4e49fe9b3aa4e46a270d 100644 (file)
@@ -31,6 +31,8 @@ string Chimera::createFilter(vector<Sequence*> seqs, float t) {
                        if (m->control_pressed) { return filterString; }
                
                        string seqAligned = seqs[i]->getAligned();
+                       
+                       if (seqAligned.length() != filterString.length()) {  m->mothurOut(seqs[i]->getName() + " is not the same length as the template sequences. Aborting!\n");  exit(1); }
                
                        for (int j = 0; j < seqAligned.length(); j++) {
                                //if this spot is a gap
@@ -102,7 +104,7 @@ vector<Sequence*> Chimera::readSeqs(string file) {
                
                #ifdef USE_MPI  
                        int pid, processors;
-                       vector<long> positions;
+                       vector<unsigned long int> positions;
                        int numSeqs;
                        int tag = 2001;