A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/convert__desc__to__feat_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/convert_desc_to_feat.cpp Source File

33 #include <wx/textdlg.h> 46  bool

modified =

false

;

54

new_feat->

SetData

().SetComment();

62

pair<CSeq_entry_Handle, const CSeqdesc*> p = pair<CSeq_entry_Handle, const CSeqdesc*>(desc_it.GetSeq_entry_Handle(), &*desc_it);

63  if

(visited.

find

(p) == visited.

end

())

82  bool

modified =

false

;

90

new_src->

Assign

(desc_it->GetSource());

92

new_feat->

SetData

().SetBiosrc(*new_src);

99

pair<CSeq_entry_Handle, const CSeqdesc*> p = pair<CSeq_entry_Handle, const CSeqdesc*>(desc_it.GetSeq_entry_Handle(), &*desc_it);

100  if

(visited.

find

(p) == visited.

end

())

119  bool

modified =

false

;

127

new_pub->Assign(desc_it->GetPub());

129

new_feat->

SetData

().SetPub(*new_pub);

131

seq_id->Assign(*(bsh.

GetSeqId

()));

136

pair<CSeq_entry_Handle, const CSeqdesc*> p = pair<CSeq_entry_Handle, const CSeqdesc*>(desc_it.GetSeq_entry_Handle(), &*desc_it);

137  if

(visited.

find

(p) == visited.

end

())

156

wxTextEntryDialog dlg(

NULL

,

_

(

"Optional String Constraint"

),

_

(

"Convert Pub Descriptors"

), wxEmptyString);

157  if

(dlg.ShowModal() == wxID_OK)

159

constraint = dlg.GetValue().ToStdString();

161  if

(constraint.empty())

165  bool

modified =

false

;

178

new_pub->Assign(desc_it->GetPub());

180

new_feat->

SetData

().SetPub(*new_pub);

182

seq_id->Assign(*(bsh.

GetSeqId

()));

187

pair<CSeq_entry_Handle, const CSeqdesc*> p = pair<CSeq_entry_Handle, const CSeqdesc*>(desc_it.GetSeq_entry_Handle(), &*desc_it);

188  if

(visited.

find

(p) == visited.

end

())

208  bool

modified =

false

;

211  const CSeq_loc

& loc = fi->GetLocation();

214

fi->GetOriginalFeature().IsSetComment())

217

new_desc->

SetComment

(fi->GetOriginalFeature().GetComment());

235  bool

modified =

false

;

238  const CSeq_loc

& loc = fi->GetLocation();

243

new_src->

Assign

(fi->GetOriginalFeature().GetData().GetBiosrc());

244  if

(fi->GetOriginalFeature().IsSetComment())

268  bool

modified =

false

;

271  const CSeq_loc

& loc = fi->GetLocation();

276

new_pub->Assign(fi->GetOriginalFeature().GetData().GetPub());

278

new_desc->

SetPub

(*new_pub);

@ eExtreme_Positional

numerical value

static CRef< CCmdComposite > apply(CSeq_entry_Handle tse)

static CRef< CCmdComposite > apply(CSeq_entry_Handle tse)

static CRef< CCmdComposite > apply(CSeq_entry_Handle tse)

static CRef< CCmdComposite > apply(CSeq_entry_Handle tse)

static CRef< CCmdComposite > apply(CSeq_entry_Handle tse)

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

@Pubdesc.hpp User-defined methods of the data storage class.

namespace ncbi::objects::

TSeqPos GetStart(ESeqLocExtremes ext) const

TSeqPos GetStop(ESeqLocExtremes ext) const

iterator_bool insert(const value_type &val)

const_iterator find(const key_type &key) const

const_iterator end() const

static const char * str(char *buf, int n)

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

#define MSerial_AsnText

I/O stream manipulators –.

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

CSeq_entry_Handle GetParentEntry(void) const

Get parent Seq-entry handle.

TSeqPos GetBioseqLength(void) const

CSeq_entry_Handle GetSeq_entry_Handle(void) const

Get parent Seq-entry handle.

CConstRef< CSeq_id > GetSeqId(void) const

Get id which can be used to access this bioseq handle Throws an exception if none is available.

CScope & GetScope(void) const

Get scope this handle belongs to.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static SIZE_TYPE FindNoCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)

Find the pattern in the specified range of a string using a case insensitive search.

TSubtype & SetSubtype(void)

Assign a value to Subtype data member.

void SetLocation(TLocation &value)

Assign a value to Location data member.

void SetComment(const TComment &value)

Assign a value to Comment data member.

void SetData(TData &value)

Assign a value to Data data member.

@ e_Pub

publication applies to this seq

@ e_Comment

just a comment

bool IsInt(void) const

Check if variant Int is selected.

const TInt & GetInt(void) const

Get the variant data.

TPub & SetPub(void)

Select the variant.

TComment & SetComment(void)

Select the variant.

TSource & SetSource(void)

Select the variant.

@ e_Pub

a reference to the publication

@ e_Comment

a more extensive comment

@ e_Source

source of materials, includes Org-ref

@ eMol_na

just a nucleic acid


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