Skip to content
Snippets Groups Projects
Commit 49e2f6b4 authored by Joana Pereira's avatar Joana Pereira
Browse files

fixed issue with plotting when the parameter was not possible to compute

parent 47210967
Branches
No related tags found
No related merge requests found
...@@ -52,9 +52,11 @@ if __name__ == '__main__': ...@@ -52,9 +52,11 @@ if __name__ == '__main__':
if len(pdbIDs) > 1: if len(pdbIDs) > 1:
for param in data.columns: for param in data.columns:
if 'mad' not in param and param != 'PDBs' and param != 'TMsegm': if 'mad' not in param and param != 'PDBs' and param != 'TMsegm':
barros.plot_parameter('TMsegm', param, data.loc[data.N_chains == 1], fit_line = True, saveto = '{}_{}_monomers.pdf'.format(outf.split('.')[-2], param)) try:
barros.plot_parameter('TMsegm', param, data.loc[data.N_chains > 1], fit_line = True, saveto = '{}_{}_multimers.pdf'.format(outf.split('.')[-2], param)) barros.plot_parameter('TMsegm', param, data.loc[data.N_chains == 1], fit_line = True, saveto = '{}_{}_monomers.pdf'.format(outf.split('.')[-2], param))
barros.plot_parameter('TMsegm', param, data.loc[data.N_chains > 1], fit_line = True, saveto = '{}_{}_multimers.pdf'.format(outf.split('.')[-2], param))
except:
print('ERROR: Not enough values to plot for', param)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment