Skip to content

Commit a62595e

Browse files
committed
address #227
1 parent d6cc576 commit a62595e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

alphafold3_pytorch/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
alphafold3_inputs_to_batched_atom_input
1010
)
1111

12-
from Bio.PDB.PDBIO import PDBIO
12+
from Bio.PDB.mmcifio import MMCIFIO
1313

1414
# simple cli using click
1515

1616
@click.command()
1717
@click.option('-ckpt', '--checkpoint', type = str, help = 'path to alphafold3 checkpoint')
1818
@click.option('-p', '--protein', type = str, help = 'one protein sequence')
19-
@click.option('-o', '--output', type = str, help = 'output path', default = 'output.pdb')
19+
@click.option('-o', '--output', type = str, help = 'output path', default = 'output.mmcif')
2020
def cli(
2121
checkpoint: str,
2222
protein: str,
@@ -40,8 +40,8 @@ def cli(
4040
output_path = Path(output)
4141
output_path.parents[0].mkdir(exist_ok = True, parents = True)
4242

43-
pdb_writer = PDBIO()
43+
pdb_writer = MMCIFIO()
4444
pdb_writer.set_structure(structure)
4545
pdb_writer.save(str(output_path))
4646

47-
print(f'pdb saved to {str(output_path)}')
47+
print(f'mmcif saved to {str(output_path)}')

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.4.45"
3+
version = "0.4.46"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" },

0 commit comments

Comments
 (0)