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

Function main

MergePaths/MergePaths.cpp:920–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920int
921main(int argc, char** argv)
922{
923 if (!opt::db.empty())
924 opt::metaVars.resize(3);
925
926 bool die = false;
927 for (int c; (c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1;) {
928 istringstream arg(optarg != NULL ? optarg : "");
929 switch (c) {
930 case '?':
931 die = true;
932 break;
933 case 'G': {
934 double x;
935 arg >> x;
936 opt::genomeSize = x;
937 break;
938 }
939 case 'g':
940 arg >> opt::graphPath;
941 break;
942 case 'j':
943 arg >> opt::threads;
944 break;
945 case 'k':
946 arg >> opt::k;
947 break;
948 case 'o':
949 arg >> opt::out;
950 break;
951 case 's':
952 arg >> opt::seedLen;
953 break;
954 case 'v':
955 opt::verbose++;
956 break;
957 case OPT_HELP:
958 cout << USAGE_MESSAGE;
959 exit(EXIT_SUCCESS);
960 case OPT_VERSION:
961 cout << VERSION_MESSAGE;
962 exit(EXIT_SUCCESS);
963 case OPT_DB:
964 arg >> opt::db;
965 break;
966 case OPT_LIBRARY:
967 arg >> opt::metaVars[0];
968 break;
969 case OPT_STRAIN:
970 arg >> opt::metaVars[1];
971 break;
972 case OPT_SPECIES:
973 arg >> opt::metaVars[2];
974 break;
975 }
976 if (optarg != NULL && !arg.eof()) {
977 cerr << PROGRAM ": invalid option: `-" << (char)c << optarg << "'\n";

Callers

nothing calls this directly

Calls 15

addToDbFunction · 0.85
buildPathGraphFunction · 0.85
assemblePathGraphFunction · 0.85
atomicIncFunction · 0.85
extendPathsFunction · 0.85
removeSubsumedPathsFunction · 0.85
outputSortedPathsFunction · 0.85
resizeMethod · 0.80
eraseMethod · 0.80
readContigLengthsFunction · 0.70
readPathsFunction · 0.70
removeRepeatsFunction · 0.70

Tested by

no test coverage detected