NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CApplyRNAITSDlg Class Reference

Search Toolkit Book for CApplyRNAITSDlg

#include <gui/packages/pkg_sequence_edit/apply_rna_its_dlg.hpp>

+ Inheritance diagram for CApplyRNAITSDlg:
+ Collaboration diagram for CApplyRNAITSDlg:

Classes

struct  SRNAITSChoice
 

Public Types

enum  ERNA_ITSType {
  eRNA_ITS_unknown , eRNA_ITS_18S , eRNA_ITS_small , eRNA_ITS_18S_small ,
  eRNA_ITS_Its1 , eRNA_ITS_58S , eRNA_ITS_Its2 , eRNA_ITS_28S ,
  eRNA_ITS_26S , eRNA_ITS_25S , eRNA_ITS_large , eRNA_ITS_28S_large ,
  eRNA_ITS_26S_large , eRNA_ITS_25S_large
}
 
enum  ERNA_IGSType { eRNA_IGS_unknown , eRNA_IGS_16S , eRNA_IGS_16S_23S_Igs , eRNA_IGS_23S }
 
enum  EChoiceSet { eChoice_empty , eChoice_not_empty }
 
typedef vector< CConstRef< CSeq_feat > > TVecConstSeqFeat
 
typedef vector< CRef< CSeq_feat > > TVecSeqFeat
 
typedef vector< CConstRef< CSeq_id > > TVecConstSeqId
 

Public Member Functions

 CApplyRNAITSDlg ()
 Constructors. More...
 
 CApplyRNAITSDlg (wxWindow *parent, IWorkbench *wb, wxWindowID id=10307, const wxString &caption=_("Apply rRNA_ITS"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10307, const wxString &caption=_("Apply rRNA_ITS"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CApplyRNAITSDlg ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
ERNA_ITSType GetNextRNA_ITSChoice (ERNA_ITSType field_type)
 
ERNA_IGSType GetNextRNA_IGSChoice (ERNA_IGSType field_type)
 
void OnFirstChoiceSelected (wxCommandEvent &event)
 
void OnAnyOtherChoiceSelected (wxCommandEvent &event)
 
void OnITSRadioBoxSelected (wxCommandEvent &event)
 
void OnCtrlFromKillFocus (wxFocusEvent &event)
 
void OnCtrlToKillFocus (wxFocusEvent &event)
 
void OnCloseWindow (wxCloseEvent &event)
 
void OnGoClick (wxCommandEvent &event)
 
void OnCancelClick (wxCommandEvent &event)
 
virtual CRef< CCmdCompositeGetCommand ()
 CBulkCmdDlg pure virtual functions. More...
 
virtual string GetErrorMessage ()
 
virtual void SetRegistryPath (const string &reg_path)
 
virtual void LoadSettings ()
 
virtual void SaveSettings () const
 
void Apply_RNAITS_ToBioseq (const CBioseq_Handle &bsh, CRef< CCmdComposite > composite, bool &modified, bool create_general_only)
 
void Apply_RNAITS_ToBioseqSet (CSeq_entry_Handle entry, CRef< CCmdComposite > composite, bool &modified)
 
void Apply_RNAITS_ToTSE (CRef< CCmdComposite > composite, bool &modified)
 
void AddFeatures (const CBioseq_Handle &bsh, TVecConstSeqFeat &featlist, CRef< CCmdComposite > composite, bool &modified)
 
void Propagate_RNAITSList (const CBioseq_Handle &bsh, TVecConstSeqFeat &featlist, CRef< CCmdComposite > composite, bool &modified, bool create_general_only)
 
TVecConstSeqFeat GetRNAITSList_SeqCoordFromDlg (const CBioseq_Handle &bsh)
 
TVecConstSeqFeat GetRNAITSList_AlignCoordFromDlg (const CBioseq_Handle &bsh)
 
TVecConstSeqFeat ObtainRNAITSList (const CBioseq_Handle &bsh)
 
- Public Member Functions inherited from CBulkCmdDlg
 CBulkCmdDlg ()
 Constructors. More...
 
 CBulkCmdDlg (IWorkbench *wb)
 
bool Create (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 
bool Create (wxWindow *parent, IWorkbench *wb, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 
 ~CBulkCmdDlg ()
 Destructor. More...
 
virtual void OnChildChange (wxWindow *wnd)
 
virtual void ExecuteCmd (CRef< CCmdComposite > cmd)
 
bool GetTopLevelSeqEntryAndProcessor ()
 
TConstScopedObjects GetSelectedObjects ()
 
void UpdateChildrenFeaturePanels (wxSizer *sizer)
 
void onCancelPressed (wxCommandEvent &event)
 
- Public Member Functions inherited from IRegSettings
virtual ~IRegSettings ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 
static const stringGetRNA_ITSName (ERNA_ITSType field_type)
 
static const stringGetRNA_IGSName (ERNA_IGSType field_type)
 
static ERNA_ITSType GetRNA_ITSTypeFromName (const string &label)
 
static ERNA_IGSType GetRNA_IGSTypeFromName (const string &label)
 

Public Attributes

wxCheckBox * m_5partial
 
wxCheckBox * m_3partial
 
wxCheckBox * m_AlignCoords
 
wxRadioBox * m_ITSRadiobox
 
wxCheckBox * m_LeaveUp
 
wxButton * m_OK
 
wxButton * m_Cancel
 

Private Member Functions

void x_Set_ITSArray (wxArrayString &Its_tags)
 
void x_Set_IGSArray (wxArrayString &Igs_tags)
 
TVecConstSeqFeat x_UpdatePartials (TVecSeqFeat &featlist)
 if required, sets the first and last features incomplete More...
 
void x_SetupAlnMgr (void)
 
bool x_IsThereAlignment (void)
 
IAlnExplorer::TNumrow x_GetRow (const CBioseq &bioseq)
 
SIZE_TYPE x_BioseqInAlignments (const CBioseq_Handle &bsh)
 returns the number of dense-seg type alignment which the bioseq belongs to More...
 
vector< CConstRef< CSeq_align > > x_GetAlignments (const CBioseq_Handle &bsh)
 obtains all dense-seg type alignments where this bioseq is present, in this seq-entry More...
 
TVecConstSeqId x_SeqIdsAlignedWith (const CBioseq_Handle &bsh, const CSeq_align &align)
 obtains a vector of seqIds aligned with bsh through the given alignment - used for feature propagation More...
 
bool x_WasPropagatedTo (const CBioseq_Handle &bsh)
 returns true if features were already propagated to the sequence More...
 
void x_SaveAndDestroyFrame ()
 

Private Attributes

vector< SRNAITSChoicem_ChoiceList
 
int m_Choice
 
string m_RegPath
 
CRef< CAlnMapm_Alnmap
 
TVecConstSeqId m_PropSeqids
 

Additional Inherited Members

- Protected Member Functions inherited from CBulkCmdDlg
edit::EExistingText x_GetExistingTextHandling (int num_conflicts, bool allow_multiple=false)
 
- Protected Attributes inherited from CBulkCmdDlg
IWorkbenchm_Workbench
 
ICommandProccessorm_CmdProccessor
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
CConstRef< objects::CSeq_submit > m_SeqSubmit
 
string m_ErrorMessage
 

Detailed Description

CApplyRNAITSDlg class declaration

Definition at line 84 of file apply_rna_its_dlg.hpp.

Member Typedef Documentation

◆ TVecConstSeqFeat

Definition at line 115 of file apply_rna_its_dlg.hpp.

◆ TVecConstSeqId

Definition at line 117 of file apply_rna_its_dlg.hpp.

◆ TVecSeqFeat

Definition at line 116 of file apply_rna_its_dlg.hpp.

Member Enumeration Documentation

◆ EChoiceSet

Enumerator
eChoice_empty 
eChoice_not_empty 

Definition at line 143 of file apply_rna_its_dlg.hpp.

◆ ERNA_IGSType

Enumerator
eRNA_IGS_unknown 
eRNA_IGS_16S 
eRNA_IGS_16S_23S_Igs 
eRNA_IGS_23S 

Definition at line 136 of file apply_rna_its_dlg.hpp.

◆ ERNA_ITSType

Enumerator
eRNA_ITS_unknown 
eRNA_ITS_18S 
eRNA_ITS_small 
eRNA_ITS_18S_small 
eRNA_ITS_Its1 
eRNA_ITS_58S 
eRNA_ITS_Its2 
eRNA_ITS_28S 
eRNA_ITS_26S 
eRNA_ITS_25S 
eRNA_ITS_large 
eRNA_ITS_28S_large 
eRNA_ITS_26S_large 
eRNA_ITS_25S_large 

Definition at line 119 of file apply_rna_its_dlg.hpp.

Constructor & Destructor Documentation

◆ CApplyRNAITSDlg() [1/2]

CApplyRNAITSDlg::CApplyRNAITSDlg ( )

Constructors.

Definition at line 149 of file apply_rna_its_dlg.cpp.

References Init().

◆ CApplyRNAITSDlg() [2/2]

CApplyRNAITSDlg::CApplyRNAITSDlg ( wxWindow *  parent,
IWorkbench wb,
wxWindowID  id = 10307,
const wxString &  caption = _("Apply rRNA_ITS"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CApplyRNAITSDlg()

CApplyRNAITSDlg::~CApplyRNAITSDlg ( )

Destructor.

Definition at line 180 of file apply_rna_its_dlg.cpp.

Member Function Documentation

◆ AddFeatures()

void CApplyRNAITSDlg::AddFeatures ( const CBioseq_Handle bsh,
TVecConstSeqFeat featlist,
CRef< CCmdComposite composite,
bool modified 
)

◆ Apply_RNAITS_ToBioseq()

void CApplyRNAITSDlg::Apply_RNAITS_ToBioseq ( const CBioseq_Handle bsh,
CRef< CCmdComposite composite,
bool modified,
bool  create_general_only 
)

◆ Apply_RNAITS_ToBioseqSet()

void CApplyRNAITSDlg::Apply_RNAITS_ToBioseqSet ( CSeq_entry_Handle  entry,
CRef< CCmdComposite composite,
bool modified 
)

◆ Apply_RNAITS_ToTSE()

void CApplyRNAITSDlg::Apply_RNAITS_ToTSE ( CRef< CCmdComposite composite,
bool modified 
)

◆ Create()

bool CApplyRNAITSDlg::Create ( wxWindow *  parent,
wxWindowID  id = 10307,
const wxString &  caption = _("Apply rRNA_ITS"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CApplyRNAITSDlg::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CApplyRNAITSDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 492 of file apply_rna_its_dlg.cpp.

◆ GetCommand()

CRef< CCmdComposite > CApplyRNAITSDlg::GetCommand ( void  )
virtual

◆ GetErrorMessage()

string CApplyRNAITSDlg::GetErrorMessage ( )
virtual

Implements CBulkCmdDlg.

Definition at line 766 of file apply_rna_its_dlg.cpp.

References CBulkCmdDlg::m_ErrorMessage.

Referenced by OnGoClick().

◆ GetIconResource()

wxIcon CApplyRNAITSDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 505 of file apply_rna_its_dlg.cpp.

◆ GetNextRNA_IGSChoice()

CApplyRNAITSDlg::ERNA_IGSType CApplyRNAITSDlg::GetNextRNA_IGSChoice ( CApplyRNAITSDlg::ERNA_IGSType  field_type)

◆ GetNextRNA_ITSChoice()

CApplyRNAITSDlg::ERNA_ITSType CApplyRNAITSDlg::GetNextRNA_ITSChoice ( CApplyRNAITSDlg::ERNA_ITSType  field_type)

◆ GetRNA_IGSName()

const string & CApplyRNAITSDlg::GetRNA_IGSName ( ERNA_IGSType  field_type)
static

Definition at line 115 of file apply_rna_its_dlg.cpp.

References kEmptyStr.

Referenced by OnAnyOtherChoiceSelected(), and OnFirstChoiceSelected().

◆ GetRNA_IGSTypeFromName()

CApplyRNAITSDlg::ERNA_IGSType CApplyRNAITSDlg::GetRNA_IGSTypeFromName ( const string label)
static

Definition at line 126 of file apply_rna_its_dlg.cpp.

References eRNA_IGS_unknown, and label.

Referenced by OnAnyOtherChoiceSelected(), and OnFirstChoiceSelected().

◆ GetRNA_ITSName()

const string & CApplyRNAITSDlg::GetRNA_ITSName ( ERNA_ITSType  field_type)
static

Definition at line 84 of file apply_rna_its_dlg.cpp.

References kEmptyStr.

Referenced by OnAnyOtherChoiceSelected(), OnFirstChoiceSelected(), and x_Set_ITSArray().

◆ GetRNA_ITSTypeFromName()

CApplyRNAITSDlg::ERNA_ITSType CApplyRNAITSDlg::GetRNA_ITSTypeFromName ( const string label)
static

◆ GetRNAITSList_AlignCoordFromDlg()

CApplyRNAITSDlg::TVecConstSeqFeat CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg ( const CBioseq_Handle bsh)

◆ GetRNAITSList_SeqCoordFromDlg()

CApplyRNAITSDlg::TVecConstSeqFeat CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg ( const CBioseq_Handle bsh)

◆ Init()

void CApplyRNAITSDlg::Init ( void  )

Initialises member variables.

Definition at line 184 of file apply_rna_its_dlg.cpp.

References LoadSettings(), m_3partial, m_5partial, m_AlignCoords, m_Alnmap, m_Choice, m_ITSRadiobox, m_LeaveUp, m_PropSeqids, NULL, and SetRegistryPath().

Referenced by CApplyRNAITSDlg().

◆ LoadSettings()

void CApplyRNAITSDlg::LoadSettings ( )
virtual

◆ ObtainRNAITSList()

CApplyRNAITSDlg::TVecConstSeqFeat CApplyRNAITSDlg::ObtainRNAITSList ( const CBioseq_Handle bsh)

◆ OnAnyOtherChoiceSelected()

void CApplyRNAITSDlg::OnAnyOtherChoiceSelected ( wxCommandEvent &  event)

◆ OnCancelClick()

void CApplyRNAITSDlg::OnCancelClick ( wxCommandEvent &  event)

Definition at line 462 of file apply_rna_its_dlg.cpp.

References x_SaveAndDestroyFrame().

◆ OnCloseWindow()

void CApplyRNAITSDlg::OnCloseWindow ( wxCloseEvent &  event)

Definition at line 467 of file apply_rna_its_dlg.cpp.

References x_SaveAndDestroyFrame().

◆ OnCtrlFromKillFocus()

void CApplyRNAITSDlg::OnCtrlFromKillFocus ( wxFocusEvent &  event)

◆ OnCtrlToKillFocus()

void CApplyRNAITSDlg::OnCtrlToKillFocus ( wxFocusEvent &  event)

◆ OnFirstChoiceSelected()

void CApplyRNAITSDlg::OnFirstChoiceSelected ( wxCommandEvent &  event)

◆ OnGoClick()

void CApplyRNAITSDlg::OnGoClick ( wxCommandEvent &  event)

◆ OnITSRadioBoxSelected()

void CApplyRNAITSDlg::OnITSRadioBoxSelected ( wxCommandEvent &  event)

◆ Propagate_RNAITSList()

void CApplyRNAITSDlg::Propagate_RNAITSList ( const CBioseq_Handle bsh,
TVecConstSeqFeat featlist,
CRef< CCmdComposite composite,
bool modified,
bool  create_general_only 
)

◆ SaveSettings()

void CApplyRNAITSDlg::SaveSettings ( ) const
virtual

◆ SetRegistryPath()

void CApplyRNAITSDlg::SetRegistryPath ( const string reg_path)
virtual

Implements IRegSettings.

Definition at line 423 of file apply_rna_its_dlg.cpp.

References m_RegPath.

Referenced by Init().

◆ ShowToolTips()

bool CApplyRNAITSDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 483 of file apply_rna_its_dlg.cpp.

◆ x_BioseqInAlignments()

SIZE_TYPE CApplyRNAITSDlg::x_BioseqInAlignments ( const CBioseq_Handle bsh)
private

returns the number of dense-seg type alignment which the bioseq belongs to

Definition at line 1026 of file apply_rna_its_dlg.cpp.

References x_GetAlignments().

Referenced by Apply_RNAITS_ToBioseq().

◆ x_GetAlignments()

vector< CConstRef< CSeq_align > > CApplyRNAITSDlg::x_GetAlignments ( const CBioseq_Handle bsh)
private

◆ x_GetRow()

IAlnExplorer::TNumrow CApplyRNAITSDlg::x_GetRow ( const CBioseq bioseq)
private

◆ x_IsThereAlignment()

bool CApplyRNAITSDlg::x_IsThereAlignment ( void  )
private

◆ x_SaveAndDestroyFrame()

void CApplyRNAITSDlg::x_SaveAndDestroyFrame ( )
private

Definition at line 472 of file apply_rna_its_dlg.cpp.

References SaveSettings().

Referenced by OnCancelClick(), and OnCloseWindow().

◆ x_SeqIdsAlignedWith()

CApplyRNAITSDlg::TVecConstSeqId CApplyRNAITSDlg::x_SeqIdsAlignedWith ( const CBioseq_Handle bsh,
const CSeq_align align 
)
private

obtains a vector of seqIds aligned with bsh through the given alignment - used for feature propagation

Definition at line 1032 of file apply_rna_its_dlg.cpp.

References CBioseq_Handle::GetCompleteBioseq(), CSeq_align_Base::C_Segs::GetDenseg(), CBioseq_Base::GetId(), CDense_seg_Base::GetIds(), CSeq_align_Base::GetSegs(), ITERATE, m_PropSeqids, and CBulkCmdDlg::m_TopSeqEntry.

Referenced by Propagate_RNAITSList().

◆ x_Set_IGSArray()

void CApplyRNAITSDlg::x_Set_IGSArray ( wxArrayString &  Igs_tags)
private

Definition at line 390 of file apply_rna_its_dlg.cpp.

References ToWxString().

Referenced by CreateControls(), and OnITSRadioBoxSelected().

◆ x_Set_ITSArray()

void CApplyRNAITSDlg::x_Set_ITSArray ( wxArrayString &  Its_tags)
private

◆ x_SetupAlnMgr()

void CApplyRNAITSDlg::x_SetupAlnMgr ( void  )
private

◆ x_UpdatePartials()

CApplyRNAITSDlg::TVecConstSeqFeat CApplyRNAITSDlg::x_UpdatePartials ( TVecSeqFeat featlist)
private

if required, sets the first and last features incomplete

Definition at line 398 of file apply_rna_its_dlg.cpp.

References eExtreme_Biological, ITERATE, m_3partial, and m_5partial.

Referenced by GetRNAITSList_AlignCoordFromDlg(), and GetRNAITSList_SeqCoordFromDlg().

◆ x_WasPropagatedTo()

bool CApplyRNAITSDlg::x_WasPropagatedTo ( const CBioseq_Handle bsh)
private

returns true if features were already propagated to the sequence

Definition at line 1055 of file apply_rna_its_dlg.cpp.

References CBioseq_Handle::GetCompleteBioseq(), CBioseq_Base::GetId(), ITERATE, and m_PropSeqids.

Referenced by GetCommand().

Member Data Documentation

◆ m_3partial

wxCheckBox* CApplyRNAITSDlg::m_3partial

Definition at line 202 of file apply_rna_its_dlg.hpp.

Referenced by CreateControls(), Init(), and x_UpdatePartials().

◆ m_5partial

wxCheckBox* CApplyRNAITSDlg::m_5partial

Definition at line 201 of file apply_rna_its_dlg.hpp.

Referenced by CreateControls(), Init(), and x_UpdatePartials().

◆ m_AlignCoords

wxCheckBox* CApplyRNAITSDlg::m_AlignCoords

◆ m_Alnmap

CRef<CAlnMap> CApplyRNAITSDlg::m_Alnmap
private

◆ m_Cancel

wxButton* CApplyRNAITSDlg::m_Cancel

Definition at line 207 of file apply_rna_its_dlg.hpp.

Referenced by CreateControls().

◆ m_Choice

int CApplyRNAITSDlg::m_Choice
private

◆ m_ChoiceList

vector<SRNAITSChoice> CApplyRNAITSDlg::m_ChoiceList
private

◆ m_ITSRadiobox

wxRadioBox* CApplyRNAITSDlg::m_ITSRadiobox

◆ m_LeaveUp

wxCheckBox* CApplyRNAITSDlg::m_LeaveUp

Definition at line 205 of file apply_rna_its_dlg.hpp.

Referenced by CreateControls(), Init(), and OnGoClick().

◆ m_OK

wxButton* CApplyRNAITSDlg::m_OK

Definition at line 206 of file apply_rna_its_dlg.hpp.

Referenced by CreateControls().

◆ m_PropSeqids

TVecConstSeqId CApplyRNAITSDlg::m_PropSeqids
private

Definition at line 243 of file apply_rna_its_dlg.hpp.

Referenced by GetCommand(), Init(), x_SeqIdsAlignedWith(), and x_WasPropagatedTo().

◆ m_RegPath

string CApplyRNAITSDlg::m_RegPath
private

Definition at line 240 of file apply_rna_its_dlg.hpp.

Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().


The documentation for this class was generated from the following files:
Modified on Wed Jul 31 17:11:36 2024 by modify_doxy.py rev. 669887