diff --git a/barrOs_library.py b/barrOs_library.py index 4b04741ef40c78ef5c9882b1ca1e2a69888546b7..19e6ef06ce4cb3bf851df64be9179289a8696e0e 100644 --- a/barrOs_library.py +++ b/barrOs_library.py @@ -1141,7 +1141,10 @@ def get_barrel_topology(pdb_file, ID, chainID, simplify = False, mode = 'combine regionsBB = process_regions_in_cycle(regions_in_cycle, regular_regions) membtopo = write_topo_from_regular_regions(regionsBB, strlength = len(CA_coordinates)) regular_regions = extract_regular_regions(membtopo, pdb_file, marker = 'M', add_to_pdb = True, chainID = chainID) - draw_graph(graph, labels = list(range(1,len(regular_regions)+1)), fig_label='{}'.format(pdb_file[:-4])) + try: + draw_graph(graph, labels = list(range(1,len(regular_regions)+1)), fig_label='{}'.format(pdb_file[:-4])) + except: + print('Not possible to draw. Maybe due to a networkx issue. Will skip it') else: membtopo = ''