Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

removealgo.cc

Go to the documentation of this file.
00001 #include "removealgo.h"
00002 
00003 void RemoveAlgo::start()
00004 {
00005   if ( getMAl()->get_num_seq() == 0 ) {
00006     cerr<<"Nothing to be done here! "<<endl;
00007     return;
00008   }
00009 
00010   //This can be done much more efficiently, removing stuff 
00011   //directly in the db instead. Oh, well...
00012 
00013   int num(0);
00014   for( size_t i = 0; i < getMAl()->get_num_seq(); i++ ) {
00015     for( size_t j = 0; j < getMAl()->get_len(i); j++ ) {
00016       if ( getMAl()->is_DNP(i, j) ) {
00017         num++;
00018         getMAl()->set_DNP(i, j, false);
00019       }
00020     }
00021   }
00022   cerr<<num<<" DNPs removed"<<endl;
00023 }

Generated on Fri Mar 17 17:44:24 2006 for trapper by  doxygen 1.4.4