1 #ifndef OBJTOOLS_FORMAT___SAM_FORMATTER__HPP
2 #define OBJTOOLS_FORMAT___SAM_FORMATTER__HPP
58 fSAM_AlignmentScore = 1 << 0,
59 fSAM_ExpectationValue = 1 << 1,
60 fSAM_NumNucDiff = 1 << 2,
61 fSAM_PercentageIdentity = 1 << 3,
62 fSAM_BitScore = 1 << 4,
63 fSAM_PlainSeqIds = 1 << 5,
64 fSAM_SeqData = 1 << 6,
65 fSAM_ForceGISeqIds = 1 << 7,
68 fSAM_Default = fSAM_AlignmentScore |
69 fSAM_ExpectationValue |
71 fSAM_PercentageIdentity |
92 : m_Id(id), m_Version(ver), m_CmdLine(
cmd) {}
121 m_SO_Value = so_value;
140 m_GO_Value = go_value;
165 void x_PrintSOTag(
void)
const;
166 void x_PrintGOTag(
void)
const;
177 typedef list<pair<CSeq_id_Handle, string> >
TData;
static CRef< CScope > m_Scope
void Print(const CCompactSAMApplication::AlignInfo &ai)
std::ofstream out("events_result.xml")
main entry point for tests
void UnsetFlag(EFlags flag)
void SetGroupOrder(EGroupOrder go, const string &go_value=kEmptyStr)
Set GO tag value.
string m_Id
ID - program id.
string m_CmdLine
CL - command line.
SProgramInfo(const string &id=kEmptyStr, const string &ver=kEmptyStr, const string &cmd=kEmptyStr)
void SetOutputStream(CNcbiOstream &out)
list< pair< CSeq_id_Handle, string > > TData
string m_Name
PN - program name.
void SetFlags(TFlags flags)
int TFlags
bitwise OR of EFlags
SProgramInfo & SetProgram(void)
const SProgramInfo & GetProgram(void) const
void SetScope(CScope &scope)
void SetProgram(const SProgramInfo &pg)
string m_Version
VN - version.
void SetFlag(EFlags flag)
void SetSortOrder(ESortOrder so, const string &so_value=kEmptyStr)
Set SO tag value.
string m_Desc
DS - description.
SProgramInfo m_ProgramInfo
@ eSO_Skip
Do not print SO tag (default)
@ eSO_Unsorted
SO:unsorted.
@ eSO_QueryName
SO:queryname.
@ eSO_Coordinate
SO:coordinate.
@ eGO_Reference
GO:reference.
@ eGO_Query
GO:query (default)
@ eGO_Skip
Do not print GO tag.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define NCBI_FORMAT_EXPORT
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.