MCPcopy Create free account
hub / github.com/BirolLab/abyss / load

Method load

Assembly/DBG.h:383–401  ·  view source on GitHub ↗

Load this collection from disk. */

Source from the content-addressed store, hash-verified

381
382/** Load this collection from disk. */
383void load(const char* path)
384{
385#if HAVE_GOOGLE_SPARSE_HASH_MAP
386 FILE* f = fopen(path, "r");
387 if (f == NULL) {
388 perror(path);
389 exit(EXIT_FAILURE);
390 }
391 m_data.read_metadata(f);
392 m_data.read_nopointer_data(f);
393 fclose(f);
394 m_adjacencyLoaded = true;
395#else
396 (void)path;
397 // Not supported.
398 assert(false);
399 exit(EXIT_FAILURE);
400#endif
401}
402
403/** Indicate that this is a colour-space collection. */
404void setColourSpace(bool flag)

Callers 2

printFileFunction · 0.45
loadSequencesFunction · 0.45

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected