;
53 using namespacencbi::objtools::hugeasn;
63 throwstd::runtime_error(
"Too big Fibonacci sequence. Elements would overflow.");
78 for(
unsigned i= 2;
i<
n; ++
i)
90 for(
intj = 0;
gen; ++j)
91std::cout <<
"fib("<< j <<
")="<<
gen() <<
'\n';
97 for(
intj = 0;
gen; ++j) {
99std::cout <<
"Line:"<< res.first <<
":"<< res.second <<
"\n";
101std::cout <<
"Finished\n";
106 auto file= std::make_shared<objects::edit::CHugeFile>();
107 file->Open(filename,
nullptr);
108std::cout <<
"File opened: "<< filename <<
":"<<
file->m_filesize <<
":"<<
file->m_format <<
"\n";
118 for(
intj = 0;
gen; ++j) {
120std::cout <<
"Blob:"<< blob->m_data.size() <<
":"<< blob->m_defline <<
":"<< blob->m_seq_length <<
"\n";
122std::cout <<
"Finished\n";
130 for(
intj = 0;
gen; ++j) {
132std::cout <<
"Blob:"<< blob->m_data.size() <<
":"<< blob->m_defline <<
":"<< blob->m_seq_length <<
"\n";
134std::cout <<
"Finished\n";
174 size_ttotal_lines = 0;
175 for(
intj = 0; blob_gen; ++j) {
176 autoblob = blob_gen();
177total_lines += blob->m_lines.size();
178std::cout <<
"Blob: "<< (
int)blob->m_blob_type <<
":"<< blob->m_seqid <<
":"<< blob->m_lines.size() <<
"\n";
180std::cout <<
"Finished with "<< total_lines <<
"\n";
194objects::CFastaReader::TFlags
flags= 0;
197 flags|= objects::CFastaReader::fParseGaps;
201objects::CFastaReader
r{clr,
flags};
202 autoseq =
r.ReadSet();
213 for(
intj = 0;
gen; ++j) {
215std::cout <<
"Blob:"<< blob->m_data.size() <<
":"<< blob->m_defline <<
":"<< blob->m_seq_length <<
"\n";
219std::cout <<
"Finished\n";
void SetFlags(ParseFlagsSet flags)
Generator< std::shared_ptr< TFastaBlob > > ReadBlobs()
@ eFasta
FASTA format sequence record, CFastaReader.
TGenerator ReadBlobs() const
constexpr bool test(T _Pos) const
Generator< std::pair< size_t, std::string_view > > BasicReadLinesGenerator(size_t start_line, std::string_view blob)
Frond-end GFF-familty files readers, including GFF2, GFF3, GTF.
Operators to edit gaps in sequences.
#define MSerial_AsnText
I/O stream manipulators â.
unsigned int
A callback function used to compare two keys in a database.
Magic spell ;-) needed for some weird compilers... very empiric.
The NCBI C++/STL use hints.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
ParseFlagsSet Flags() const
Utility stuff for more convenient using of Boost.Test library.
void RunTestGffBasic(const std::string &filename)
void RunTestFullFasta(const std::string &filename, bool delta_seq)
Generator< std::uint64_t > fibonacci_sequence(unsigned n)
BOOST_AUTO_TEST_CASE(test_basic_line_reader)
void RunTest1(const std::string &filename)
void ParseFastaBlob(CFastaSource::TFastaBlob blob, bool parse_gaps)
void RunFastaTest1(std::string_view blob)
void RunTest2Gaps(const std::string &filename)
void RunTest2(const std::string &filename)
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