當前位置: 首頁>>代碼示例>>Python>>正文


Python Relax_data_store.model方法代碼示例

本文整理匯總了Python中data_store.Relax_data_store.model方法的典型用法代碼示例。如果您正苦於以下問題:Python Relax_data_store.model方法的具體用法?Python Relax_data_store.model怎麽用?Python Relax_data_store.model使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在data_store.Relax_data_store的用法示例。


在下文中一共展示了Relax_data_store.model方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: values

# 需要導入模塊: from data_store import Relax_data_store [as 別名]
# 或者: from data_store.Relax_data_store import model [as 別名]
# Set the paramagnetic centre position.
self._execute_uf(uf_name='paramag.centre', pos=[-5, -7, -9])

# Set the number of integration points.
self._execute_uf(uf_name='frame_order.num_int_pts', num=10000)

# Set the real parameter values (the inverted displacement values).
cdp.ave_pos_x = -1
cdp.ave_pos_y = -2
cdp.ave_pos_z = -3
cdp.ave_pos_alpha = 0.14159265359
cdp.ave_pos_beta  = 2.0
cdp.ave_pos_gamma = 2.14159265359

# Set some parameters close to zero, but far enough away from zero to allow for the numerical integration.
cdp.cone_s1 = 0.99
cdp.cone_theta = 0.1
cdp.cone_theta_x = 0.1
cdp.cone_theta_y = 0.1
cdp.cone_sigma_max = 0.1

# Allow for stand-alone operation.
if not hasattr(ds, 'model'):
    ds.model = 'rigid'

# Select the Frame Order model.
self._execute_uf(uf_name='frame_order.select_model', model=ds.model)

# Calculate the chi2 value.
self._execute_uf(uf_name='calc')
開發者ID:belisario21,項目名稱:relax_trunk,代碼行數:32,代碼來源:rigid_test.py

示例2: Relax_data_store

# 需要導入模塊: from data_store import Relax_data_store [as 別名]
# 或者: from data_store.Relax_data_store import model [as 別名]
# relax imports.
from data_store import Relax_data_store; ds = Relax_data_store()
from specific_analyses.setup import n_state_model_obj
from status import Status; status = Status()


# Path of the files.
str_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'structures'+sep+'lactose'
data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'align_data'

# Create the data pipe.
self._execute_uf('lactose', 'N-state', uf_name='pipe.create')

# The population model for free operation of this script.
if not hasattr(ds, 'model'):
    ds.model = 'population'

# Load the structures.
NUM_STR = 4
for i in range(NUM_STR):
    self._execute_uf(uf_name='structure.read_pdb', file='lactose_MCMM4_S1_'+repr(i+1), dir=str_path, set_model_num=i+1, set_mol_name='lactose_MCMM4_S1')

# Set up the 13C and 1H spins information.
self._execute_uf(uf_name='structure.load_spins', spin_id=':[email protected]*', ave_pos=False)
self._execute_uf(uf_name='structure.load_spins', spin_id=':[email protected]*', ave_pos=False)
self._execute_uf(uf_name='spin.isotope', isotope='13C', spin_id='@C*')
self._execute_uf(uf_name='spin.isotope', isotope='1H', spin_id='@H*')

# Deselect the CH2 protons (the rotation of these doesn't work in the model, but the carbon doesn't move).
self._execute_uf(uf_name='deselect.spin', spin_id=':[email protected]')
self._execute_uf(uf_name='deselect.spin', spin_id=':[email protected]')
開發者ID:belisario21,項目名稱:relax_trunk,代碼行數:33,代碼來源:lactose_n_state.py


注:本文中的data_store.Relax_data_store.model方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。