]> git.donarmstrong.com Git - mothur.git/blobdiff - chimera.cpp
latest version
[mothur.git] / chimera.cpp
index 483e5530b094ce011a1e8894a6160a9ea60f2361..3ab95892b9df8d1ad9692c2bca8b413412d3e0e5 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