Main Page: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
(PyMOL 3.0 release)
 
(67 intermediate revisions by 14 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{| align="center" style="padding-bottom: 4em;"
{| 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:210%; font-weight: bold; color:#032d45; text-align:center; padding: 5px; margin-bottom: 4px;" | Welcome to the PyMOL Wiki!
|+ 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/]]
|- style="text-align:center; font-weight:bold; color: #6d6003; font-size: 140%; font-style: italic; font-family: serif;"
|}
{| 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.
| The community-run support site for the [http://pymol.org PyMOL] molecular viewer.
|- style="text-align:center; font-weight:bold; color: #6d6003; font-size: 140%; font-style: italic; font-family: serif;"
|- style="text-align:center; font-weight:normal; color: #000000; font-size: 120%; font-family: sans-serif;"
| New accounts: email jason (dot) vertrees (@) gmail dot com
| To request a new account, email SBGrid at:  accounts (@) sbgrid dot org
|- style="text-align:center; font-weight:bold; color: #6d6003; font-size: 140%; font-style: italic; font-family: serif;"
|- style="text-align:center; font-weight:bold; color: #000000; font-size: 120%; font-family: sans-serif;"
|}
|}
{| align="center" width="45%" style="background: #EDEBD5; margin-bottom: 4em; border-bottom: 1px solid #AFB29E; border-left: 1px solid #AFB29E; border-right: 1px solid #AFB29E;"
 
|+ style="font-size: 1.4em; font-weight: bold; color: #032d45; text-align:center; background: #5F7F96; padding-top:0.5em; padding-bottom: 0.25em; border-top: 2px solid #AFB29E; border-bottom: 1px solid #fff;" |Quick Links
{| 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;"
|+ 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
|-  
|-  
| style="font-size: 1.1em; color #61021F; padding: 0.5em 1em 0.5em 3em;"|'''[[:Category:Tutorials|Tutorials]]''' || '''[[TOPTOC|Table of Contents]]''' || '''[[:Category:Commands|Commands]]'''
| 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]]'''
|-
|-
| style="font-size: 1.1em; color #61021F; 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;"|'''[[:Category:Script_Library|Script Library]]''' || '''[[:Category:Plugins|Plugins]]''' || '''[[:Category:FAQ|FAQ]]'''
|-
|-
| style="font-size: 1.1em; color #61021F; padding: 0.5em 1em 0.5em 3em;"|'''[[Gallery]]''' | '''[[Covers]]'''
| 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]]'')
||'''[[CheatSheet|PyMOL Cheat Sheet]]''' (''[[Media:PymolRef.pdf|PDF]]'')
||'''[[GoogleSearch]]'''
||'''[[PyMOL_mailing_list|Getting Help]]'''
|}
|}


Line 25: Line 29:
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" | News & Updates
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" | News & Updates
|-
|-
Select_sites
! Official Release
! New Script
| [https://pymol.org PyMOL v3.0 has been released] on March 12, 2024.
| [[select_sites]] can set author/paper selections according to SITE annotation in pdb file
|-
! New Script
| [[b2transparency]] can set surface transparency based on atom b-factor
|-
! New Extension
| [[psico]] is a python module which extends PyMOL with many commands
|-
! New Script
| [[uniprot_features]] makes named selections for sequence annotations from uniprot
|-
|-
! New Plugin
! New Plugin
| [[Gyration_tensor]] Calculates chain-wise gyration tensor of a protein.
| [[CavitOmiX|CavitOmiX]] calculate [https://innophore.com Catalophore™ cavities], predict protein structures with [https://www.nvidia.com/en-us/gpu-cloud/bionemo OpenFold by NVIDIA-BioNeMo], [https://ai.facebook.com/blog/protein-folding-esmfold-metagenomics/ ESMFold] and retrieve [https://www.deepmind.com/research/highlighted-research/alphafold Alphafold] models
|-
|-
! New Script
! Official Release
| [[set_phipsi]] can set phi/psi angles for all residues in a selection
| [https://pymol.org PyMOL v2.5 has been released] on May 10, 2021.
|-
|-
! New Script
! Python 3
| [[dehydron]] A plugin to calculate dehydrons and display them onto the protein structure. A dehydron is a main chain hydrogen bond incompletely shielded from water attack.
| New [[2to3|Python 3 compatibility guide]] for scripts and plugins
|-
|-
! New Script
! POSF
| [[pymol2glmol]] is script to export a scene in pymol to a webpage for GLmol. GLmol is a molecular viewer for Web browsers written in WebGL/Javascript. Like web Jmol, but MUCH faster. Try it out!
| [https://pymol.org/fellowship New PyMOL fellowship announced for 2022-2023]
|-
|-
! New Script
! Tutorial
| [[cyspka]] is an experimental surface cysteine pKa predictor.
| [[Plugins Tutorial]] updated for PyQt5
|-
|-
! New Plugin
! New Plugin
| [[Contact_Map_Visualizer]] visualize residues corresponding to the contact map
| [[PICv|PICv]] is a new plugin for clustering protein-protein interactions and visualization with available data from PDBe
|-
! New Script
| [[spectrum_states]] colors states of multi-state object
|-
|-
! New Script
! Selection keywords
| [[TMalign]] is a wrapper for the TMalign program
| New [[Selection Algebra|polymer.protein and polymer.nucleic]] selection keywords. Thanks everyone who participated in the [https://goo.gl/forms/r0Ck03VTytZQxN4A2 poll]!
|-
|-
! Gallery Updates
! Plugin Update
| The [[Gallery|gallery]] has been updated to include a few new ideas and scripts for rendering
| [[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
! New Script
| [[save_settings]] can dump all changed settings to a file
| [[dssr_block]] is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
|-
! Tips & Tricks
| Instructions for [[3d_pdf|generating 3D PDFs]] using PyMOL.
|-
! Wiki Update
| Wiki has been updated. Please report any problems to the sysops.
|-
! New Scripts
| Create objects for each molecule or chain in selection with [[split_object]] and [[split_chains]]
|-
! New Script
| [[Rotkit]]: is a collection of usefull scripts to place your dye/molecule where you want. It includes a very handy, rotation around line, function. 
|-
! New Script
| [[Forster-distance-calculator]]: Can be used as a pymol-python shortcut to calculate the Förster distance between dyes from different companies. Useful, if the user have pymol installed, but not python. This script is meant as a tool to finding the right dyes, when labelling suitable positions for the site-directed cysteine mutants. See [[DisplacementMap]].
|-
! New Script
| [[propka]]: Fetches the pka values for your protein from the [http://propka.ki.ku.dk/ propka] server. [[propka]] generates a pymol command file that make pka atoms, color and label them according to your protein. Inspection is made easy by grouping the pka atoms in the pymol menu.
|-
|-
! Older News
! Older News
Line 94: Line 67:
|-
|-
|<div class="didyouknow" >
|<div class="didyouknow" >
<DPL>
<DynamicPageList>
namespace=
randomcount=1
category=Commands|Plugins|Script_Library|Settings
category=Commands|Plugins|Script_Library|Settings
includepage=*
includepage=*
includemaxlength=450
includemaxlength=1050
escapelinks=false
escapelinks=false
allowcachedresults=false
resultsheader=__NOTOC__ __NOEDITSECTION__
resultsheader=__NOTOC__ __NOEDITSECTION__
randomcount=1
mode=userformat
addpagecounter=true
listseparators=,<h3>[[%PAGE%]]</h3>,,\n
listseparators=,<h3>[[%PAGE%]]</h3>,,\n
</DPL>
</DynamicPageList>
</div>
</div>
<div style="clear: both;"></div>
<div style="clear: both;"></div>
Line 111: Line 82:
|
|
|style="vertical-align: top; width: 18%"|
|style="vertical-align: top; width: 18%"|
<DPL>
<DynamicPageList>
imagecontainer=Covers
imagecontainer=Covers
randomcount=1
randomcount=1
Line 118: Line 89:
listseparators=[[,%PAGE%,|thumb|185px|A Random PyMOL-generated Cover.  See [[Covers]].]],\n
listseparators=[[,%PAGE%,|thumb|185px|A Random PyMOL-generated Cover.  See [[Covers]].]],\n
ordermethod=none
ordermethod=none
</DPL>
allowcachedresults=false
</DynamicPageList>


|}
|}

Latest revision as of 11:54, 12 March 2024

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 v3.0 has been released on March 12, 2024.
New Plugin CavitOmiX calculate Catalophore™ cavities, predict protein structures with OpenFold by NVIDIA-BioNeMo, ESMFold and retrieve Alphafold models
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 fellowship announced for 2022-2023
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...

CollapseSel

= Overview =

CollapseSel is a small utility function to compress strings for selections. So, if you have a selection with residues 1+2+3+4+20+21+22+100-120 this will return, 1-4+20-22+100-120.

CollapseIDs is a small utility function to compress strings for an array of IDs. This does NOT have the logic for detecting duplicates, CollapseSel does.

Example

run /dir/to/collapseSel.py
fetch 1cll
select EE, resn GLU
print collapseSel("EE")
#
# and PyMOL should output:
#
# 6-7+11+14+31+45+47+54+67+82-84+87+104+114+119-120+123+127+139-140
#

The Code

<source lang="python"> import pymol from pymol import stored

def collapseIDs(ids): """ Helper function to make a smart list of IDs: eg turns 1+2+3+4+5 into 1-5. """ rVal = [] if len(ids)==0: return ""

scanning=False anchor = 0 start = 0 # 1-5 7-10 12 21-23 for cur in range(0,len(ids)-1): if ids[cur]+1 == ids[cur+1]: if scanning: scanning=True continue else: scanning=True start = cur else: if ..→

A Random PyMOL-generated Cover. See Covers.