File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ def get_options():
15
15
parser .add_argument ('patterns' ,
16
16
help = 'File of patterns from pyseer' )
17
17
18
+ parser .add_argument ('--threshold' ,
19
+ default = False ,
20
+ action = 'store_true' ,
21
+ help = 'Only print p-value threshold' )
18
22
parser .add_argument ('--alpha' ,
19
23
default = 0.05 ,
20
24
type = float ,
@@ -48,5 +52,9 @@ def get_options():
48
52
" | wc -l" )
49
53
50
54
p = subprocess .check_output (command , shell = True , universal_newlines = True )
51
- print ("Patterns:\t " + p .rstrip ())
52
- print ("Threshold:\t " + '%.2E' % Decimal (options .alpha / float (p .rstrip ())))
55
+ if not options .threshold :
56
+ print ("Patterns:\t " + p .rstrip ())
57
+ print ("Threshold:\t " + '%.2E' % Decimal (options .alpha / float (p .rstrip ())))
58
+ else :
59
+ print ('%.2E' % Decimal (options .alpha / float (p .rstrip ())))
60
+
You can’t perform that action at this time.
0 commit comments