From 7ad19cc44bba537ae0b70f4eb3bdd00effef5be6 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Tue, 2 Feb 2016 18:37:27 -0600 Subject: [PATCH 1/2] Realign codeblock backticks --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b793466..d3d89e7 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,12 @@ Copy script from [this link](https://github.com/MooersLab/EasyPyMOL/blob/master/ ```shell ls *.py ``` + Paste the following horizontal script on the command line of the top or external gui: ```shell fetch 1lw9, async=0; run roundview.py; roundview 0,1 ``` + You should see the following in the command history window of the top gui: ```shell set_view (1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,-155.2,35.1,11.5,9.7,122.3,188.0,-20.0); @@ -71,7 +73,7 @@ Type the following to see the default format from get_view. get_view ``` -Which looks easier to add to a horizontal scrpt with other commands on the same line? +Which looks easier to add to a horizontal script with other commands on the same line? #### More advanced ways to install @@ -105,33 +107,32 @@ on-line documentation are available with sys.path.append('/Path/To/roundview') run /Path/To/roundview.py ``` -For example: - ```py + For example: + ```py import sys sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py ``` -Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. - ```py + Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. + ```py PyMOL>import sys PyMOL>sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') PyMOL>run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py ``` -Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. - ```py + Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. + ```py PyMOL>import sys PyMOL>sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') PyMOL>run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py ``` - - - -Type "roundview" on either command line. You should get back something like this if no molecule is loaded: - ```py + + Type "roundview" on either command line. You should get back something like this if no molecule is loaded: + ```py set_view (1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,-50.0,0.0,0.0,0.0,40.0,100.0,-20.0); ``` - ```py + + ```py PyMOL>import sys PyMOL>sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') PyMOL>run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py From d417dcf100849057f0bb848f16d921242db563d9 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Tue, 2 Feb 2016 18:42:18 -0600 Subject: [PATCH 2/2] Remove extra "restart pymol" step --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index d3d89e7..4d57a68 100644 --- a/README.md +++ b/README.md @@ -113,14 +113,8 @@ on-line documentation are available with sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py ``` - Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. - ```py - PyMOL>import sys - PyMOL>sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/') - PyMOL>run /Users/blaine-mooers/Scripts/Scripts_PyMOL/roundview.py - ``` - Restart pymol. You should see soemthing like the following in the command history window if your path to the script is correct. + Restart pymol. You should see something like the following in the command history window if your path to the script is correct. ```py PyMOL>import sys PyMOL>sys.path.append('/Users/blaine-mooers/Scripts/Scripts_PyMOL/')