Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonh1 committed Aug 15, 2023
1 parent 5358897 commit a39dd82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def cli(
click.echo("")

if protoss:
from qp.structure import protoss
from qp.structure import add_hydrogens

err = {
"PDB": [],
Expand Down Expand Up @@ -116,24 +116,24 @@ def cli(
if modeller:
path = mod_path
try:
pid = protoss.upload(path)
pid = add_hydrogens.upload(path)
except ValueError:
click.secho("Error uploading PDB file\n", italic=True, fg="red")
# Occurs when uploading a PDB file > 4MB
# TODO retry with parsed PDB code? Will raise Bio.PDB error if
# number of atoms in output exceeds 99999
err["Protoss"].append(pdb)
continue
job = protoss.submit(pid)
protoss.download(job, prot_path)
job = add_hydrogens.submit(pid)
add_hydrogens.download(job, prot_path)

if coordination:
click.echo("> Extracting clusters")
if modeller:
path = mod_path
if protoss:
path = prot_path
protoss.adjust_active_sites(path, metals)
add_hydrogens.adjust_active_sites(path, metals)
try:
coordination_spheres.extract_clusters(path, f"{o}/{pdb}", metals, limit, ligands, capping)
except KeyError:
Expand Down
File renamed without changes.

0 comments on commit a39dd82

Please sign in to comment.