Go to the SVN repository for this file.
40 using namespace::
ncbi;
51R
"annot(>Feature lcl|scaffold1 57 >Feature gnl|xyz|SeqID2 63 >Feature gnl|xyz|SeqID4 71 >Feature gb|GL758202.1 73 >Feature gb|GL758202.2 75 >Feature gnl|xyz|GL758203 85{
"lcl|SeqID1",
"lcl|SeqID1"},
86{
"gnl|xyz|SeqID2",
"gnl|xyz|SeqID2;lcl|SeqID2"},
87{
"gb|SeqID2",
"gb|SeqID2|"},
88{
"gb|GL758201.2",
"gb|GL758201.2|"},
89{
"gb|GL758201.1",
"gb|GL758201.1|"},
90{
"gb|GL758201.3",
"gb|GL758201.1|;gb|GL758201.2|;gb|GL758201|"},
92{
"gb|GL758204",
"gb|GL758204.1|"},
93{
"gb|GL758205.1",
"gb|GL758205|"},
106reader.
Init(
"xyz", 0);
108BOOST_TEST(reader.
size() == 15);
117 for(
auto&
id: ids) {
121 for(
auto& found_id: found) {
122 auto f= found_id->AsFastaString();
126std::cout <<
test.fasta_search <<
":"<<
f<<
"\n";
128BOOST_TEST(fasta ==
test.fasta_expected);
void Open(const std::string &filename)
size_t index_size() const
std::list< CRef< objects::CSeq_id > > FindAnnots(CRef< objects::CSeq_id > seqid) const
void Init(const std::string &genome_center_id, long reader_flags, TLogger *logger=nullptr)
size_t unused_annots() const
std::string_view fasta_search
std::string_view fasta_expected
#define test(a, b, c, d, e)
static int RunTests(void)
Code to iterate through all tests to run.
const string AsFastaString(void) const
static SIZE_TYPE ParseIDs(CBioseq::TId &ids, const CTempString &s, TParseFlags flags=fParse_Default)
Parse a string representing one or more Seq-ids, appending the results to IDS.
@ fParse_RawText
Try to ID raw non-numeric accessions.
@ fParse_PartialOK
Warn rather than throwing an exception when a FASTA-style ID set contains unparsable portions,...
@ fParse_ValidLocal
Treat otherwise unidentified strings as raw accessions, provided that they pass rudimentary validatio...
list< CRef< CSeq_id > > TId
Magic spell ;-) needed for some weird compilers... very empiric.
Utility stuff for more convenient using of Boost.Test library.
BOOST_AUTO_TEST_CASE(RunTests)
static constexpr CTestData test_cases[]
static constexpr std::string_view s_five_column_data
bool IdRefLess(const CRef< CSeq_id > &id1, const CRef< CSeq_id > &id2)
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