NCBI C++ ToolKit
Functions
seqtable_util.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <objects/seqtable/Seq_table.hpp>
#include <objects/seqtable/SeqTable_column.hpp>
#include <objects/seqtable/SeqTable_multi_data.hpp>
#include <objects/seqtable/SeqTable_column_info.hpp>
#include <objtools/edit/seqid_guesser.hpp>
#include <gui/widgets/wx/wx_utils.hpp>
+ Include dependency graph for seqtable_util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (ncbi::objects)
 
void RemoveRowsFromColumn (CRef< CSeqTable_column > col, const vector< size_t > &rows)
 
void RemoveRowsFromTable (CRef< CSeq_table > table, const vector< size_t > &rows)
 
void RemoveTableRowsThatDoNotMatchStringConstraint (CRef< CSeq_table > table, const string &field, CRef< edit::CStringConstraint > string_constraint)
 
void ApplyToTable (CRef< CSeq_table > table, const string &field, const string &val, edit::EExistingText existing_text=edit::eExistingText_replace_old)
 
void RemoveFromTable (CRef< CSeq_table > table, const string &field)
 
void ConvertTableColumns (CRef< CSeq_table > table, const string &field1, const string &field2, edit::EExistingText existing_text)
 
void SwapTableColumns (CRef< CSeq_table > table, const string &field1, const string &field2)
 
void CopyTableColumns (CRef< CSeq_table > table, const string &field1, const string &field2, edit::EExistingText existing_text)
 
CRef< CSeqTable_columnFindSeqTableColumnByName (CRef< objects::CSeq_table > values_table, string column_name)
 
bool RemoveSeqTableColumnByName (CRef< objects::CSeq_table > table, string column_name)
 
void AddValueToColumn (CRef< CSeqTable_column > column, string value, size_t row, edit::EExistingText existing_text=edit::eExistingText_replace_old)
 
void AddValueToTable (CRef< CSeq_table > table, string subtype_name, string value, size_t row, edit::EExistingText existing_text=edit::eExistingText_replace_old)
 
void AddValueToTable (CRef< CSeq_table > table, string subtype_name, int value, size_t row)
 
void SetColumnValue (CRef< CSeqTable_column > col, string val)
 
CRef< CSeqTable_columnAddStringColumnToTable (CRef< CSeq_table > table, string label)
 
CRef< CSeqTable_columnAddIntColumnToTable (CRef< CSeq_table > table, string label)
 
bool QualifierNamesAreEquivalent (string name1, string name2)
 
bool MatchColumnName (string name1, string name2)
 
bool IsOrgColumnName (string name)
 
bool IsSubSourceNoteName (const string &name)
 
bool IsOrgModNoteName (const string &name)
 
int CountColumnValueConflicts (CRef< CSeqTable_column > column1, CRef< CSeqTable_column > column2)
 
void FillShortColumns (CRef< objects::CSeq_table > values_table)
 

Function Documentation

◆ AddIntColumnToTable()

CRef<CSeqTable_column> AddIntColumnToTable ( CRef< CSeq_table table,
string  label 
)

Referenced by GetFeaturesFromSeqEntry().

◆ AddStringColumnToTable()

CRef<CSeqTable_column> AddStringColumnToTable ( CRef< CSeq_table table,
string  label 
)

◆ AddValueToColumn()

void AddValueToColumn ( CRef< CSeqTable_column column,
string  value,
size_t  row,
edit::EExistingText  existing_text = edit::eExistingText_replace_old 
)

◆ AddValueToTable() [1/2]

void AddValueToTable ( CRef< CSeq_table table,
string  subtype_name,
int  value,
size_t  row 
)

◆ AddValueToTable() [2/2]

void AddValueToTable ( CRef< CSeq_table table,
string  subtype_name,
string  value,
size_t  row,
edit::EExistingText  existing_text = edit::eExistingText_replace_old 
)

◆ ApplyToTable()

void ApplyToTable ( CRef< CSeq_table table,
const string field,
const string val,
edit::EExistingText  existing_text = edit::eExistingText_replace_old 
)

Definition at line 183 of file seqtable_util.cpp.

References AddValueToColumn(), column, FindSeqTableColumnByName(), row, table, and val.

◆ ConvertTableColumns()

void ConvertTableColumns ( CRef< CSeq_table table,
const string field1,
const string field2,
edit::EExistingText  existing_text 
)

◆ CopyTableColumns()

void CopyTableColumns ( CRef< CSeq_table table,
const string field1,
const string field2,
edit::EExistingText  existing_text 
)

◆ CountColumnValueConflicts()

int CountColumnValueConflicts ( CRef< CSeqTable_column column1,
CRef< CSeqTable_column column2 
)

◆ FillShortColumns()

void FillShortColumns ( CRef< objects::CSeq_table >  values_table)

◆ FindSeqTableColumnByName()

CRef<CSeqTable_column> FindSeqTableColumnByName ( CRef< objects::CSeq_table >  values_table,
string  column_name 
)

Definition at line 282 of file seqtable_util.cpp.

References ctll::empty(), ITERATE, and MatchColumnName().

Referenced by CSourceRequirements::AddColumnsToSeqTable(), AddFeatureSeqTableRowToSeqEntry(), AddIdsFromSeqEntryToTable(), AddIntColumnToTable(), AddStringColumnToTable(), ApplyChimeraValuesTableToSeqEntry(), ApplyCommentValuesTableToSeqEntry(), ApplyDBLinkValuesTableToSeqEntry(), ApplyMolInfoValuesTableToSeqEntry(), ApplyReplacementIds(), ApplySrcTableToSeqEntry(), SrcEditDialog::ApplySrcTableToSeqEntry(), ApplyToTable(), CCommentDescriptorTableCommandConverter::CheckForMixedValues(), CChimeraCommentDescriptorTableCommandConverter::CheckForMixedValues(), CTableCommandConverter::CheckForMixedValues(), CGenomeTableCommandConverter::CheckForMixedValues(), CPrimerTableCommandConverter::CheckForMixedValues(), CSourceRequirements::CheckSourceQuals(), SrcEditDialog::CombineTables(), CombineTables(), ConvertTableColumns(), CopyTableColumns(), SrcEditDialog::CountTableColumnConflicts(), CountTableColumnConflicts(), CSeqIdFixDlg::CreateControls(), CSubmissionPrepMainPanel::CreateVirusMoleculeOptions(), CPrimerTableCommandConverter::GetCommandFromValuesTable(), CStructuredCommentCommandConverter::GetCommandFromValuesTable(), GetReplacementSeqIds(), CSeqTableGrid::GetRowLabelValue(), GetSeqIdProblems(), GetSrcRequirements(), CPrimerTableCommandConverter::GetValuesTableFromSeqEntry(), CFeatureTableCommandConverter::GetValuesTableFromSeqEntry(), CSourceRequirements::PreferentiallyAddRequirement(), RemoveFromTable(), RemoveTableRowsThatDoNotMatchStringConstraint(), CSubPrep_panel::SetWizardType(), SwapTableColumns(), CSubPrepFieldEditor::UpdateValues(), CSourceRequirements::x_AddOneOfProblems(), CSourceRequirements::x_AddUniquenessProblems(), CSubPrep_panel::x_CheckSourceQuals(), CSubPrep_panel::x_GetSequenceLengths(), CSubPrep_panel::x_NeedUniqueMicrosatelliteNames(), CSeqIdFixDlg::x_RefreshProblems(), and CSubPrepFieldEditor::x_SetOneValue().

◆ IsOrgColumnName()

bool IsOrgColumnName ( string  name)

◆ IsOrgModNoteName()

bool IsOrgModNoteName ( const string name)

Definition at line 487 of file seqtable_util.cpp.

References NStr::EqualNocase().

Referenced by CFieldChoicePanel::AutoMatchSrc().

◆ IsSubSourceNoteName()

bool IsSubSourceNoteName ( const string name)

Definition at line 474 of file seqtable_util.cpp.

References NStr::EqualNocase().

Referenced by CFieldChoicePanel::AutoMatchSrc().

◆ MatchColumnName()

bool MatchColumnName ( string  name1,
string  name2 
)

◆ QualifierNamesAreEquivalent()

bool QualifierNamesAreEquivalent ( string  name1,
string  name2 
)

◆ RemoveFromTable()

void RemoveFromTable ( CRef< CSeq_table table,
const string field 
)

Definition at line 197 of file seqtable_util.cpp.

References AddValueToColumn(), column, FindSeqTableColumnByName(), row, and table.

◆ RemoveRowsFromColumn()

void RemoveRowsFromColumn ( CRef< CSeqTable_column col,
const vector< size_t > &  rows 
)

◆ RemoveRowsFromTable()

void RemoveRowsFromTable ( CRef< CSeq_table table,
const vector< size_t > &  rows 
)

◆ RemoveSeqTableColumnByName()

bool RemoveSeqTableColumnByName ( CRef< objects::CSeq_table >  table,
string  column_name 
)

Definition at line 295 of file seqtable_util.cpp.

References MatchColumnName(), and table.

◆ RemoveTableRowsThatDoNotMatchStringConstraint()

void RemoveTableRowsThatDoNotMatchStringConstraint ( CRef< CSeq_table table,
const string field,
CRef< edit::CStringConstraint >  string_constraint 
)

◆ SetColumnValue()

void SetColumnValue ( CRef< CSeqTable_column col,
string  val 
)

◆ SwapTableColumns()

void SwapTableColumns ( CRef< CSeq_table table,
const string field1,
const string field2 
)

◆ USING_SCOPE()

USING_SCOPE ( ncbi::objects  )
Modified on Sat May 25 14:16:39 2024 by modify_doxy.py rev. 669887