A PCS object that stores X-tensor parameters, coordinates and datasets.
Takes given information and builds an object (on doParse() call). This object facilitates data storage of the X-tensor parameters, metal position <mx, my, mz>, shape, Axial and Rhombic and orientation, Alpha, Beta and Gamma, the experimental data and the spins for which experimental data is defined. This object also facilitates retrival and manipulation of this stored information.
Parameters: |
|
---|
Example Usage/Doctests:
>>> # HERE IT IS SHOWN HOW THIS MODULE CAN BE USED
>>> # INPUT & PARSING
>>>
>>> from numpy import array
>>> indat = ['Example', 'pcs', '../tests/STRUCTURES/2AXD.pdb', '../tests/DATASETS/PCS/THETA/DY.npc', 5, -6, -19, 39, 7, 37, 120, 43 ]
>>> p = PCSParser(indat)
>>> p.doParse()
>>> x,y,z = p.getAllXarray(), p.getAllYarray(), p.getAllZarray()
>>>
>>> # ADDING NEW DATA POST PARSING
>>> # TEST: addElement(self, at, res, exp, tol, coord, useFit=0)
>>> p.writeDataSetNumbat("DY_check.npc")
Data in numbat format written to: DY_check.npc
>>> p.addElement('N', 66, 1.1, 0.000, array([1.000, 2.000, 3.000]))
>>> p.writeDataSetNumbat("DY_check.1.npc")
Data in numbat format written to: DY_check.1.npc
>>> xm,ym,zm = p.getAllXarray(), p.getAllYarray(), p.getAllZarray()
>>> print xm[len(xm)-1], ym[len(ym)-1], zm[len(zm)-1]
1.0 2.0 3.0
>>>
>>> # REMOVING DATA POST PARSING
>>> # TEST: removeElement(self, at, res)
>>> p.removeElement('N', 66)
>>> p.removeElement('C', 66)
No such element found.
>>> p.writeDataSetNumbat("DY_check.2.npc")
Data in numbat format written to: DY_check.2.npc
>>>
>>> # SAVING A SESSION
>>> # TEST: saveSession(self, outname)
>>> p.saveSession("saved.ppt")
>>>
>>> # ADDING RANDOM ERROR
>>> # TEST
>>> #addErrorGaussianMeas(self, delta=0.0, rseed=1):
>>> #addErrorFlatMeas(self, delta=0.0, rseed=1):
>>> #addErrorGaussCoords(self, delta, rseed=1):
>>> #addErrorFlatCoords(self, delta, rseed=1):
>>> ori_exp = p.getAllMeasarray()
>>> rubbish = p.addErrorGaussianMeas() # Do nothing as tol = 0 for dataset
Random seed for addition of Gaussian error is 1
>>> dse = p.getParsed()
>>> for i in range(0, len(dse)): # Update the tolerances...
... dse[i].setTol(0.1)
...
>>> rubbish = p.addErrorGaussianMeas()
Random seed for addition of Gaussian error is 1
>>> p.writeDataSetNumbat("DY_check.3.npc")
Data in numbat format written to: DY_check.3.npc
>>> p.reloadParaData(rubbish)
>>> p.writeDataSetNumbat("DY_check.4.npc")
Data in numbat format written to: DY_check.4.npc
>>> rubbish = p.addErrorFlatMeas(0.05)
Random seed for addition of square error is 1
>>> p.writeDataSetNumbat("DY_check.5.npc")
Data in numbat format written to: DY_check.5.npc
>>> rubbish = p.addErrorFlatMeas(0.1)
Random seed for addition of square error is 1
>>> p.writeDataSetNumbat("DY_check.6.npc")
Data in numbat format written to: DY_check.6.npc
Add a ParaData element to the datastructure
Note
Elements are instantiated as the ParaData base class
Parameters: |
|
---|
Add random error from a “square” distribution to the coordinates
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random error from a “square” dist to the experimental value
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the coordinates
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the measured experimental value
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|---|
Return type: | list |
Parse the given the imput parameters, build ParaData objects allowing for easy retrival and manipulation
Returns all parsed experimental data in a single array [for fitting]
Return type: | array |
---|
Returns all parsed exp tolerances in a single array [for fitting]
Return type: | array |
---|
Returns all parsed x coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed y coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed z coordinates in a single array [for fitting]
Return type: | array |
---|
Return the X-tensor frame Alpha angle
Return the X-tensor’s Axial component in SI units
Return the X-tensor’s axial component in VVU units
Return the X-tensor frame Beta angle
Returns the type of paramagnetic effect parsed
Return type: | str |
---|
Returns the dataset (post readlines())
Return type: | list |
---|
Return the X-tensor frame Gamma angle
Return the numpy array containing the metal position
Return the metal x coordinate
Return the metal y coordinate
Return the metal z coordinate
Returns number of models contained in the Bio.PDB structure object
Return type: | int |
---|
Example Usage/Doctests
>>> indat = ['Example', 'pcs', '../tests/STRUCTURES/2AXD.pdb', '../tests/DATASETS/PCS/THETA/DY.npc']
>>> p = ParaParser(indat)
>>> print p.getNumModels()
12
Returns the PDB file parsed
Return type: | str |
---|
Returns the paramagnetic data file parsed
Return type: | str |
---|
Returns the list of ParaData objects (post doParse() call)
Return type: | list |
---|
Return the X-tensor’s rhombic component in SI units
Return the X-tensor’s rhombic component in VVU units
Returns the Bio.PDB structure object
This structure object is of a Structure/Model/Chain/Residue/Atom architecture.
Return type: | Bio.PDB structure object |
---|
Return an array of all 8 X-tensor parameters.
Print all 8 X-tensor parameters
The parsing has failed as the datastructure in the object is empty
Randomly remove ParaData elements from the objects datastructure
The original data structure of ParaData elements is returned
Parameters: |
|
---|
Load a data structure of ParaData elements into the current object
Parameters: |
|
---|
Remove a ParaData element from the datastructure
Parameters: |
|
---|
Pickle (store the entire object state). A way to save sessions
Parameters: |
|
---|
Example Usage/DocTests
>>> import sys
>>> import os
>>> from ParaUtils import loadSession
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTPRECALC', 'pre', '../tests/STRUCTURES/m0.pdb',
... '../tests/DATASETS/PRE/LZIPPER/dummy.npc','-5.559','28.782','3.344',
... '10000000']
>>> pre = PREParser(dataset)
>>> pre.doParse()
>>> calcer = PRE(pre)
>>> av = calcer.calc()
>>> pre.saveSession("test.session")
>>> pre2 = loadSession("test.session")
>>> if pre.getSiteParams().all() != pre2.getSiteParams().all():
... print "Failure!"
Set/Change the X-tensor frame Alpha angle
Parameters: |
|
---|
Set/Change the X-tensor’s Axial component (converted to VVU units)
Parameters: |
|
---|
Set/Change the X-tensor frame Beta angle
Parameters: |
|
---|
The calculated values become the experimental values
Set/Change the X-tensor frame Gamma angle
Parameters: |
|
---|
Set/Change the metal position
Parameters: |
|
---|
Set/Change the metal x coordinate
Parameters: |
|
---|
Set/Change the metal y coordinate
Parameters: |
|
---|
Set/Change the metal z coordinate
Parameters: |
|
---|
Change the model (coordinates) associated with the dataset
Parameters: |
|
---|
Set/Change the PDB file to be parsed
Parameters: |
|
---|
Set/Change the paramagnetic data file to be parsed
Parameters: |
|
---|
Set/Change the X-tensor’s Rhombic component (converted to VVU units)
Parameters: |
|
---|
Set all 8 X-tensor parameters given an array of such data
Parameters: |
|
---|
Write the data (in the Numbat format) to a user specified file
Parameters: |
|
---|
Example Usage/Doctests:
>>> import sys
>>> import os
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTRDCCALC', 'rdc', '../tests/STRUCTURES/2AXD.pdb',
... '../tests/DATASETS/RDC/THETA/DY.zero.npc',
... '37.0', '8.0', '37.0', '119.0', '39.0']
>>> rdc = RDCParser(dataset)
>>> rdc.doParse()
>>> rdc.writeDataSetNumbat('rdc_test.npc')
Data in numbat format written to: rdc_test.npc
A PRE object that stores PRE centre parameters, coordinates and datasets.
Takes given information and builds an object (on doParse() call). This object facilitates data storage of the PRE parameters, metal position <mx, my, mz> and PRE constant, the experimental data and the spins for which experimental data is defined. This object also facilitates retrival and manipulation of this stored information.
Parameters: |
|
---|
Example Usage/Doctests
Add a ParaData element to the datastructure
Note
Elements are instantiated as the ParaData base class
Parameters: |
|
---|
Add random error from a “square” distribution to the coordinates
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random error from a “square” dist to the experimental value
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the coordinates
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the measured experimental value
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|---|
Return type: | list |
Parse the given the imput parameters, build ParaData objects allowing for easy retrival and manipulation
Returns all parsed experimental data in a single array [for fitting]
Return type: | array |
---|
Returns all parsed exp tolerances in a single array [for fitting]
Return type: | array |
---|
Returns all parsed x coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed y coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed z coordinates in a single array [for fitting]
Return type: | array |
---|
Return the value of the PRE constant
Returns the type of paramagnetic effect parsed
Return type: | str |
---|
Returns the dataset (post readlines())
Return type: | list |
---|
Return the numpy array containing the metal position
Return the metal x coordinate
Return the metal y coordinate
Return the metal z coordinate
Returns number of models contained in the Bio.PDB structure object
Return type: | int |
---|
Example Usage/Doctests
>>> indat = ['Example', 'pcs', '../tests/STRUCTURES/2AXD.pdb', '../tests/DATASETS/PCS/THETA/DY.npc']
>>> p = ParaParser(indat)
>>> print p.getNumModels()
12
Returns the PDB file parsed
Return type: | str |
---|
Returns the paramagnetic data file parsed
Return type: | str |
---|
Returns the list of ParaData objects (post doParse() call)
Return type: | list |
---|
Return all 4 PRE centre parameters
Print all 4 PRE centre parameters
Returns the Bio.PDB structure object
This structure object is of a Structure/Model/Chain/Residue/Atom architecture.
Return type: | Bio.PDB structure object |
---|
The parsing has failed as the datastructure in the object is empty
Randomly remove ParaData elements from the objects datastructure
The original data structure of ParaData elements is returned
Parameters: |
|
---|
Load a data structure of ParaData elements into the current object
Parameters: |
|
---|
Remove a ParaData element from the datastructure
Parameters: |
|
---|
Pickle (store the entire object state). A way to save sessions
Parameters: |
|
---|
Example Usage/DocTests
>>> import sys
>>> import os
>>> from ParaUtils import loadSession
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTPRECALC', 'pre', '../tests/STRUCTURES/m0.pdb',
... '../tests/DATASETS/PRE/LZIPPER/dummy.npc','-5.559','28.782','3.344',
... '10000000']
>>> pre = PREParser(dataset)
>>> pre.doParse()
>>> calcer = PRE(pre)
>>> av = calcer.calc()
>>> pre.saveSession("test.session")
>>> pre2 = loadSession("test.session")
>>> if pre.getSiteParams().all() != pre2.getSiteParams().all():
... print "Failure!"
The calculated values become the experimental values
Set/Change the value of the PRE constant
Parameters: |
|
---|
Set/Change the metal position
Parameters: |
|
---|
Set/Change the metal x coordinate
Parameters: |
|
---|
Set/Change the metal y coordinate
Parameters: |
|
---|
Set/Change the metal z coordinate
Parameters: |
|
---|
Change the model (coordinates) associated with the dataset
Parameters: |
|
---|
Set/Change the PDB file to be parsed
Parameters: |
|
---|
Set/Change the paramagnetic data file to be parsed
Parameters: |
|
---|
Set all 4 PRE centre parameters given an array of such data
Parameters: |
|
---|
Write the data (in the Numbat format) to a user specified file
Parameters: |
|
---|
Example Usage/Doctests:
>>> import sys
>>> import os
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTRDCCALC', 'rdc', '../tests/STRUCTURES/2AXD.pdb',
... '../tests/DATASETS/RDC/THETA/DY.zero.npc',
... '37.0', '8.0', '37.0', '119.0', '39.0']
>>> rdc = RDCParser(dataset)
>>> rdc.doParse()
>>> rdc.writeDataSetNumbat('rdc_test.npc')
Data in numbat format written to: rdc_test.npc
Builds an object that stores parameters, coordinates and datasets
Base class of a *parser object. Takes given information and builds an object. This object facilitates data storage, retrival and manipulation of paramagentic information.
Parameters: |
|
---|
Add a ParaData element to the datastructure
Note
Elements are instantiated as the ParaData base class
Parameters: |
|
---|
Add random error from a “square” distribution to the coordinates
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random error from a “square” dist to the experimental value
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the coordinates
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the measured experimental value
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|---|
Return type: | list |
Returns all parsed experimental data in a single array [for fitting]
Return type: | array |
---|
Returns all parsed exp tolerances in a single array [for fitting]
Return type: | array |
---|
Returns all parsed x coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed y coordinates in a single array [for fitting]
Return type: | array |
---|
Returns all parsed z coordinates in a single array [for fitting]
Return type: | array |
---|
Returns the type of paramagnetic effect parsed
Return type: | str |
---|
Returns the dataset (post readlines())
Return type: | list |
---|
Returns number of models contained in the Bio.PDB structure object
Return type: | int |
---|
Example Usage/Doctests
>>> indat = ['Example', 'pcs', '../tests/STRUCTURES/2AXD.pdb', '../tests/DATASETS/PCS/THETA/DY.npc']
>>> p = ParaParser(indat)
>>> print p.getNumModels()
12
Returns the PDB file parsed
Return type: | str |
---|
Returns the paramagnetic data file parsed
Return type: | str |
---|
Returns the list of ParaData objects (post doParse() call)
Return type: | list |
---|
Returns the Bio.PDB structure object
This structure object is of a Structure/Model/Chain/Residue/Atom architecture.
Return type: | Bio.PDB structure object |
---|
The parsing has failed as the datastructure in the object is empty
Randomly remove ParaData elements from the objects datastructure
The original data structure of ParaData elements is returned
Parameters: |
|
---|
Load a data structure of ParaData elements into the current object
Parameters: |
|
---|
Remove a ParaData element from the datastructure
Parameters: |
|
---|
Pickle (store the entire object state). A way to save sessions
Parameters: |
|
---|
Example Usage/DocTests
>>> import sys
>>> import os
>>> from ParaUtils import loadSession
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTPRECALC', 'pre', '../tests/STRUCTURES/m0.pdb',
... '../tests/DATASETS/PRE/LZIPPER/dummy.npc','-5.559','28.782','3.344',
... '10000000']
>>> pre = PREParser(dataset)
>>> pre.doParse()
>>> calcer = PRE(pre)
>>> av = calcer.calc()
>>> pre.saveSession("test.session")
>>> pre2 = loadSession("test.session")
>>> if pre.getSiteParams().all() != pre2.getSiteParams().all():
... print "Failure!"
The calculated values become the experimental values
Change the model (coordinates) associated with the dataset
Parameters: |
|
---|
Set/Change the PDB file to be parsed
Parameters: |
|
---|
Set/Change the paramagnetic data file to be parsed
Parameters: |
|
---|
Write the data (in the Numbat format) to a user specified file
Parameters: |
|
---|
Example Usage/Doctests:
>>> import sys
>>> import os
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTRDCCALC', 'rdc', '../tests/STRUCTURES/2AXD.pdb',
... '../tests/DATASETS/RDC/THETA/DY.zero.npc',
... '37.0', '8.0', '37.0', '119.0', '39.0']
>>> rdc = RDCParser(dataset)
>>> rdc.doParse()
>>> rdc.writeDataSetNumbat('rdc_test.npc')
Data in numbat format written to: rdc_test.npc
A RDC object that stores Alignment-tensor parameters, coordinates and datasets.
Takes given information and builds an object (on doParse() call). This object facilitates data storage of the Alignment-tensor parameters, shape, Axial and Rhombic, orientation, Alpha, Beta and Gamma ,the experimental data and the spins for which experimental data is defined. This object also facilitates retrival and manipulation of this stored information.
Parameters: |
|
---|
Example Usage/Doctests
Add a ParaData element to the datastructure
Parameters: |
|
---|
Add random error from a “square” distribution to the coordinates
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random error from a “square” dist to the experimental value
Note
When using the square distribution, provided that delta is <= the experimental tolerance, generated error will not be larger than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the coordinates
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|
Add random Gaussian error to the measured experimental value
The original data structure of ParaData elements is returned
Note
When using a Gaussian distribution, ~ 32% of the time the generated error will be larger or than the experimental tolerance.
Parameters: |
|
---|---|
Return type: | list |
Parse the given the imput parameters, build ParaData objects allowing for easy retrival and manipulation
Warning
The ordering of atomtypes in the input file should be is very important!
Numbat format:
RESNUM ATOMTYPE1ATOMTYPE2 EXP_RDC EXP_TOL
For ATOMTYPE1ATOMTYPE2 = HN
ATOMTYPE1 must be the atom that is referenced second in the PDB file while ATOMTYPE2 must be the atom that referenced first in the pdb file.
Returns all parsed experimental data in a single array [for fitting]
Return type: | array |
---|
Returns all parsed exp tolerances in a single array [for fitting]
Return type: | array |
---|
Returns all x coordinates in a single array (x2) [for fitting]
Returns all y coordinates in a single array (x2) [for fitting]
Returns all z coordinates in a single array (x2) [for fitting]
Return the Alignment-tensor’s frame Alpha angle
Return the Alignment-tensor’s Axial component in SI units
Return the magnetic field strength (in Tesla)
200 MHz -> 4.7 T, 300 MHz -> 7.0 T, 500 MHz -> 11.7 T, 800 MHz -> 18.8 T, 900 MHz -> 21.1 T
Return the Alignment-tensor’s frame Beta angle
Returns the type of paramagnetic effect parsed
Return type: | str |
---|
Returns the dataset (post readlines())
Return type: | list |
---|
Return the Alignment-tensor’s frame Gamma angle
Returns number of models contained in the Bio.PDB structure object
Return type: | int |
---|
Example Usage/Doctests
>>> indat = ['Example', 'pcs', '../tests/STRUCTURES/2AXD.pdb', '../tests/DATASETS/PCS/THETA/DY.npc']
>>> p = ParaParser(indat)
>>> print p.getNumModels()
12
Return the order paramameter
Returns the PDB file parsed
Return type: | str |
---|
Returns the paramagnetic data file parsed
Return type: | str |
---|
Returns the list of ParaData objects (post doParse() call)
Return type: | list |
---|
Return the Alignment-tensor’s Rhombic component in SI units
Returns the Bio.PDB structure object
This structure object is of a Structure/Model/Chain/Residue/Atom architecture.
Return type: | Bio.PDB structure object |
---|
Return the temperature (in Kelvin)
Return all 5 Alignment-tensor parameters
Print all 5 Alignment-tensor parameters
The parsing has failed as the datastructure in the object is empty
Randomly remove ParaData elements from the objects datastructure
The original data structure of ParaData elements is returned
Parameters: |
|
---|
Load a data structure of ParaData elements into the current object
Parameters: |
|
---|
Remove a ParaData element from the datastructure
Parameters: |
|
---|
Pickle (store the entire object state). A way to save sessions
Parameters: |
|
---|
Example Usage/DocTests
>>> import sys
>>> import os
>>> from ParaUtils import loadSession
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTPRECALC', 'pre', '../tests/STRUCTURES/m0.pdb',
... '../tests/DATASETS/PRE/LZIPPER/dummy.npc','-5.559','28.782','3.344',
... '10000000']
>>> pre = PREParser(dataset)
>>> pre.doParse()
>>> calcer = PRE(pre)
>>> av = calcer.calc()
>>> pre.saveSession("test.session")
>>> pre2 = loadSession("test.session")
>>> if pre.getSiteParams().all() != pre2.getSiteParams().all():
... print "Failure!"
Set/Change the Alignment-tensor’s frame Alpha angle
Parameters: |
|
---|
Set/Change the Alignment-tensor’s Axial component [to VVU units]
Parameters: |
|
---|
Set/Change the magnetic field strength (in Tesla)
Parameters: |
|
---|
Set/Change the Alignment-tensor’s frame Beta angle
Parameters: |
|
---|
The calculated values become the experimental values
Set/Change the Alignment-tensor’s frame Gamma angle
Parameters: |
|
---|
Change the model (coordinates) associated with the dataset
Parameters: |
|
---|
Set/Change the order paramameter
Parameters: |
|
---|
Set/Change the PDB file to be parsed
Parameters: |
|
---|
Set/Change the paramagnetic data file to be parsed
Parameters: |
|
---|
Set/Change the Alignment-tensor’s Rhombic component [to VVU units]
Parameters: |
|
---|
Set/Change the temperature (in Kelvin)
Parameters: |
|
---|
Set all 5 X-tensor parameters given an array of such data
Parameters: |
|
---|
Write the data (in the Numbat format) to a user specified file
Parameters: |
|
---|
Example Usage/Doctests:
>>> import sys
>>> import os
>>> sys.path.append(os.path.abspath('.'))
>>> from ParaParser import *
>>> from CalcPara import *
>>> dataset = ['TESTRDCCALC', 'rdc', '../tests/STRUCTURES/2AXD.pdb',
... '../tests/DATASETS/RDC/THETA/DY.zero.npc',
... '37.0', '8.0', '37.0', '119.0', '39.0']
>>> rdc = RDCParser(dataset)
>>> rdc.doParse()
>>> rdc.writeDataSetNumbat('rdc_test.npc')
Data in numbat format written to: rdc_test.npc