Skip to content

Commit

Permalink
fix domain splitting with blank chain ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 committed Aug 27, 2024
1 parent bad248f commit 5a362e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion progres/chainsaw/src/utils/secondary_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
def calculate_ss(pdbfile, chain, stride_path, ssfile='pdb_ss'):
assert os.path.exists(pdbfile)
with open(ssfile, 'w') as ssout_file:
args = [stride_path, pdbfile, '-r' + chain]
chain_arg = '-r' + chain
args = [stride_path, pdbfile, chain_arg.rstrip()]
LOG.info(f"Running command: {' '.join(args)}")
try:
subprocess.run(args,
Expand Down

0 comments on commit 5a362e2

Please sign in to comment.