-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: (123 commits) update changelog and readme fix single-end inpipe error kill input process when sdbg_build meets errors update megahit script: delete in pipe files when builder report errors reset default k to k-step 20, look good enough update megahit script fix local assembly when read length > 200 rename toolkits -> toolkit trim at N when reading reads add bz2 support (via mkfifo) add k-list support; try spades' list implement sequence package's reserve functions put assemble, local_assemble and iter into one program megahit_asm_core update megahit script logging fix min final standalone miscalculation add megahit toolkit assembler's min standalone length set to 3*k_max-1 formatted by astyle bug fixes && makefile update re-add --input-cmd option output to final.contigs.fa when --no-local is checked (faster) ... Conflicts: megahit
- Loading branch information
Showing
111 changed files
with
17,650 additions
and
8,699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* MEGAHIT | ||
* Copyright (C) 2014 - 2015 The University of Hong Kong | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* contact: Dinghua Li <[email protected]> */ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "utils.h" | ||
|
||
int main_assemble(int argc, char** argv); | ||
int main_local(int argc, char **argv); | ||
int main_iterate(int argc, char **argv); | ||
|
||
void show_help(const char *program_name) { | ||
fprintf(stderr, "Usage: %s <sub_program> [sub options]\n" | ||
" sub-programs:\n" | ||
" assemble assemble from SdBG\n" | ||
" local local asssembly\n" | ||
" iterate extract iterative edges\n", | ||
program_name); | ||
} | ||
|
||
AutoMaxRssRecorder recorder; | ||
|
||
int main(int argc, char **argv) { | ||
if (argc < 2) { | ||
show_help(argv[0]); | ||
exit(1); | ||
} | ||
|
||
if (strcmp(argv[1], "assemble") == 0) { | ||
return main_assemble(argc - 1, argv + 1); | ||
} else if (strcmp(argv[1], "local") == 0) { | ||
return main_local(argc - 1 , argv + 1); | ||
} else if (strcmp(argv[1], "iterate") == 0) { | ||
return main_iterate(argc - 1, argv + 1); | ||
} else { | ||
show_help(argv[0]); | ||
exit(1); | ||
} | ||
|
||
return 0; | ||
} |
Oops, something went wrong.