X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimera.cpp;fp=chimera.cpp;h=3ab95892b9df8d1ad9692c2bca8b413412d3e0e5;hb=1f78a8c454a636f19b4711bd52782ea1e3e81d3d;hp=483e5530b094ce011a1e8894a6160a9ea60f2361;hpb=8ab46c171b45ae3782d839539792d049017a361b;p=mothur.git diff --git a/chimera.cpp b/chimera.cpp index 483e553..3ab9589 100644 --- a/chimera.cpp +++ b/chimera.cpp @@ -31,6 +31,8 @@ string Chimera::createFilter(vector 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