-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvt3d
executable file
·56 lines (52 loc) · 1.94 KB
/
vt3d
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python3
import sys
import getopt
############################################################################
# Main gateway:
#############################################################################
# usage
def main_usage():
print("""
Usage : vt3d <action> [options ]
-h/--help show this short usage
Action:
-------------------------------------------------------------------------------
version 1.0:
MEP Maximun Expression Projection. (suit 3D structure to 2D)
AnySlice Extract 2D slice from any angle.
AtlasBrowser Browser your data interactively.
Auxiliary More auxiliary tools
-------------------------------------------------------------------------------
Detail usage of each action:
vt3d <action> -h
""")
# logic codes
if __name__ == "__main__":
if len(sys.argv) == 2 and sys.argv[1] in ( "-h" , "--help" ):
main_usage()
exit(0)
elif len(sys.argv) < 2 or not sys.argv[1] in ( "MEP",
"AnySlice",
"Auxiliary",
"AtlasBrowser",
):
main_usage()
exit(1)
elif sys.argv[1] == "MEP" :
from vt3d_tools.mep import mep_main
mep_main(sys.argv[2:])
exit(0)
elif sys.argv[1] == "AnySlice" :
from vt3d_tools.anyslice import anyslice_main
anyslice_main(sys.argv[2:])
exit(0)
elif sys.argv[1] == "Auxiliary" :
from vt3d_tools.auxiliary import Auxiliary_main
Auxiliary_main(sys.argv[2:])
exit(0)
elif sys.argv[1] == "AtlasBrowser" :
from vt3d_tools.atlas_browser import AtlasBrowser_main
AtlasBrowser_main(sys.argv[2:])
else:
main_usage()
exit(1)