The ParaData module is a data paramagentic data type. It stores:
- Spin type: The atom identifier for which the paramagnetic effect has been measured
- Spin id: The residue number for which the above atom identifier corresponds to
- Experimental value: The experimentally determined value of the paramagnetic effect
- The spin coordinates: The x,y,z components for the spin for which the experimental value is measured
All this data is extracted from the input Numbat-like formatted file and PDB file.
Note
The most important step for succesful operation of pyParaTools is the correct preparation of the input Numbat-like and PDB files. Numbering and atom indentifiers must be consitent between the two files.
Storage and access to experimental PCS data and associated coordinates
A PCS data container. Paramagnetic effect type will be pcs
Parameters: |
|
---|
:type useFit : boolean
Example Usage/Doctests
>>> # This tests all getter/setter methods. As a result of inheritence
>>> # these tests should sufficiently cover the ParaData base class
>>> # the PCS and PRE classes. RDC will require some additional testing!
>>> import sys
>>> import os
>>> from numpy import *
>>> sys.path.append(os.path.abspath('.'))
>>> st = 'HN'
>>> rid = 2
>>> epcs = 1.03
>>> etol = 0.1
>>> cxyz = [1.003, 10.819, -11.530]
>>> cxyz = array(cxyz)
>>> dat = PCSData(st,rid,epcs,etol,cxyz)
>>> # Check
>>> dat.getCVal(), dat.getCoord()
(0.0, array([ 1.003, 10.819, -11.53 ]))
>>> dat.getCoordx(), dat.getCoordy(), dat.getCoordz()
(1.0029999999999999, 10.819000000000001, -11.529999999999999)
>>> dat.getId(), dat.getName(), dat.getTol(),dat.getType(), dat.getVal()
(2, 'HN', 0.10000000000000001, 'pcs', 1.03)
>>> #Update, check
>>> dat.setCVal(6.73)
>>> ncxyz = -100.000, 0.000, 8.000
>>> ncxyz = array(ncxyz)
>>> dat.setCoord(ncxyz)
>>> dat.setId(98)
>>> dat.setName('C')
>>> dat.setTol(0.5)
>>> dat.setVal(6.73)
>>> # Check
>>> dat.getCVal(), dat.getCoord()
(6.7300000000000004, array([-100., 0., 8.]))
>>> dat.getCoordx(), dat.getCoordy(), dat.getCoordz()
(-100.0, 0.0, 8.0)
>>> dat.getId(), dat.getName(), dat.getTol(),dat.getType(), dat.getVal()
(98, 'C', 0.5, 'pcs', 6.7300000000000004)
Returns the calculated value assigned to this spin
Until a calculation by a Calcer, this value will be 0.0
Returns the coordinates (x,y,z) assigned to this spin
Returns the x coordinate assigned to this spin
Returns the y coordinate assigned to this spin
Returns the z coordinate assigned to this spin
Returns the residue number assigned to this spin
Returns the spin type (atom identifier) assigned to this spin
Returns the experimental tolerance assigned to this spin
Returns the paramagnetic type assigned to this spin
Can be: unknown, pcs, pre, or rdc
Return the the useFit state
Returns the experimental value assigned to this spin
Sets the calculated value assigned to this spin
Parameters: |
|
---|
Update the coordinates of the spin
Parameters: |
|
---|
Update the x coordinate of the spin
Parameters: |
|
---|
Update the y coordinate of the spin
Parameters: |
|
---|
Update the z coordinate of the spin
Parameters: |
|
---|
Update the residue id
Parameters: |
|
---|
Update the spin type
Parameters: |
|
---|
Update the experimental tolerance
Parameters: |
|
---|
Alter the useFit state, Only 0 (use) or 1 (do not use) are possible.
Parameters: |
|
---|
Update the experimental value
Parameters: |
|
---|
Storage and access to experimental PRE data and associated coordinates
A PRE data container. Paramagnetic effect type will be pre
Parameters: |
|
---|
:type useFit : boolean
Example Usage/Doctests
>>> # For more comprehensive testing see PCSData
>>> import sys
>>> import os
>>> from numpy import *
>>> sys.path.append(os.path.abspath('.'))
>>> st = 'C'
>>> rid = 100
>>> epcs = 0.01
>>> etol = 0.03
>>> cxyz = [99.000, -100.819, -0.830]
>>> cxyz = array(cxyz)
>>> dat = PREData(st,rid,epcs,etol,cxyz)
>>> dat.getType() == 'pre'
True
Returns the calculated value assigned to this spin
Until a calculation by a Calcer, this value will be 0.0
Returns the coordinates (x,y,z) assigned to this spin
Returns the x coordinate assigned to this spin
Returns the y coordinate assigned to this spin
Returns the z coordinate assigned to this spin
Returns the residue number assigned to this spin
Returns the spin type (atom identifier) assigned to this spin
Returns the experimental tolerance assigned to this spin
Returns the paramagnetic type assigned to this spin
Can be: unknown, pcs, pre, or rdc
Return the the useFit state
Returns the experimental value assigned to this spin
Sets the calculated value assigned to this spin
Parameters: |
|
---|
Update the coordinates of the spin
Parameters: |
|
---|
Update the x coordinate of the spin
Parameters: |
|
---|
Update the y coordinate of the spin
Parameters: |
|
---|
Update the z coordinate of the spin
Parameters: |
|
---|
Update the residue id
Parameters: |
|
---|
Update the spin type
Parameters: |
|
---|
Update the experimental tolerance
Parameters: |
|
---|
Alter the useFit state, Only 0 (use) or 1 (do not use) are possible.
Parameters: |
|
---|
Update the experimental value
Parameters: |
|
---|
Provides storage and access to experimental data and coordinates
Base class of paramagnetic data type. Paramagnetic effect type will be unknown
Parameters: |
|
---|
:type useFit : boolean (0 = yes, 1 = no)
Example Usage/Doctests
>>> # For more comprehensive testing see PCSData
>>> import sys
>>> import os
>>> from numpy import *
>>> sys.path.append(os.path.abspath('.'))
>>> st = 'C'
>>> rid = 100
>>> epcs = 0.01
>>> etol = 0.03
>>> cxyz = [99.000, -100.819, -0.830]
>>> cxyz = array(cxyz)
>>> dat = ParaData(st,rid,epcs,etol,cxyz)
>>> dat.getType() == 'unknown'
True
Returns the calculated value assigned to this spin
Until a calculation by a Calcer, this value will be 0.0
Returns the coordinates (x,y,z) assigned to this spin
Returns the x coordinate assigned to this spin
Returns the y coordinate assigned to this spin
Returns the z coordinate assigned to this spin
Returns the residue number assigned to this spin
Returns the spin type (atom identifier) assigned to this spin
Returns the experimental tolerance assigned to this spin
Returns the paramagnetic type assigned to this spin
Can be: unknown, pcs, pre, or rdc
Return the the useFit state
Returns the experimental value assigned to this spin
Sets the calculated value assigned to this spin
Parameters: |
|
---|
Update the coordinates of the spin
Parameters: |
|
---|
Update the x coordinate of the spin
Parameters: |
|
---|
Update the y coordinate of the spin
Parameters: |
|
---|
Update the z coordinate of the spin
Parameters: |
|
---|
Update the residue id
Parameters: |
|
---|
Update the spin type
Parameters: |
|
---|
Update the experimental tolerance
Parameters: |
|
---|
Alter the useFit state, Only 0 (use) or 1 (do not use) are possible.
Parameters: |
|
---|
Update the experimental value
Parameters: |
|
---|
Storage and access to experimental RDC data and associated coordinates
A RDC data container. Paramagnetic effect type will be rdc
Parameters: |
|
---|
:type useFit : boolean
Example Usage/Doctests
>>> # This tests all getter/setter methods. As a result of inheritence
>>> # these tests should sufficiently cover the ParaData base class
>>> # the PCS and PRE classes. RDC will require some additional testing!
>>> import sys
>>> import os
>>> from numpy import *
>>> sys.path.append(os.path.abspath('.'))
>>> st1 = 'H'
>>> st2 = 'N'
>>> rid = 21
>>> erdc = 5.5
>>> etol = 0.5
>>> cxyz1 = [1., 10., -11.]
>>> cxyz1 = array(cxyz1)
>>> cxyz2 = [2., 11., -10.]
>>> cxyz2 = array(cxyz2)
>>> dat = RDCData(st1,rid,erdc,etol,cxyz1, st2, cxyz2)
>>> # Check
>>> dat.getCVal(), dat.getCoord()
(0.0, (array([ 1., 10., -11.]), array([ 2., 11., -10.])))
>>> dat.getCoordx(), dat.getCoordy(), dat.getCoordz()
((1.0, 2.0), (10.0, 11.0), (-11.0, -10.0))
>>> dat.getId(), dat.getName(), dat.getTol(),dat.getType(), dat.getVal()
(21, 'HN', 0.5, 'rdc', 5.5)
>>> #Update, check
>>> dat.setCVal(6.)
>>> ncxyz = -100., 0., 8.
>>> ncxyz = array(ncxyz)
>>> dat.setCoord(ncxyz)
>>> dat.setId(98)
>>> dat.setName('C')
>>> dat.setTol(0.5)
>>> dat.setVal(6.73)
>>> # Check
>>> dat.getCVal(), dat.getCoord()
(6.0, (array([-100., 0., 8.]), array([ 2., 11., -10.])))
>>> dat.getCoordx(), dat.getCoordy(), dat.getCoordz()
((-100.0, 2.0), (0.0, 11.0), (8.0, -10.0))
>>> dat.getId(), dat.getName(), dat.getTol(),dat.getType(), dat.getVal()
(98, 'CN', 0.5, 'rdc', 6.7300000000000004)
>>> dat.getUseFit()
0
>>> dat.setUseFit(2)
Only 0 or 1 are supported
>>> dat.setUseFit(1)
>>> dat.getUseFit()
1
Returns the calculated value assigned to this spin
Until a calculation by a Calcer, this value will be 0.0
Returns the coordinates of both spins in the coupling
Returns the x coordinates of both spins in the coupling
Returns the y coordinates of both spins in the coupling
Returns the z coordinates of both spins in the coupling
Returns the residue number assigned to this spin
Return the coupling type (concatenate the two spin identifiers)
Returns the experimental tolerance assigned to this spin
Returns the paramagnetic type assigned to this spin
Can be: unknown, pcs, pre, or rdc
Return the the useFit state
Returns the experimental value assigned to this spin
Sets the calculated value assigned to this spin
Parameters: |
|
---|
Update the coordinates of the spin
Parameters: |
|
---|
Update the coordinates for the second spin
Parameters: |
|
---|
Update the x coordinate for the second spin
Parameters: |
|
---|
Update the y coordinate for the second spin
Parameters: |
|
---|
Update the z coordinate for the second spin
Parameters: |
|
---|
Update the x coordinate of the spin
Parameters: |
|
---|
Update the y coordinate of the spin
Parameters: |
|
---|
Update the z coordinate of the spin
Parameters: |
|
---|
Update the residue id
Parameters: |
|
---|
Update the spin type
Parameters: |
|
---|
Update the spin type for the second spin
Parameters: |
|
---|
Update the experimental tolerance
Parameters: |
|
---|
Alter the useFit state, Only 0 (use) or 1 (do not use) are possible.
Parameters: |
|
---|
Update the experimental value
Parameters: |
|
---|