NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <objtools/align_format/align_format_util.hpp>
#include <objtools/align/alngraphic.hpp>
#include <util/range.hpp>
#include <serial/iterator.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqalign/Seq_align_set.hpp>
#include <objects/seqalign/Score.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <objects/seqalign/Std_seg.hpp>
#include <objects/seqalign/Dense_diag.hpp>
#include <objects/seqalign/seqalign_exception.hpp>
#include <objects/general/Object_id.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/util/create_defline.hpp>
#include <html/html.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
USING_SCOPE (sequence) | |
USING_SCOPE (align_format) | |
static string | s_GetGif (int bits) |
static string | s_GetScoreColor (int bits) |
static int | s_GetRoundNumber (int number) |
template<class container > | |
static bool | s_GetBlastScore (const container &scoreList, int &score, double &bits, double &evalue) |
static void | s_GetAlnScores (const CSeq_align &aln, int &score, double &bits, double &evalue) |
static string | s_MapSeqInfoTemplate (string seqTemplate, string score, string seq, string defline, string acc, string eval) |
static string | s_MapBarTemplate (string imageTemplate, int width, string imgType, string cssClass, string score="", string seq="", string defline="", string acc="", string eval="") |
Variables | |
const char * | kDigitGif [] |
const TSeqPos | kScoreMargin = 50 |
const TSeqPos | kScoreLength = 500 |
const TSeqPos | kScoreHeight = 40 |
const TSeqPos | kBlankBarHeight = 4 |
const TSeqPos | kMasterHeight = 10 |
const TSeqPos | kMasterPixel = kScoreLength |
const TSeqPos | kMasterBarLength = 550 |
const TSeqPos | kScaleMarginAdj = 1 |
const TSeqPos | kScaleWidth = 2 |
const TSeqPos | kScaleHeight = 10 |
const TSeqPos | kDigitWidth = 10 |
const TSeqPos | kDigitHeight = 13 |
const TSeqPos | kGapHeight = 1 |
const TSeqPos | kGreakHeight = 6 |
const TSeqPos | kNumMark = 6 |
const int | kDeflineLength = 55 |
static const int | kOverlapDiff = 5 |
const char * | kGifWhite = "white.gif" |
const char * | kGifMaster ="query_no_scale.gif" |
const char * | kGifScore = "score.gif" |
const char * | kGifGrey = "grey.gif" |
const char * | kGifScale = "scale.gif" |
const char * | kGifBlack = "black.gif" |
const char * | kWhite = "white" |
const char * | kGrey = "grey" |
const char * | kBlack = "black" |
|
static |
Definition at line 293 of file alngraphic.cpp.
References CSeq_align_Base::C_Segs::e_Dendiag, CSeq_align_Base::C_Segs::e_Denseg, CSeq_align_Base::C_Segs::e_Std, CSeq_align_Base::C_Segs::GetDendiag(), CSeq_align_Base::C_Segs::GetDenseg(), CSeq_align_Base::GetScore(), CDense_seg_Base::GetScores(), CSeq_align_Base::GetSegs(), CSeq_align_Base::C_Segs::GetStd(), s_GetBlastScore(), and CSeq_align_Base::C_Segs::Which().
Referenced by CAlnGraphic::x_GetAlnInfo().
|
static |
Definition at line 270 of file alngraphic.cpp.
References CObject_id_Base::GetId(), and ITERATE.
Referenced by s_GetAlnScores().
Definition at line 97 of file alngraphic.cpp.
References NcbiEmptyString.
Referenced by CAlnGraphic::x_BuildHtmlTable().
Definition at line 142 of file alngraphic.cpp.
References NStr::IntToString(), number, round(), and NStr::StringToInt().
Referenced by CAlnGraphic::Init(), and CAlnGraphic::x_DisplayMaster().
Definition at line 121 of file alngraphic.cpp.
References NcbiEmptyString.
Referenced by CAlnGraphic::x_FormatGraphOverview().
|
static |
Definition at line 875 of file alngraphic.cpp.
References NStr::IntToString(), CAlignFormatUtil::MapTemplate(), and s_MapSeqInfoTemplate().
Referenced by CAlnGraphic::x_FormatGraphOverview().
|
static |
Definition at line 855 of file alngraphic.cpp.
References CHTMLHelper::HTMLEncode(), and CAlignFormatUtil::MapTemplate().
Referenced by s_MapBarTemplate(), and CAlnGraphic::x_FormatGraphOverview().
USING_SCOPE | ( | align_format | ) |
USING_SCOPE | ( | sequence | ) |
const char* kBlack = "black" |
Definition at line 119 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_FormatGraphOverview().
Definition at line 66 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable().
Definition at line 83 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_GetAlnInfo().
const char* kDigitGif[] |
Definition at line 59 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster().
Definition at line 77 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster().
Definition at line 76 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster(), CAlnGraphic::x_FormatScale(), and CAlnGraphic::x_FormatScaleDigit().
Definition at line 79 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable(), and CAlnGraphic::x_FormatGraphOverview().
const char* kGifBlack = "black.gif" |
Definition at line 95 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable().
const char* kGifGrey = "grey.gif" |
Definition at line 93 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable().
const char* kGifMaster ="query_no_scale.gif" |
Definition at line 91 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_PrintTop().
const char* kGifScale = "scale.gif" |
Definition at line 94 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster().
const char* kGifScore = "score.gif" |
Definition at line 92 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_PrintTop().
const char* kGifWhite = "white.gif" |
Definition at line 90 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable(), CAlnGraphic::x_DisplayMaster(), and CAlnGraphic::x_PrintTop().
Definition at line 80 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable(), and CAlnGraphic::x_FormatGraphOverview().
const char* kGrey = "grey" |
Definition at line 118 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_FormatGraphOverview().
Definition at line 70 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_PrintTop().
Definition at line 68 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_PrintTop().
const TSeqPos kMasterPixel = kScoreLength |
Definition at line 69 of file alngraphic.cpp.
Referenced by CAlnGraphic::AlnGraphicDisplay(), CAlnGraphic::Init(), CAlnGraphic::x_BuildHtmlTable(), and CAlnGraphic::x_DisplayMaster().
Definition at line 81 of file alngraphic.cpp.
Referenced by CAlnGraphic::Init(), and CAlnGraphic::x_DisplayMaster().
Definition at line 87 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_MergeDifferentSeq().
Definition at line 74 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster().
Definition at line 72 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster().
Definition at line 73 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_DisplayMaster(), and CAlnGraphic::x_FormatScale().
Definition at line 64 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_PrintTop().
Definition at line 63 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable(), and CAlnGraphic::x_PrintTop().
Definition at line 62 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_BuildHtmlTable(), CAlnGraphic::x_DisplayMaster(), and CAlnGraphic::x_PrintTop().
const char* kWhite = "white" |
Definition at line 117 of file alngraphic.cpp.
Referenced by CAlnGraphic::x_FormatGraphOverview().