24小时热门版块排行榜    

查看: 2025  |  回复: 6

nufang19a

金虫 (正式写手)


[交流] 【讨论】大家看看我的RMSD图,给些指点,谢谢了 已有3人参与

跑完平衡动力学,在求RMSD for individual residues时发现输出的RMSD图有些诡异,我用的是这个程序:
# % $Id: residue_rmsd.tcl,v 1.4 2006/03/06 23:56:46 timisgro Exp $
proc rmsd_residue_over_time {{mol top} res} {
   
    # use frame 0 for the reference
    set reference [atomselect $mol "protein" frame 0]
    # the frame being compared
    set compare [atomselect $mol "protein"]
    #make a selection with all atoms
    set all [atomselect top all]
    #get the number of frames
    set num_steps [molinfo $mol get numframes]
    #open file for writing
    set fil [open residue_rmsd.dat w]
   
    foreach r $res {
set rmsd($r) 0
    }
   
    #loop over all frames in the trajectory
    for {set frame 0} {$frame < $num_steps} {incr frame} {
puts "Calculating rmsd for frame $frame ..."
# get the correct frame
$compare frame $frame
        $all frame $frame
# compute the transformation
set trans_mat [measure fit $compare $reference]
# do the alignment
$all move $trans_mat

# compute the RMSD
#loop through all residues
foreach r $res {
     set ref [atomselect $mol "protein and resid $r and noh" frame 0]
     set comp [atomselect $mol "protein and resid $r and noh" frame $frame]
     set rmsd($r) [expr $rmsd($r) + [measure rmsd $comp $ref]]
     $comp delete
     $ref delete
}
    }
   
    set ave 0
foreach r $res {
     set rmsd($r) [expr $rmsd($r)/$num_steps]
     # print the RMSD
     puts "RMSD of residue $r is $rmsd($r)"
     puts $fil " $r \t $rmsd($r)"
     set res_b [atomselect $mol "resid $r"]
            $res_b set user $rmsd($r)
            $res_b delete
     set ave [expr $ave + $rmsd($r)]
}

    set ave [expr $ave/[llength $res]]
    puts " Average rmsd per residue:   $ave"
    close $fil
}

大家看看程序的问题吗?还有,之前的任何过程都没出现任何的error。先谢谢各位的指点了。
回复此楼

» 收录本帖的淘帖专辑推荐

分子动力学 MDs-Gromacs gromacs

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

nufang19a

金虫 (正式写手)


是不是我跑平衡动力学时,有些参数设计的不对啊,这是我平衡动力学的参数:
## JOB DESCRIPTION                                         ##
#############################################################
# Minimization and Equilibration of
# Ubiquitin in a Water Box

#############################################################
## ADJUSTABLE PARAMETERS                                   ##
#############################################################
structure          ../common/1kim_wb.psf
coordinates        ../common/1kim_wb.pdb
set temperature    310
set outputname     1kim_wb_eq
firsttimestep      0

#############################################################
## SIMULATION PARAMETERS                                   ##
#############################################################
# Input
paraTypeCharmm     on
parameters          ../common/par_all27_prot_lipid.inp
temperature         $temperature

# Force-Field Parameters
exclude             scaled1-4
1-4scaling          1.0
cutoff              20.
switching           on
switchdist          18.
pairlistdist        22.

# Integrator Parameters
timestep            2.0  ;# 2fs/step
rigidBonds          all  ;# needed for 2fs steps
nonbondedFreq       1
fullElectFrequency  2  
stepspercycle       10

# Constant Temperature Control
langevin            on    ;# do langevin dynamics
langevinDamping     5     ;# damping coefficient (gamma) of 5/ps
langevinTemp        $temperature
langevinHydrogen    off    ;# don't couple langevin bath to hydrogens

# Periodic Boundary Conditions
cellBasisVector1    79.    0.   0.
cellBasisVector2     0.   72.   0.
cellBasisVector3     0.    0.   72.
cellOrigin           0.    0.   0.
wrapAll             on

# PME (for full-system periodic electrostatics)
PME                 yes
PMEGridSizeX        82
PMEGridSizeY        75
PMEGridSizeZ        75

# Constant Pressure Control (variable volume)
useGroupPressure      yes ;# needed for rigidBonds
useFlexibleCell       no
useConstantArea       no
langevinPiston        on
langevinPistonTarget  1.01325 ;#  in bar -> 1 atm
langevinPistonPeriod  100.
langevinPistonDecay   50.
langevinPistonTemp    $temperature

# Output
outputName          $outputname
restartfreq         500     ;# 500steps = every 1ps
dcdfreq             250
xstFreq             250
outputEnergies      100
outputPressure      100

#############################################################
## EXTRA PARAMETERS                                        ##
#############################################################

#############################################################
## EXECUTION SCRIPT                                        ##
#############################################################
# Minimization
minimize            5000
reinitvels          $temperature
run 20000 ;# 5ps
2楼2010-12-15 15:38:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

nufang19a

金虫 (正式写手)


这个是主链的随时RMSD,使用的脚本是:
set outfile [open rmsd.dat w];                                             
set nf [molinfo top get numframes]
set frame0 [atomselect top "protein and backbone and noh" frame 0]
set sel [atomselect top "protein and backbone and noh"]
# rmsd calculation loop
for {set i 1 } {$i < $nf } { incr i } {
    $sel frame $i
    $sel move [measure fit $sel $frame0]
    puts $outfile "$i [measure rmsd $sel $frame0]"
}
close $outfile
3楼2010-12-15 18:04:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zyj8119

木虫 (著名写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
引用回帖:
Originally posted by nufang19a at 2010-12-15 18:04:55:
这个是主链的随时RMSD,使用的脚本是:
set outfile [open rmsd.dat w];                                             
set nf [molinfo top get numframes]
set frame0 [atomselect top "protein and b ...

你用的是什么软件?这个GUI是什么?
好好学习,天天向上。
4楼2010-12-15 18:26:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

nufang19a

金虫 (正式写手)


5楼2010-12-15 18:41:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zh1987hs

金虫 (著名写手)

分子模拟新手

★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
ghcacj(金币+2):谢谢 2010-12-17 12:43:25
引用回帖:
Originally posted by nufang19a at 2010-12-15 18:04:55:
这个是主链的随时RMSD,使用的脚本是:
set outfile [open rmsd.dat w];                                             
set nf [molinfo top get numframes]
set frame0 [atomselect top "protein and b ...

namd为啥不配合VMD使用呢?很方便啊
6楼2010-12-15 22:33:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zyj8119

木虫 (著名写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
引用回帖:
Originally posted by zh1987hs at 2010-12-15 22:33:10:

namd为啥不配合VMD使用呢?很方便啊

正解,我也正在学NAMD。
好好学习,天天向上。
7楼2010-12-15 23:12:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 nufang19a 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 zICmwzsBXjbN 2026-08-29 6/300 2026-08-31 03:16 by hZiFeudZyoGR
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 jCd0dEvKHShX 2026-08-29 5/250 2026-08-31 02:34 by hZiFeudZyoGR
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 jCd0dEvKHShX 2026-08-29 6/300 2026-08-31 02:23 by hZiFeudZyoGR
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 G6APbkg8SA6w 2026-08-29 5/250 2026-08-31 01:51 by hZiFeudZyoGR
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +6 gy1nBQXYQJqL 2026-08-29 8/400 2026-08-31 01:26 by hZiFeudZyoGR
[论文投稿] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +6 gy1nBQXYQJqL 2026-08-29 8/400 2026-08-31 00:54 by hZiFeudZyoGR
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[公派出国] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 4FFAWE8HcgUD 2026-08-29 4/200 2026-08-30 20:21 by hZiFeudZyoGR
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 4FFAWE8HcgUD 2026-08-29 3/150 2026-08-30 20:19 by hZiFeudZyoGR
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +5 gy1nBQXYQJqL 2026-08-29 6/300 2026-08-30 18:17 by hZiFeudZyoGR
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +5 ASdOkHsho7FD 2026-08-28 6/300 2026-08-30 17:25 by hZiFeudZyoGR
[找工作] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 gy1nBQXYQJqL 2026-08-29 8/400 2026-08-30 12:03 by l0VvVHGBGRLv
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +6 gdd2018 2026-08-28 11/550 2026-08-30 08:58 by 超级无敌华子
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
信息提示
请填处理意见