User:Pedrobeltrao/Notebook/Structural analysis of phosphorylation sites/Code: Difference between revisions
(→Access) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
2. Then check out the latest version of the code: | 2. Then check out the latest version of the code: | ||
<code>svn checkout http://phospho3d.googlecode.com/svn/trunk/ phospho3d | <code>svn checkout http://phospho3d.googlecode.com/svn/trunk/ phospho3d</code> | ||
* This will create a folder phoshpho3d | * This will create a folder "phoshpho3d" in your current directory | ||
* Project members | * Project members can check out a write-access copy. See: http://code.google.com/p/phospho3d/source/checkout | ||
3. Before running python scripts, you also need to [http://biskit.pasteur.fr/install/short/ install the Biskit library] | 3. Before running python scripts, you also need to [http://biskit.pasteur.fr/install/short/ install the Biskit library] | ||
Line 24: | Line 24: | ||
** [http://biskit.pasteur.fr/install/applications/surfrace surfaceracer] | ** [http://biskit.pasteur.fr/install/applications/surfrace surfaceracer] | ||
** pymol | ** pymol | ||
==SVN usage== | ==SVN usage== | ||
Line 35: | Line 34: | ||
# Submit (check in) your change to the server | # Submit (check in) your change to the server | ||
Example: | There are many graphical front-ends to subversion and most programming environments integrate some subversion support. But even without any GUI candy, you only need to remember 3 or 4 svn commands to work on the code. These are: | ||
* svn add -- add a new file/files into version control | |||
* svn update -- merge changes from the server into your local copy | |||
* svn checkin (short: svn ci) -- submit changes to the server | |||
* svn status -- list local changes (option -u lists remote changes too) | |||
====Example:==== | |||
<code> | <code> | ||
cd phospho3d | cd phospho3d | ||
svn update | svn update | ||
...make your change... | |||
...make your change; e.g. add new file myscript.py... | |||
svn add myscript.py | |||
svn | svn status | ||
...check what has changed locally... | |||
...check what has changed locally... | |||
svn ci -m 'your checkin message' | svn update | ||
svn ci -m 'your checkin message' | |||
</code> | </code> | ||
Allways update your local copy to the latest state **directly before** checking in any change! | |||
By default, svn commands operate on the local folder and all sub-folders. You can limit them to certain files: | By default, svn commands operate on the local folder and all sub-folders. You can limit them to certain files: | ||
<code> | <code> |
Latest revision as of 11:23, 26 September 2009
Structural analysis of phosphorylation sites | |
CodeWe are going to use Perl (Pedro) and Python (Raik). The Python code builds on the Biskit library. Our scripts are available through Google Code: Access1. Install a subversion (svn) client 2. Then check out the latest version of the code:
3. Before running python scripts, you also need to install the Biskit library
SVN usageAfter the initial checkout, the basic principle is always:
There are many graphical front-ends to subversion and most programming environments integrate some subversion support. But even without any GUI candy, you only need to remember 3 or 4 svn commands to work on the code. These are:
Example:
Allways update your local copy to the latest state **directly before** checking in any change!
By default, svn commands operate on the local folder and all sub-folders. You can limit them to certain files:
|