Scripts for analysing Molecular Dynamics trajectories and molecular models.
All residues within a specified distance (in angstroms) from a specified residue are extracted from an input PDB file and saved to an output residue file.
python extract_residues_around_CA.py
input_file- Path and file name of a clean PDB input file.output_file- Path and file name of where to save residues.residue_number- The residue number of the residue in which the carbon alpha is used to derive an inclusion sphere. The residue number can only be present once in the input file, otherwise multiple sites of inclusion will be saved.distance_cutoff- A radius (angstrom) from the alpha carbon of the specified residue.
Uses FreeSASA to isolate the solvent accessible surface areas of a protein (from a PDB file) and saves those residues to a PDB file. This will not discriminate chains. Every molecule in the input file is parsed.
Threshold for what we consider as a "surface" residue:
- < 5 Ų Very buried (ignore)
- 5–30 Ų Partially exposed residues
- 30–50+ Ų Fully exposed residues
A residue is considered a surface residue if its surface areas is greater than the surface threshold.
A dependency on having FreeSASA installed. This works on my Mac laptop, but not on my Windows machine.
`python surface_residues.py
input_file- Path and file name of a clean PDB input file.output_file- Path and file name of where to save residues.surface_threshold- Threshold in Ų that defines when a residue becomes a surface residue. Set to 30.residue_file- Output text file location (include file path) of stored residue IDs that make up the surface.