A worldwide e-Infrastructure for NMR and structural biology

Residue selection in XPLOR distance restraints lists

The script is a simple python script that allows the user to select 2 ranges of residues in XPLOR distance restraint lists with the common XPLOR format:

assign (resid 17 and name HA ) (resid 21 and name HG2 ) 4.08 0.5 0.5
assign (resid 12 and name HA ) (resid 12 and name HB1 ) 4.66 0.5 0.5
assign (resid 8 and name HG2 ) (resid 9 and name HA2 ) 3.94 0.5 0.5
...

It is very useful for getting a quick overview of the distance restraints between specific residues for inspection.

The script will ask you for input filename, output filename, and 2 residue ranges. A residue range can be a single residue specified as a number, or a range specified as two numbers separated with a "-"

Example:
chris:/Users/chris/Desktop> python selectResiduesXplorRestraints.py
Please enter the input XPLOR distance restraints filename: xplor.tbl
Please enter the output XPLOR distance restraints filename: select.tbl
Please enter the first residue range (e.g.: 1 - 5 or 5) : 21-24
Please enter the second residue range (e.g.: 19 - 32 or 9) : 21

Usage:
- Requires python version 3 or higher
- Extract the file selectResiduesXplorRestraints.py
- run as:
> python selectResiduesXplorRestraints.py

If you want to learn how to create python scripts to improve your workflow, have a look at our python courses.

Contacts

Chris Spronk

Cite WeNMR

 
Usage of the WeNMR portals should be acknowledged in any publication:
 
"The WeNMR project (European FP7 e-Infrastructure grant, contract no. 261572www.wenmr.eu), supported by the European Grid Initiative (EGI) through the national GRID Initiatives of Belgium, France, Italy, Germany, the Netherlands, Poland, Portugal, Spain, UK, South Africa, Malaysia, Taiwan, the Latin America GRID infrastructure via the Gisela project, the International Desktop Grid Federation (IDGF) with its volunteers and the US Open Science Grid (OSG) are acknowledged for the use of web portals, computing and storage facilities. "
 
And the following article describing the WeNMR portals should be cited:
Wassenaar et al. (2012). WeNMR: Structural Biology on the Grid.J. Grid. Comp., 10:743-767.

EGI-approved

The WeNMR Virtual Research Community has been the first to be officially recognized by the EGI.

European Union

WeNMR is an e-Infrastructure project funded under the 7th framework of the EU. Contract no. 261572