((*iter)->GetHeader().CanGetField_name() &&
63(*iter)->GetHeader().GetField_name() ==
"Seq-table location"&&
64(*iter)->CanGetDefault() && (*iter)->GetDefault().IsLoc()) {
65 const CSeq_loc& loc = (*iter)->GetDefault().GetLoc();
75: m_Params(params), m_FileNames(
filenames)
86 return "Loading WIG Files";
107 constwxString& fn = *it;
125TAnnotRef& annot = *a_iter;
131 if(annot->CanGetDesc()) {
133CSeq_annot::TDesc::Tdata::iterator d_iter = descs.begin();
134 while(d_iter != descs.end()) {
135 if((*d_iter)->IsUser() && (*d_iter)->GetUser().GetType().IsStr() &&
136(*d_iter)->GetUser().GetType().GetStr() ==
"Track Data") {
137user_obj.
Reset(&(*d_iter)->SetUser());
146user_obj->
SetType().SetStr(
"Track Data");
147annot->AddUserObject(*user_obj);
149user_obj->
AddField(
"track type",
string(
"graph"));
151 if(annot->CanGetDesc()) {
155CSeq_annot::TDesc::Tdata::const_iterator desc_iter =
data.begin();
156 for( ; desc_iter !=
data.end(); ++desc_iter) {
157 if((*desc_iter)->IsTitle() ) {
158track_name = (*desc_iter)->GetTitle();
161 if((*desc_iter)->IsName() ) {
162track_name = (*desc_iter)->GetName();
169wxFileName wx_fn(fn);
170 stringfileName(wx_fn.GetFullName().ToAscii());
171 label= fileName +
" - ";
172 if(track_name.empty()) {
174ostr <<
"(WIG Seq-annot "<< index <<
")";
176annot->SetNameDesc(fileName);
180annot->SetNameDesc(track_name);
184 if(annot->IsSeq_table()) {
188 label+=
id->GetSeqIdString();
201 catch(
constexception& e) {
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
string GetAssemblyAcc() const
bool GetUseMapping() const
void x_CreateMapper(const string &assembly)
void x_UpdateMap(objects::CSeq_annot &annot)
bool x_ShowMappingDlg(IObjectLoader::TObjects &objects)
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
virtual void ReadSeqAnnots(TAnnots &annots, CNcbiIstream &istr, ILineErrorListener *pErrors=nullptr)
Read all objects from given insput stream, returning them as a vector of Seq-annots.
void SetCanceler(ICanceled *=nullptr)
void x_ShowErrorsDlg(const wxString &title)
void x_UpdateHTMLResults(const wxString &object, objects::ILineErrorListener *errCont, const string &exception="", const string &error_msg="", const wxString &objectName=wxT("File:"))
bool IsSeq_table(void) const
Simple implementation of ILineReader for i(o)streams.
CUser_object & AddField(const string &label, const string &value, EParseField parse=eParse_String)
add a data field to the user object that holds a given value
CMapAssemblyParams GetMapAssembly() const
Interface for testing cancellation request in a long lasting operation.
vector< SObject > TObjects
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
const string & GetMsg(void) const
Get message string.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
virtual bool PreExecute()
vector< wxString > m_FileNames
virtual TObjects & GetObjects()
virtual string GetDescription() const
virtual bool Execute(ICanceled &canceled)
virtual bool PostExecute()
CWigObjectLoader(const CWigLoadParams ¶ms, const vector< wxString > &filenames)
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
virtual bool IsCanceled(void) const =0
static const char label[]
void SetType(TType &value)
Assign a value to Type data member.
vector< CRef< CSeqTable_column > > TColumns
const Tdata & Get(void) const
Get the member data.
const TSeq_table & GetSeq_table(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
bool CanGet(void) const
Check if it is safe to call Get method.
list< CRef< CAnnotdesc > > Tdata
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
Lightweight interface for getting lines of data with minimal memory copying.
static const CSeq_id * s_GetAnnotId(const CSeq_annot &annot)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4