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/phy__node_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/phy_tree/phy_node.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

62

os <<

':'

<< node.

GetValue

().GetDist();

76  const string

& tree_name)

78

os <<

"#nexus\n\nbegin trees;\ntree "

<< tree_name <<

" = " 79

<<

tree

<<

"\nend;"

<< endl;

88  if

(

label

.find_first_of(

"()[]':;,_"

) == string::npos) {

90  string

unquoted =

label

;

91  for

(

size_t i

= 0;

i

<

label

.size(); ++

i

) {

92  if

(unquoted[

i

] ==

' '

) {

98  if

(

label

.find_first_of(

"'"

) == string::npos) {

99  return '\''

+

label

+

'\''

;

102

rv.reserve(

label

.size() + 2);

104  for

(

unsigned int i

= 0;

i

<

label

.size(); ++

i

) {

105

rv.append(1,

label

[

i

]);

106  if

(

label

[

i

] ==

'\''

) {

108

rv.append(1,

label

[

i

]);

definition of a Culling tree

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

TNodeList_CI SubNodeBegin(void) const

Return first const iterator on subnode list.

TNodeList::const_iterator TNodeList_CI

bool IsLeaf() const

Report whether this is a leaf node.

TNodeList_CI SubNodeEnd(void) const

Return last const iterator on subnode list.

const TValue & GetValue(void) const

Return node's value.

static const char label[]

void PrintNode(CNcbiOstream &os, const TPhyTreeNode &node)

Newick but without the terminal ';'.

CNcbiOstream & operator<<(CNcbiOstream &os, const TPhyTreeNode &tree)

Newick format output.

static string s_EncodeLabel(const string &label)

void WriteNexusTree(CNcbiOstream &os, const TPhyTreeNode &tree, const string &tree_name)

Nexus format output (Newick with some stuff around it).


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