INNER CODE UNIT · C++

ambig_taxon

fbreitwieser/krakenuniq · src/classify.cpp:125

uint32_t ambig_taxon = -1;

inline bool ends_with(std::string const & value, std::string const & ending)
{
        if (ending.size() > value.size()) return false;
            return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
}

ostream* cout_or_file(string file, bool append = false) {
    if (file == "-")
      return &cout;

    if (ends_with(file, ".gz")) {
      ogzstream* ogzs = new ogzstream(file.c_str());
      ogzs->exceptions( ifstream::failbit | ifstream::badbit );
      Open_gzstreams.push_back(ogzs);
      return ogzs;
    } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…