Skip to content

Commit

Permalink
cif2pdb improve priting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Sep 26, 2024
1 parent 711d180 commit 565ae06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rna_tools/rna_pdb_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,16 +1293,16 @@ def has_high_rna_content(chain, threshold=0.8):
remarks = []
remarks.append(f'REMARK rna chain {chain.id} -> {chain_id_new}')

pdb_file = cif_file.replace('.cif', f'_{chain_id}_n{chain_id_new}_fCIF.pdb')
print(f'rna chain {chain.id} -> {chain_id_new} {pdb_file} # of atoms: {atom_count}')

chain.id = chain_id_new
new_model.add(chain)

pdb_file = cif_file.replace('.cif', f'_{chain_id}_n{chain_id_new}_fCIF.pdb')

io = PDBIO()
io.set_structure(new_structure)

io.save(pdb_file)
print(f'rna chain {chain.id} -> {chain_id_new} # of atoms: {atom_count} {pdb_file}')
# open a file add remarks
new_file = ''
with open(pdb_file, 'r') as f:
Expand Down

0 comments on commit 565ae06

Please sign in to comment.