forked from siddhantGrover16/FairProportion_Index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FP.py
43 lines (19 loc) · 765 Bytes
/
FP.py
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
import argparse
from ImplFunc import base, minFP, maxFP
from FPMethods import getFP
from FPMethods import getAllFP
from FPMethods import getMaxkFP
def Main():
ap = argparse.ArgumentParser(description='Compute FP index on a given nexus tree')
ap.add_argument("-fpmin", help="Computes Min FP clades", action="store_true")
ap.add_argument("-fpmax", help="Computes Max FP clades", action="store_true")
ap.add_argument("filename",help = "nexus file treename",type=str)
ap.add_argument("kval", help="input k", type=int)
args = ap.parse_args()
init = base(args.filename,args.kval)
if args.fpmin:
minFP(init[0],init[1],init[2],init[3],)
if args.fpmax:
maxFP(init[0], init[1], init[2], init[3])
if __name__ == '__main__':
Main()