Skip to content

Commit 8d60a8d

Browse files
committed
removed latex formatting because it seemed buggy.
1 parent 1858321 commit 8d60a8d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bin/plotVariantBindingCurve.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import plotFun
2929
import findFmaxDist
3030
import fitFun
31-
plt.rc('text', usetex=True)
31+
#plt.rc('text', usetex=True)
3232
### MAIN ###
3333

3434
################ Parse input parameters ################
@@ -48,7 +48,7 @@
4848
'sequence of variant index name')
4949
parser.add_argument('-out', '--out_file',
5050
help='output filename. default is variant number + ".pdf"')
51-
parser.add_argument('--annotation', action="store_true",
51+
parser.add_argument('--annotate', action="store_true",
5252
help='flag if you want the plot annotated')
5353

5454
group = parser.add_mutually_exclusive_group(required=True)
@@ -123,16 +123,16 @@
123123
fitParameters, ax=ax)
124124
# annotate info
125125
if args.annotate:
126-
annotationText = ['$\Delta G$=\t%4.2f (%4.2f, %4.2f)'%(variant_table.loc[variant].dG,
126+
annotationText = ['dG=\t%4.2f (%4.2f, %4.2f)'%(variant_table.loc[variant].dG,
127127
variant_table.loc[variant].dG_lb,
128128
variant_table.loc[variant].dG_ub),
129-
'$f_{max}$=\t%4.2f (%4.2f, %4.2f)'%(variant_table.loc[variant].fmax,
129+
'fmax=\t%4.2f (%4.2f, %4.2f)'%(variant_table.loc[variant].fmax,
130130
variant_table.loc[variant].fmax_lb,
131131
variant_table.loc[variant].fmax_ub),
132-
'$N_{clusters}$=\t%d'%variant_table.loc[variant].numTests,
133-
'$p_{value}$=\t%.1e'%variant_table.loc[variant].pvalue,
134-
'$f_{max}$ enforced=%d'%variant_table.loc[variant].flag,
135-
'average $R^2$=%4.2f'%variant_table.loc[variant].rsq,
132+
'Nclusters=\t%d'%variant_table.loc[variant].numTests,
133+
'pvalue=\t%.1e'%variant_table.loc[variant].pvalue,
134+
'fmax enforced=%d'%variant_table.loc[variant].flag,
135+
'average Rsq=%4.2f'%variant_table.loc[variant].rsq,
136136
]
137137

138138
ax.annotate('\n'.join(annotationText), xy=(.05, .95), xycoords='axes fraction',

0 commit comments

Comments
 (0)