#include <strandsalgo.h>
Inheritance diagram for StrandsAlgo:
Public Member Functions | |
StrandsAlgo (TrapperDoc *pDoc_, std::set< db_recno_t > &recnoList, AlgoParam *param) | |
void | start () |
Definition at line 6 of file strandsalgo.h.
|
Definition at line 9 of file strandsalgo.h. 00009 : 00010 RAlgo(pDoc_, recnoList, param) {}
|
|
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 }
|