Skip to content

Commit

Permalink
fixed pistackng error in rdkit 2D figure
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerij Talagayev committed Dec 4, 2023
1 parent 5257da4 commit d9977f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openmmdl/openmmdl_analysis/rdkit_figure_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def highlight_numbers(split_data, starting_idx):


for item in split_data:
print(item)
parts = item.split()
protein_partner_name = parts[0]
numeric_codes = parts[1:-1]
Expand Down Expand Up @@ -178,8 +179,11 @@ def highlight_numbers(split_data, starting_idx):
parts = item.split()
protein_partner_name = parts[0]
numeric_codes = parts[1:-1]
print(numeric_codes)
interaction_type = parts[-1]
for code in numeric_codes:
split_codes = numeric_codes[0].split(',')
print(split_codes)
for code in split_codes:
atom_index = int(code)
complex_id = complex.select_atoms(f"id {atom_index}")
for atom in complex_id:
Expand Down

0 comments on commit d9977f4

Please sign in to comment.