NCBI C++ ToolKit
Macros | Functions | Variables
phytree_format.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbidbg.hpp>
#include <objects/taxon1/taxon1.hpp>
#include <objects/blastdb/defline_extra.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/util/create_defline.hpp>
#include <algo/phy_tree/bio_tree.hpp>
#include <algo/phy_tree/bio_tree_conv.hpp>
#include <algo/phy_tree/phytree_format/phytree_simplify.hpp>
#include <algo/phy_tree/phytree_format/phytree_format.hpp>
+ Include dependency graph for phytree_format.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define MAX_NODES_TO_COLOR   24
 

Functions

 USING_SCOPE (objects)
 
void s_RerootUpstream (CBioTreeDynamic::CBioNode *node, TBioTreeFeatureId fid)
 
static void s_InitFeatures (CPhyTreeNodeAnalyzer::TLeafNodeInfoMap nodeMap, string &title, int &leafCount, string &nodeColor)
 
static string s_GetBlastNameColor (CPhyTreeFormatter::TBlastNameColorMap &blast_name_color_map, string blast_tax_name)
 

Variables

static const string s_kQueryNodeColor = "255 0 0"
 
static const string s_kQueryNodeBgColor = "255 255 0"
 
static const string s_kSeqOfTypeNodeBgColor = "204 255 204"
 
static const string s_kSeqFromVerifiedMatNodeBgColor = "181 228 240"
 
static const string s_kSeqQueryNodeBgColor = " 255 200 87"
 
static const string s_kSeqReferenceDBNodeBgColor = "114 168 101"
 
static const string s_kSeqKmerBlastNodeBgColor = "83 149 208"
 
static const string s_kBranchColor = "0 0 0 "
 
map< int, stringlinkotTypeToBGColor
 
map< int, stringseqTypeToBGColor
 
static const string s_kUnknown = "unknown"
 
static const string s_kSubtreeDisplayed = "0"
 
static const string s_kNodeSize = "0"
 

Macro Definition Documentation

◆ MAX_NODES_TO_COLOR

#define MAX_NODES_TO_COLOR   24

Definition at line 872 of file phytree_format.cpp.

Function Documentation

◆ s_GetBlastNameColor()

static string s_GetBlastNameColor ( CPhyTreeFormatter::TBlastNameColorMap blast_name_color_map,
string  blast_tax_name 
)
static

Definition at line 873 of file phytree_format.cpp.

References color, colors, i, and MAX_NODES_TO_COLOR.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ s_InitFeatures()

static void s_InitFeatures ( CPhyTreeNodeAnalyzer::TLeafNodeInfoMap  nodeMap,
string title,
int leafCount,
string nodeColor 
)
static

◆ s_RerootUpstream()

void s_RerootUpstream ( CBioTreeDynamic::CBioNode *  node,
TBioTreeFeatureId  fid 
)

Definition at line 425 of file phytree_format.cpp.

References _ASSERT.

Referenced by CPhyTreeFormatter::RerootTree().

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ linkotTypeToBGColor

map<int,string> linkotTypeToBGColor

◆ s_kBranchColor

const string s_kBranchColor = "0 0 0 "
static

Definition at line 57 of file phytree_format.cpp.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ s_kNodeSize

const string s_kNodeSize = "0"
static

Definition at line 68 of file phytree_format.cpp.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ s_kQueryNodeBgColor

const string s_kQueryNodeBgColor = "255 255 0"
static

◆ s_kQueryNodeColor

const string s_kQueryNodeColor = "255 0 0"
static

Definition at line 49 of file phytree_format.cpp.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ s_kSeqFromVerifiedMatNodeBgColor

const string s_kSeqFromVerifiedMatNodeBgColor = "181 228 240"
static

◆ s_kSeqKmerBlastNodeBgColor

const string s_kSeqKmerBlastNodeBgColor = "83 149 208"
static

◆ s_kSeqOfTypeNodeBgColor

const string s_kSeqOfTypeNodeBgColor = "204 255 204"
static

◆ s_kSeqQueryNodeBgColor

const string s_kSeqQueryNodeBgColor = " 255 200 87"
static

Definition at line 54 of file phytree_format.cpp.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ s_kSeqReferenceDBNodeBgColor

const string s_kSeqReferenceDBNodeBgColor = "114 168 101"
static

◆ s_kSubtreeDisplayed

const string s_kSubtreeDisplayed = "0"
static

◆ s_kUnknown

const string s_kUnknown = "unknown"
static

Definition at line 64 of file phytree_format.cpp.

Referenced by CPhyTreeFormatter::x_InitTreeFeatures().

◆ seqTypeToBGColor

map<int,string> seqTypeToBGColor
Modified on Sun Jun 23 05:22:00 2024 by modify_doxy.py rev. 669887