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

StrandsAlgo Class Reference

#include <strandsalgo.h>

Inheritance diagram for StrandsAlgo:

Inheritance graph
[legend]
Collaboration diagram for StrandsAlgo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StrandsAlgo (TrapperDoc *pDoc_, std::set< db_recno_t > &recnoList, AlgoParam *param)
void start ()

Detailed Description

Definition at line 6 of file strandsalgo.h.


Constructor & Destructor Documentation

StrandsAlgo::StrandsAlgo TrapperDoc pDoc_,
std::set< db_recno_t > &  recnoList,
AlgoParam param
[inline]
 

Definition at line 9 of file strandsalgo.h.

00009                                                                                      : 
00010     RAlgo(pDoc_, recnoList, param) {}


Member Function Documentation

void StrandsAlgo::start  )  [virtual]
 

Implements RAlgo.

Definition at line 7 of file strandsalgo.cc.

References MAl_Readonly::get_num_seq(), RAlgo::getMAl(), and MAl_Readonly::select_read().

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 }


The documentation for this class was generated from the following files:
Generated on Fri Mar 17 17:45:01 2006 for trapper by  doxygen 1.4.4