MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / findDatabase

Method findDatabase

src/openms/source/SYSTEM/File.cpp:616–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 }
615
616 String File::findDatabase(const String& db_name)
617 {
618 Param sys_p = getSystemParameters();
619 String full_db_name;
620 try
621 {
622 full_db_name = find(db_name, ListUtils::toStringList<std::string>(sys_p.getValue("id_db_dir")));
623 OPENMS_LOG_INFO << "Augmenting database name '" << db_name << "' with path given in 'OpenMS.ini:id_db_dir'. Full name is now: '" << full_db_name << "'" << std::endl;
624 }
625 catch (Exception::FileNotFound& e)
626 {
627 OPENMS_LOG_ERROR << "Input database '" + db_name + "' not found (" << e.what() << "). Make sure it exists (and check 'OpenMS.ini:id_db_dir' if you used relative paths. Aborting!" << std::endl;
628 throw;
629 }
630
631 return full_db_name;
632 }
633
634 String File::getOpenMSHomePath()
635 {

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected