-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqbcf.cpp
39 lines (33 loc) · 1.24 KB
/
qbcf.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "qbcf.h"
#include "qgenlib/commands.h"
#include "qgenlib/qgen_utils.h"
int32_t qbcf_test_qgenlib(int32_t argc, char** argv);
int32_t qbcf_callY(int32_t argc, char** argv);
int32_t main(int32_t argc, char** argv) {
commandList cl;
BEGIN_LONG_COMMANDS(longCommandlines)
LONG_COMMAND_GROUP("QGEN-based BCF tools", NULL)
LONG_COMMAND("cally", &qbcf_callY, "Call chrY variants from AD-present BCFs")
LONG_COMMAND_GROUP("Miscellaneous tools", NULL)
LONG_COMMAND("test-qgenlib", &qbcf_test_qgenlib, "Test basic functionalities in qgenlib")
END_LONG_COMMANDS();
cl.Add(new longCommands("Available Commands", longCommandlines));
if ( argc < 2 ) {
printf("[qbcf] -- spatial transcriptomics utilities\n\n");
fprintf(stderr, " Copyright (c) 2022 by Hyun Min Kang\n");
fprintf(stderr, " Licensed under the Apache License v2.0 http://www.apache.org/licenses/\n\n");
fprintf(stderr, "To run a specific command : %s [command] [options]\n",argv[0]);
fprintf(stderr, "For detailed instructions, run : %s --help\n",argv[0]);
cl.Status();
return 1;
}
else {
if ( strcmp(argv[1],"--help") == 0 ) {
cl.HelpMessage();
}
else {
return cl.Read(argc, argv);
}
}
return 0;
}