FindSurfaceResidues: Difference between revisions
Jump to navigation
Jump to search
(removed outdated code) |
|||
(9 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
[[ | {{Infobox script-repo | ||
|type = module | |||
|filename = findSurfaceResidues.py | |||
|author = [[User:inchoate|Jason Vertrees]] | |||
|license = BSD-2-Clause | |||
}} | |||
The [[findSurfaceResidues]] script will select (and color if requested) surface residues and atoms on an object or selection. See the options below. | |||
Each time, the script will create two new selections called, '''exposed_res_XYZ''' and '''exposed_atm_XYZ''' where ''XYZ'' is some random number. This is done so that no other selections/objects are overwritten. | |||
= Usage = | |||
findSurfaceResidues [ selection=all [, cutoff=2.5 [, doShow=0 ]]] | |||
= Arguments = | |||
* '''selection''' = str: The object or selection for which to find exposed residues {default: all} | |||
* '''cutoff''' = float: The cutoff in square Angstroms that defines exposed or not. Those atoms with > cutoff Ang^2 exposed will be considered ''exposed'' {default: 2.5 Ang^2} | |||
* '''doShow''' = 0/1: Change the visualization to highlight the exposed residues vs interior {default: 0} | |||
= | = Examples = | ||
<gallery> | |||
: | Image:FindExRes.png|thumb|right|300px|Result of $TUT/1hpv.pdb at 2.5 Ang cutoff. | ||
Image:Surface_residues_ex.png|300px|Example coloring of surface residues | |||
</gallery> | |||
: | |||
<source lang="python"> | <source lang="python"> | ||
run findSurfaceResidues.py | |||
fetch 1hpv, async=0 | |||
findSurfaceResidues | findSurfaceResidues | ||
# now show the exposed | # now show the exposed | ||
findSurfaceResidues doShow=1 | |||
# watch how the visualization changes: | # watch how the visualization changes: | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=0.5 | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=1.0 | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=1.5 | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=2.0 | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=2.5 | ||
findSurfaceResidues doShow= | findSurfaceResidues doShow=1, cutoff=3.0 | ||
</source> | </source> | ||
= | = See Also = | ||
* [[get_sasa_relative]] | |||
* [[Get_Area|get_area]] | |||
[[Category:Script_Library]] | [[Category:Script_Library]] | ||
Line 115: | Line 54: | ||
[[Category:Biochemical_Scripts]] | [[Category:Biochemical_Scripts]] | ||
[[Category:Structural_Biology_Scripts]] | [[Category:Structural_Biology_Scripts]] | ||
__NOTOC__ |
Latest revision as of 02:42, 29 March 2019
Type | Python Module |
---|---|
Download | findSurfaceResidues.py |
Author(s) | Jason Vertrees |
License | BSD-2-Clause |
This code has been put under version control in the project Pymol-script-repo |
The findSurfaceResidues script will select (and color if requested) surface residues and atoms on an object or selection. See the options below.
Each time, the script will create two new selections called, exposed_res_XYZ and exposed_atm_XYZ where XYZ is some random number. This is done so that no other selections/objects are overwritten.
Usage
findSurfaceResidues [ selection=all [, cutoff=2.5 [, doShow=0 ]]]
Arguments
- selection = str: The object or selection for which to find exposed residues {default: all}
- cutoff = float: The cutoff in square Angstroms that defines exposed or not. Those atoms with > cutoff Ang^2 exposed will be considered exposed {default: 2.5 Ang^2}
- doShow = 0/1: Change the visualization to highlight the exposed residues vs interior {default: 0}
Examples
run findSurfaceResidues.py
fetch 1hpv, async=0
findSurfaceResidues
# now show the exposed
findSurfaceResidues doShow=1
# watch how the visualization changes:
findSurfaceResidues doShow=1, cutoff=0.5
findSurfaceResidues doShow=1, cutoff=1.0
findSurfaceResidues doShow=1, cutoff=1.5
findSurfaceResidues doShow=1, cutoff=2.0
findSurfaceResidues doShow=1, cutoff=2.5
findSurfaceResidues doShow=1, cutoff=3.0