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

strandsalgo.cc

Go to the documentation of this file.
00001 #include "strandsalgo.h"
00002 #include <qinputdialog.h>
00003 #include <string>
00004 
00005 using namespace std;
00006 
00007 void StrandsAlgo::start()
00008 {
00009   QStringList lst;
00010   lst << "Normal" << "Reverse";
00011   bool ok;
00012   
00013   QString res = QInputDialog::getItem ( "Select reads on strand", 
00014                                         "Select strand, normal or reverse", 
00015                                         lst, 
00016                                         0, FALSE, 
00017                                         &ok, 0, 0 );
00018   
00019   if ( !ok ) return;
00020   
00021   string strand;
00022   
00023   if ( res == "Normal" ) {
00024     strand = "U";
00025   }
00026   else {
00027     strand = "C";
00028   }
00029   
00030   
00031   for( size_t i = 0; i < getMAl()->get_num_seq(); i++ ) {
00032     
00033     if ( getMAl()->get_strand(i) != strand ) {
00034       getMAl()->select_read(i, false);
00035     }
00036   }
00037 }

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