63 fasta_ostr.
Write(iter->first);
69 reportdlg->SetTitle(
"Sorted Proteins");
71 reportdlg->Show(
true);
82 if (
prot.IsSetName() && !
prot.GetName().empty()) {
88 m_Proteins.push_back(make_pair(*b_iter, feat_label));
100 m_Proteins.sort([](
const pair<CBioseq_Handle, string>& prot1,
const pair<CBioseq_Handle, string>& prot2) {
return NStr::CompareCase(prot1.second, prot2.second) < 0; });
@ eBoth
Both preliminary and traceback stages.
FASTA-format output; see also ReadFasta in <objtools/readers/fasta.hpp>
void SetText(const wxString &text)
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
list< pair< objects::CBioseq_Handle, string > > m_Proteins
CSortedProteins(const objects::CSeq_entry_Handle &seh)
void x_SortProteinNames()
void x_GatherProteinNames()
objects::CSeq_entry_Handle m_Seh
static DLIST_TYPE *DLIST_NAME() prev(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
string GetLabel(const CSeq_id &id)
virtual void Write(const CSeq_entry_Handle &handle, const CSeq_loc *location=0)
Unspecified locations designate complete sequences; non-empty custom titles override the usual title ...
const CSeqFeatData & GetData(void) const
CConstRef< CSeq_feat > GetOriginalSeq_feat(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool EqualCase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-sensitive equality of a substring with another string.
static int CompareCase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-sensitive compare of a substring with another string.
const TProt & GetProt(void) const
Get the variant data.
wxString ToWxString(const string &s)