-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sep 18, 2024: Keep windowData optional
- Loading branch information
1 parent
bbf4da8
commit d8cd621
Showing
6 changed files
with
96 additions
and
40 deletions.
There are no files selected for viewing
Submodule gfalibs
updated
4 files
+6 −0 | include/functions.h | |
+1 −1 | include/kmer.h | |
+5 −5 | include/struct.h | |
+2 −2 | src/gfa.cpp |
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 |
---|---|---|
|
@@ -34,19 +34,20 @@ int main(int argc, char **argv) { | |
|
||
if (argc == 1) { // case: with no arguments | ||
|
||
printf("teloscope -f input.[fa/fa.gz] \n-h for additional help. Use -f to initiate the tool.\n"); | ||
printf("teloscope -f input.[fa/fa.gz] \nUse-h for additional help. \nUse -f to initiate the tool."); | ||
exit(0); | ||
|
||
} | ||
|
||
static struct option long_options[] = { // struct mapping long options | ||
{"input-sequence", required_argument, 0, 'f'}, | ||
{"output", required_argument, 0, 'o'}, | ||
{"patterns", required_argument, 0, 'p'}, | ||
{"window", required_argument, 0, 'w'}, | ||
{"step", required_argument, 0, 's'}, | ||
{"mode", required_argument, 0, 'm'}, | ||
{"output", required_argument, 0, 'o'}, | ||
{"threads", required_argument, 0, 'j'}, | ||
{"keep-window-data", no_argument, 0, 'k'}, | ||
|
||
{"verbose", no_argument, &verbose_flag, 1}, | ||
{"cmd", no_argument, &cmd_flag, 1}, | ||
|
@@ -213,22 +214,31 @@ int main(int argc, char **argv) { | |
|
||
case 'v': // software version | ||
printf("/// Teloscope v%s\n", version.c_str()); | ||
printf("Giulio Formenti [email protected]\n"); | ||
printf("\nDeveloped by:\nGiulio Formenti [email protected]\n"); | ||
printf("Jack A. Medico [email protected]\n"); | ||
exit(0); | ||
|
||
case 'h': // help | ||
printf("teloscope [commands]\n"); | ||
printf("\nRequired Parameters:\n"); | ||
printf("\t'-f'\t--input-sequence\tInitiate tool with fasta file.\n"); | ||
printf("\t'-p'\t--patterns\tSet patterns to explore.\n"); | ||
printf("\t'-w'\t--window\tSet sliding window size.\n"); | ||
printf("\t'-s'\t--step\tSet sliding window step.\n"); | ||
printf("\t'-o'\t--output\tSet output route.\n"); | ||
printf("\t'-p'\t--patterns\tSet patterns to explore, separate them by commas [Default: TTAGGG]\n"); | ||
printf("\t'-w'\t--window\tSet sliding window size. [Default: 1000]\n"); | ||
printf("\t'-s'\t--step\tSet sliding window step. [Default: 500]\n"); | ||
printf("\t'-j'\t--threads\tSet maximum number of threads. [Default: max. available]\n"); | ||
|
||
printf("\nOptional Parameters:\n"); | ||
printf("\t'-m'\t--mode\tSet analysis modes, separate them by commas. [Options: all,match,gc,entropy]\n"); | ||
printf("\t'-k'\t--keep-window-data\tKeep window data for analysis, memory-intensive. [Default: false]\n"); | ||
printf("\t'-v'\t--version\tPrint current software version.\n"); | ||
printf("\t'-h'\t--help\tPrint current software options.\n"); | ||
printf("\t--verbose\tverbose output.\n"); | ||
exit(0); | ||
|
||
case 'k': | ||
userInput.keepWindowData = true; | ||
break; | ||
} | ||
|
||
if (argc == 2 || // handle various cases in which the output should include summary stats | ||
|
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