pos = transcriptId.find_last_of(
'|');
70 if(pos != string::npos) {
71 returntranscriptId.substr(pos+1);
90 unsigned intuExonNumber )
108 if( 0 != uExonNumber ) {
118 stringstrAttributes;
119strAttributes.reserve(256);
127 for( it = attrs.
begin(); it != attrs.
end(); ++it ) {
128 stringstrKey = it->first;
132 if( strKey ==
"exon_number") {
135 if(strKey ==
"db_xref") {
136 for(
const auto& xref: it->second) {
141 for(
const auto&
value: it->second) {
147it = attrs.
find(
"exon_number");
148 if( it != attrs.
end() ) {
152 returnstrAttributes;
159 stringstrAttributes;
160strAttributes.reserve(256);
170it = attrs.
find(
"exon_number");
171 if( it != attrs.
end() ) {
174 returnstrAttributes;
184 if( cdsLocs.empty() ) {
189 unsigned intuTopSize = 0;
190 for(
autoit = cdsLocs.begin(); it != cdsLocs.end(); ++it ) {
191 if( (*it)->IsSetFrom() && (*it)->GetFrom() >
mSeqStop) {
192uTopSize += (*it)->GetLength();
195 mPhase= ((3 - ((uTopSize+3 - startingPhase) % 3) ) % 3);
198 unsigned intuBottomSize = 0;
199 for(
autoit = cdsLocs.begin() ; it != cdsLocs.end(); ++it ) {
200 if( (*it)->IsSetTo() && (*it)->GetTo() <
mSeqStart) {
201uBottomSize += (*it)->GetLength();
204 mPhase= ((3 - ((uBottomSize+3 - startingPhase) % 3) ) % 3);
210 const string& strKey,
211 const string& strValue )
214 string str( strKey );
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
virtual string StrType() const
const TAttributes & Attributes() const
void SetLocation(unsigned int, unsigned int, ENa_strand=objects::eNa_strand_unknown)
bool SetAttribute(const string &, const string &)
TAttributes::iterator TAttrIt
static string x_AttributeToString(const string &, const string &)
void SetCdsPhase(const list< CRef< CSeq_interval >> &intervals, ENa_strand strand, int startingPhase=0)
string TranscriptId() const
void SetTranscriptId(const std::string &transcriptId)
string StrStructibutes() const
string StrAttributes() const
bool MakeChildRecord(const CGtfRecord &, const CSeq_interval &, unsigned int=0)
const_iterator begin() const
const_iterator end() const
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
static const char location[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string UIntToString(unsigned int value, TNumToStringFlags flags=0, int base=10)
Convert UInt to string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
ENa_strand
strand of nucleic acid
static string s_ProcessTranscriptId(const string &transcriptId)
const GenericPointer< typename T::ValueType > T2 value
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