]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefact.cpp
changes while testing
[mothur.git] / rarefact.cpp
index 6a9cb3180172b8aa06aed0039d252de8bdd8873d..0454d9e253473b368af34f35021dabbc4a50ae1b 100644 (file)
@@ -86,12 +86,12 @@ int Rarefact::driver(RarefactionCurveData* rcd, int increment, int nIters = 1000
                                lookup->set(binNumber, abundance);
                                rank->set(abundance, rank->get(abundance)+1);
 
-                               if((i == 0) || (i+1) % increment == 0){
+                               if((i == 0) || ((i+1) % increment == 0) || (ends.count(i+1) != 0)){
                                        rcd->updateRankData(rank);
                                }
                        }
        
-                       if(numSeqs % increment != 0){
+                       if((numSeqs % increment != 0) || (ends.count(numSeqs) != 0)){
                                rcd->updateRankData(rank);
                        }