Git script guidelines: Difference between revisions
Line 41: | Line 41: | ||
ColorByDisplacementAll O5NT, C5NT, super1=resi 26-355, super2=resi 26-355, doColor=t, doAlign=t | ColorByDisplacementAll O5NT, C5NT, super1=resi 26-355, super2=resi 26-355, doColor=t, doAlign=t | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Python Code == | |||
This code has been put under version control. In the project, [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo]. | |||
For a color coded view: | |||
https://github.com/Pymol-Scripts/Pymol-script-repo/blob/master/colorbydisplacement.py | |||
See the raw code or download manually, by right clicking the following link here -> Save as: colorbydisplacement.py | |||
https://raw.github.com/Pymol-Scripts/Pymol-script-repo/master/colorbydisplacement.py |
Revision as of 04:42, 3 December 2011
Guide lines
To make a good PyMOL wiki page, you can follow some few guidelines. Some should be seen as mandatory, and are marked.
Template for a new page
The following sections, can for example be copied to a new page.
You can find tips for formatting a mediawiki page here: http://www.mediawiki.org/wiki/Help:Formatting
Author
This pymol script is made by you
Introduction
A little section about what the script can do, and maybe why it has been developed and under which protein discipline it is particularly useful.
Functions
If there are more than one function, you could list them here.
- Make a dot
- Write under same dot
Example of use
Here you write some example of use. Try to make examples, that anyone can access right away.
Do this by fetching proteins, and if you need other example files, but them in: Pymol-script-repo/files_for_examples
import colorbydisplacement
fetch 1HP1, async=0
fetch 1HPU, async=0
hide everything
### Select asymmetric units from pdb file
create O5NT, /1HP1//A
create C5NT, /1HPU//C
delete 1HP1
delete 1HPU
show cartoon, O5NT
show cartoon, C5NT
ColorByDisplacementAll O5NT, C5NT, super1=resi 26-355, super2=resi 26-355, doColor=t, doAlign=t
Python Code
This code has been put under version control. In the project, Pymol-script-repo.
For a color coded view:
https://github.com/Pymol-Scripts/Pymol-script-repo/blob/master/colorbydisplacement.py
See the raw code or download manually, by right clicking the following link here -> Save as: colorbydisplacement.py
https://raw.github.com/Pymol-Scripts/Pymol-script-repo/master/colorbydisplacement.py