NCBI C++ ToolKit
Functions
seqtable_util.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objtools/edit/parse_text_options.hpp>
#include <gui/packages/pkg_sequence_edit/seqtable_util.hpp>
+ Include dependency graph for seqtable_util.cpp:

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)
 
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< objects::CSeqTable_column > FindSeqTableColumnByName (CRef< objects::CSeq_table > values_table, string column_name)
 
bool RemoveSeqTableColumnByName (CRef< objects::CSeq_table > table, string column_name)
 
CRef< objects::CSeqTable_column > AddStringColumnToTable (CRef< objects::CSeq_table > table, string label)
 
CRef< objects::CSeqTable_column > AddIntColumnToTable (CRef< objects::CSeq_table > table, string label)
 
void AddValueToColumn (CRef< objects::CSeqTable_column > column, string value, size_t row, edit::EExistingText existing_text)
 
void AddValueToTable (CRef< objects::CSeq_table > table, string subtype_name, string value, size_t row, edit::EExistingText existing_text)
 
void AddValueToTable (CRef< objects::CSeq_table > table, string subtype_name, int value, size_t row)
 
void SetColumnValue (CRef< objects::CSeqTable_column > col, string val)
 
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 > orig_col, CRef< CSeqTable_column > new_col)
 
void FillShortColumns (CRef< objects::CSeq_table > values_table)
 

Function Documentation

◆ AddIntColumnToTable()

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

Definition at line 325 of file seqtable_util.cpp.

References FindSeqTableColumnByName(), label, and table.

◆ AddStringColumnToTable()

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

Definition at line 312 of file seqtable_util.cpp.

References FindSeqTableColumnByName(), label, and table.

◆ AddValueToColumn()

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

◆ AddValueToTable() [1/2]

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

Definition at line 375 of file seqtable_util.cpp.

References NStr::EqualNocase(), NON_CONST_ITERATE, table, and value.

◆ AddValueToTable() [2/2]

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

Definition at line 351 of file seqtable_util.cpp.

References AddValueToColumn(), NStr::EqualNocase(), NON_CONST_ITERATE, table, and value.

◆ ApplyToTable()

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

Definition at line 183 of file seqtable_util.cpp.

References AddValueToColumn(), column, FindSeqTableColumnByName(), 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 orig_col,
CRef< CSeqTable_column new_col 
)

◆ FillShortColumns()

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

◆ FindSeqTableColumnByName()

CRef<objects::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(), 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< objects::CSeqTable_column >  col,
string  val 
)

Definition at line 402 of file seqtable_util.cpp.

References val.

◆ SwapTableColumns()

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

◆ USING_SCOPE()

USING_SCOPE ( ncbi::objects  )
Modified on Fri Jan 05 07:22:45 2024 by modify_doxy.py rev. 669887