30 #ifndef OBJECTS_SEQ___SEQLOCINFO__HPP
31 #define OBJECTS_SEQ___SEQLOCINFO__HPP
61 : m_Interval(interval)
69 const objects::CSeq_interval&
GetInterval()
const {
return *m_Interval; }
71 const objects::CSeq_id&
GetSeqId()
const {
return m_Interval->GetId(); }
74 { m_Interval.Reset(interval); }
81 void SetFrame(
int frame);
84 return TSeqRange(m_Interval->GetFrom(), m_Interval->GetTo()-1);
87 operator pair<TSeqPos, TSeqPos>()
const {
88 return make_pair<TSeqPos, TSeqPos>(m_Interval->GetFrom(),
94 <<
"ETranslationFrame = " << rhs.
m_Frame <<
"\n}";
101 return ! (*
this == rhs);
124 RestrictToSeqInt(
const objects::CSeq_interval&
location)
const;
131 bool HasNegativeStrandMasks()
const;
structure for seqloc info
const objects::CSeq_id & GetSeqId() const
bool operator!=(const CSeqLocInfo &rhs) const
friend ostream & operator<<(ostream &out, const CSeqLocInfo &rhs)
ETranslationFrame m_Frame
CRef< objects::CSeq_interval > m_Interval
CSeqLocInfo(objects::CSeq_interval *interval, int frame)
void SetInterval(objects::CSeq_interval *interval)
CSeqLocInfo(objects::CSeq_id &id, TSeqRange &range, int frame)
const objects::CSeq_interval & GetInterval() const
Collection of masked regions for a single query sequence.
bool operator==(const CEquivRange &A, const CEquivRange &B)
std::ofstream out("events_result.xml")
main entry point for tests
static const char location[]
#define MSerial_AsnText
I/O stream manipulators –.
ENa_strand GetStrand(const CSeq_loc &loc, CScope *scope=0)
Returns eNa_strand_unknown if multiple Bioseqs in loc Returns eNa_strand_other if multiple strands in...
CRange< TSeqPos > TSeqRange
typedefs for sequence ranges
#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.
ENa_strand
strand of nucleic acid
range(_Ty, _Ty) -> range< _Ty >
TMaskedQueryRegions TMaskedSubjRegions
TMaskedSubjRegions defined as synonym to TMaskedQueryRegions.
vector< TMaskedQueryRegions > TSeqLocInfoVector
Collection of masked regions for all queries in a BLAST search.
list< CRef< CSeqLocInfo > > TSeqLocInfoCRefList