Skip to content

Fix residue depth subprocess : Modernize process execution in ResidueDepth using subprocess.run#5150

Open
dipankatanu wants to merge 3 commits intobiopython:masterfrom
dipankatanu:fix-residue-depth-subprocess
Open

Fix residue depth subprocess : Modernize process execution in ResidueDepth using subprocess.run#5150
dipankatanu wants to merge 3 commits intobiopython:masterfrom
dipankatanu:fix-residue-depth-subprocess

Conversation

@dipankatanu
Copy link
Copy Markdown

Description: > Replaced subprocess.call with subprocess.run in Bio.PDB.ResidueDepth.get_surface.
Removed shell=True to improve security and cross-platform reliability.
Switched to list-based argument passing to avoid shell injection risks.
Implemented check=True for automatic error handling of the MSMS executable.

@peterjc
Copy link
Copy Markdown
Member

peterjc commented Jan 26, 2026

You need to remove the PDB changes, which look to be from #5149 (a duplicate of work on another PR just merged giving the conflict here now).

Which operating systems have you actually tried this on? Windows command line calls are rarely straight forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants