mTranscriptId(rhs.mTranscriptId)
87 boolscoreIsValid,
doublescore,
90 constvector<pair<string, string>>&
attributes)
98 mpScore= (scoreIsValid ?
newdouble(score) :
nullptr);
120 out<<
"CGtfImportData:\n";
121 out<<
" SeqId = \""<< seqId <<
"\"\n";
123 out<<
" Type = \""<<
mType<<
"\"\n";
124 out<<
" SeqStart = "<< seqStart <<
"\n";
125 out<<
" SeqStop = "<< seqStop <<
"\n";
126 out<<
" Score = "<< score <<
"\n";
127 out<<
" SeqStrand = "<< seqStrand <<
"\n";
128 out<<
" Frame = "<< frame <<
"\n";
138 const string&
key)
const 141 autoit = mAttributes.find(
key);
142 if(it == mAttributes.end()) {
145 returnit->second.front();
151 constvector<pair<string, string>>&
attributes)
161 boolfoundGeneId(
false), foundTranscriptId(
false);
163 auto key= keyValuePair.first;
164 auto value= keyValuePair.second;
166 if(
key==
"gene_id") {
171 if(
key==
"transcript_id") {
173foundTranscriptId =
true;
179pair<
string, vector<string> >(
key, vector<string>())).first;
181appendTo->second.push_back(
value);
185 throwerrorMissingGeneId;
187 if(
mType!=
"gene"&& !foundTranscriptId) {
188 throwerrorMissingTranscriptId;
const CIdResolver & mIdResolver
CGtfImportData(const CIdResolver &, CImportMessageHandler &)
virtual void Serialize(CNcbiOstream &) override
string AttributeValueOf(const std::string &) const
std::string mTranscriptId
CCdregion::TFrame * mpFrame
void xInitializeAttributes(const std::vector< std::pair< std::string, std::string >> &)
void Initialize(const std::string &, const std::string &, const std::string &, TSeqPos, TSeqPos, bool, double, ENa_strand, const std::string &, const std::vector< std::pair< std::string, std::string >> &)
static CCdregion::TFrame PhaseToFrame(const std::string &)
std::ofstream out("events_result.xml")
main entry point for tests
static const struct attribute attributes[]
unsigned int TSeqPos
Type for sequence locations and lengths.
string GetSeqIdString(bool with_version=false) const
Return seqid string with optional version for text seqid type.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Override Assign() to incorporate cache invalidation.
void SetNull(void)
Override all setters to incorporate cache invalidation.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
ENa_strand
strand of nucleic acid
const TId & GetId(void) const
Get the Id member data.
TFrom GetFrom(void) const
Get the From member data.
TStrand GetStrand(void) const
Get the Strand member data.
TTo GetTo(void) const
Get the To member data.
bool IsInt(void) const
Check if variant Int is selected.
const TInt & GetInt(void) const
Get the variant data.
const struct ncbi::grid::netcache::search::fields::KEY key
const GenericPointer< typename T::ValueType > T2 value
const CharType(& source)[N]
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
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