|
28 | 28 | import plotFun
|
29 | 29 | import findFmaxDist
|
30 | 30 | import fitFun
|
31 |
| -plt.rc('text', usetex=True) |
| 31 | +#plt.rc('text', usetex=True) |
32 | 32 | ### MAIN ###
|
33 | 33 |
|
34 | 34 | ################ Parse input parameters ################
|
|
48 | 48 | 'sequence of variant index name')
|
49 | 49 | parser.add_argument('-out', '--out_file',
|
50 | 50 | help='output filename. default is variant number + ".pdf"')
|
51 |
| -parser.add_argument('--annotation', action="store_true", |
| 51 | +parser.add_argument('--annotate', action="store_true", |
52 | 52 | help='flag if you want the plot annotated')
|
53 | 53 |
|
54 | 54 | group = parser.add_mutually_exclusive_group(required=True)
|
|
123 | 123 | fitParameters, ax=ax)
|
124 | 124 | # annotate info
|
125 | 125 | 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, |
127 | 127 | variant_table.loc[variant].dG_lb,
|
128 | 128 | 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, |
130 | 130 | variant_table.loc[variant].fmax_lb,
|
131 | 131 | 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, |
136 | 136 | ]
|
137 | 137 |
|
138 | 138 | ax.annotate('\n'.join(annotationText), xy=(.05, .95), xycoords='axes fraction',
|
|
0 commit comments