This is a read-only mirror of pymolwiki.org

Difference between revisions of "Main Page"

From PyMOL Wiki
Jump to navigation Jump to search
m (2 revisions)
 
(443 intermediate revisions by 45 users not shown)
Line 1: Line 1:
== PyMol Wiki Home ==
+
__NOTOC__
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.
+
{| align="center" width="100%" style="background: #B22222; margin-bottom: 4em; border-bottom: 1px solid #B22222; border-left: 1px solid #B22222; border-right: 1px solid #B22222;"
 +
|+ style="font-size: 1.0em; font-weight: normal; color: #FFFFFF; text-align:right; background: #B22222; padding-top:0.5em; padding-bottom: 0.25em; padding-right: 0.60em; border-top: 2px solid #B22222; border-bottom: 1px solid #fff;" |hosted by [[File:SBGridlogo2.jpg|140 px|link=https://sbgrid.org/]]
 +
|}
 +
{| align="center" style="padding-bottom: 3em;"
 +
|+ style="font-size:210%; font-weight: bold; color:#000000; text-align:center; padding: 5px; margin-bottom: 4px;" | Welcome to the PyMOL Wiki!
 +
|- style="text-align:center; font-weight: normal; color: #000000; font-size: 120%; font-family: sans-serif;"
 +
| The community-run support site for the [http://pymol.org PyMOL] molecular viewer.
 +
|- style="text-align:center; font-weight:normal; color: #000000; font-size: 120%; font-family: sans-serif;"
 +
| To request a new account, email SBGrid at:  accounts (@) sbgrid dot org
 +
|- style="text-align:center; font-weight:bold; color: #000000; font-size: 120%; font-family: sans-serif;"
 +
|}
  
We (will) strive to provide
+
{| align="center" width="45%" style="background: #FFFFFF; margin-bottom: 4em; border-bottom: 1px solid #AFB29E; border-left: 1px solid #AFB29E; border-right: 1px solid #AFB29E;"
* updates on PyMol
+
|+ style="font-size: 1.4em; font-weight: bold; color: #FFFFFF; text-align:center; background: #000000; padding-top:0.5em; padding-bottom: 0.25em; border-top: 2px solid #000000; border-bottom: 1px solid #fff;" |Quick Links
* a stable user-oriented documentation base
+
|-  
* a thorough treatment of the PyMol program
+
| style="font-size: 1.1em; font-weight: normal; color #48A2B4; padding: 0.5em 1em 0.5em 3em;"|'''[[:Category:Tutorials|Tutorials]]''' || '''[[TOPTOC|Table of Contents]]''' || '''[[:Category:Commands|Commands]]'''
* feature rich scripts for general PyMol use
+
|-
 +
| style="font-size: 1.1em; font-weight: normal; color #48A2B4; padding: 0.5em 1em 0.5em 3em;"|'''[[:Category:Script_Library|Script Library]]''' || '''[[:Category:Plugins|Plugins]]''' || '''[[:Category:FAQ|FAQ]]'''
 +
|-
 +
| style="font-size: 1.1em; font-weight: normal; color #48A2B4; padding: 0.5em 1em 0.5em 3em;"|'''[[Gallery]]''' | '''[[Covers]]'''
 +
||'''[[CheatSheet|PyMOL Cheat Sheet]]''' (''[[Media:PymolRef.pdf|PDF]]'')
 +
||'''[[PyMOL_mailing_list|Getting Help]]'''
 +
|}
  
== Links of Interest ==
+
{| width="100%"
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something
+
| style="vertical-align: top; width: 40%" |
* [[:Category:Scripting Script Library| Script Library]] -- add one!
+
{| class="jtable" style="float: left; width: 90%;"
* [[:Category:Commands|PyMol Commands]] (>130 documented!)
+
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" | News & Updates
* [[:Special:Allpages| All Pages]]
+
|-
* [[:Category:Plugins|Plugins]]
+
! Official Release
* [[:Special:Categories| See All Categories]]
+
| [https://pymol.org PyMOL v2.5 has been released] on May 10, 2021.
 +
|-
 +
! Python 3
 +
| New [[2to3|Python 3 compatibility guide]] for scripts and plugins
 +
|-
 +
! POSF
 +
| [https://pymol.org/fellowship New PyMOL fellows announced for 2018-2019]
 +
|-
 +
! Tutorial
 +
| [[Plugins Tutorial]] updated for PyQt5
 +
|-
 +
! New Plugin
 +
| [[PICv|PICv]] is a new plugin for clustering protein-protein interactions and visualization with available data from PDBe
 +
|-
 +
! Selection keywords
 +
| New [[Selection Algebra|polymer.protein and polymer.nucleic]] selection keywords. Thanks everyone who participated in the [https://goo.gl/forms/r0Ck03VTytZQxN4A2 poll]!
 +
|-
 +
! Plugin Update
 +
| [[MOLE 2.0: advanced approach for analysis of biomacromolecular channels|MOLE 2.5]] is an updated version of channel analysis software in PyMOL
 +
|-
 +
! New Script
 +
| [[dssr_block]] is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
 +
|-
 +
! Older News
 +
| See [[Older_News|Older News]].
 +
|}
 +
|style="vertical-align: top; width: 40%"|
 +
{| class="jtable" style="float: right; width: 90%"
 +
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" |Did you know...
 +
|-
 +
|<div class="didyouknow" >
 +
<DynamicPageList>
 +
randomcount=1
 +
category=Commands|Plugins|Script_Library|Settings
 +
includepage=*
 +
includemaxlength=1050
 +
escapelinks=false
 +
allowcachedresults=false
 +
resultsheader=__NOTOC__ __NOEDITSECTION__
 +
listseparators=,<h3>[[%PAGE%]]</h3>,,\n
 +
</DynamicPageList>
 +
</div>
 +
<div style="clear: both;"></div>
 +
|}
 +
|
 +
|style="vertical-align: top; width: 18%"|
 +
<DynamicPageList>
 +
imagecontainer=Covers
 +
randomcount=1
 +
escapelinks=false
 +
openreferences=true
 +
listseparators=[[,%PAGE%,|thumb|185px|A Random PyMOL-generated Cover.  See [[Covers]].]],\n
 +
ordermethod=none
 +
allowcachedresults=false
 +
</DynamicPageList>
  
 
+
|}
<source lang="python">
 
#############################################################################
 
# $Id$
 
#############################################################################
 
 
 
import sys;
 
import os;
 
import math;
 
import re;
 
import getopt;
 
 
 
from Bio.PDB.PDBParser import PDBParser
 
 
 
import imgWriter
 
#my imageWriter using GD
 
#import dali.imageWriter
 
 
 
class point:
 
        """
 
        point is a simple representation of a 3D point in space
 
 
 
        """
 
 
 
        def __init__(self, ray = [] ):
 
                """
 
                Constructor
 
 
 
                """
 
 
 
                if ( len(ray) != 3 ):
 
                        print "ERROR: What, so macromolecules are 2-dimensional now?  I don't th
 
ink so."
 
                        sys.exit(2)
 
 
 
                # assign instance variables
 
                self.x = ray[0]
 
                self.y = ray[1]
 
                self.z = ray[2]
 
 
 
                # calculate the length from origin
 
                self.length = math.sqrt( self.x**2 + self.y**2 + self.z**2 )
 
 
 
</source>
 
 
 
<npython>
 
#############################################################################
 
# $Id$
 
#############################################################################
 
 
 
import sys;
 
import os;
 
import math;
 
import re;
 
import getopt;
 
 
 
from Bio.PDB.PDBParser import PDBParser
 
 
 
import imgWriter
 
#my imageWriter using GD
 
#import dali.imageWriter
 
 
 
 
 
class point:
 
        """
 
        point is a simple representation of a 3D point in space
 
 
 
        """
 
 
 
        def __init__(self, ray = [] ):
 
                """
 
                Constructor
 
 
 
                """
 
 
 
                if ( len(ray) != 3 ):
 
                        print "ERROR: What, so macromolecules are 2-dimensional now?  I don't th
 
ink so."
 
                        sys.exit(2)
 
 
 
                # assign instance variables
 
                self.x = ray[0]
 
                self.y = ray[1]
 
                self.z = ray[2]
 
 
 
                # calculate the length from origin
 
                self.length = math.sqrt( self.x**2 + self.y**2 + self.z**2 )
 
 
 
</npython>
 

Latest revision as of 03:21, 22 June 2021

hosted by SBGridlogo2.jpg
Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
To request a new account, email SBGrid at: accounts (@) sbgrid dot org
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Official Release PyMOL v2.5 has been released on May 10, 2021.
Python 3 New Python 3 compatibility guide for scripts and plugins
POSF New PyMOL fellows announced for 2018-2019
Tutorial Plugins Tutorial updated for PyQt5
New Plugin PICv is a new plugin for clustering protein-protein interactions and visualization with available data from PDBe
Selection keywords New polymer.protein and polymer.nucleic selection keywords. Thanks everyone who participated in the poll!
Plugin Update MOLE 2.5 is an updated version of channel analysis software in PyMOL
New Script dssr_block is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
Older News See Older News.
Did you know...

Centerofmass

The centerofmass command calculates the center of mass for an atom selection. It considers atom mass and occupancy.

New in PyMOL 1.7.2. See the center_of_mass script for older PyMOL versions.

Usage

centerofmass [ selection [, state ]]

Arguments

  • selection = str: atom selection {default: all}
  • state = int: object state, -1 for current state, 0 for all states {default: -1}

Example

PyMOL> fetch 1ubq, async=0
PyMOL> centerofmass
 Center of Mass: [  30.004,  28.522,  14.701]

Python API

cmd.centerofmass() returns a list of 3 floats.

See Also

A Random PyMOL-generated Cover. See Covers.