-
Hello, Given CIF Table, how to asign one column to another column? auth_seq_col = cif_block.find_values('_atom_site.auth_seq_id')
label_seq_col = cif_block.find_values('_atom_site.label_seq_id')
if auth_seq_col is not None and label_seq_col is not None:
(?)for i, value in enumerate(auth_seq_col):
label_seq_col[i] = value |
Beta Was this translation helpful? Give feedback.
Answered by
wojdyr
Jan 21, 2022
Replies: 1 comment
-
The simplest way is to do it while iterating over cif.Table: for row in cif_block.find('_atom_site.', ['auth_seq_id', 'label_seq_id']):
row[1] = row[0] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wojdyr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The simplest way is to do it while iterating over cif.Table: