24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 316  |  回复: 0

zhuimeng08

银虫 (正式写手)

[交流] 求大神给出下面脚本语言的解释

求大神给出下面脚本语言的解释,学化学的,看不懂是什么意思!
谢谢!
#set c [measure center $mall]
#set vec [vecinvert $c]
#$mall moveby $vec
set minmax [measure minmax $mall]
set min [lindex $minmax 0]
set max [lindex $minmax 1]
set minx [lindex $min 0]
set miny [lindex $min 1]
set maxx [lindex $max 0]
set maxy [lindex $max 1]

set lipids [atomselect top "resname $LipResName"]
$lipids set segname [$lipids get resid]
set firstLipidSeg [lindex [$lipids get resid] 0]

set protein [atomselect top "not resname $LipResName"]

set Nlip [[atomselect top "name $P_name"] num]
puts "Number of lipids is $Nlip"
# Find number of atoms in one lipid
set lipSize [[atomselect top "resname $LipResName and segname $firstLipidSeg"] num]
puts "Number of atoms in one lipid is $lipSize"
(特别是下面几行,是什么意思)
# Cycle over all lipids
for {set i $firstLipidSeg} {$i<=[expr $firstLipidSeg+$Nlip]} {incr i} {
# How many atoms overlap with protein?
set over [atomselect top "segname $i and ( (x < ($minx + $xn))or (x > ($maxx + $xp)) or (y < ($miny + $yn)) or (y > ($maxy + $yp)))"]
puts "Lipid $i overlap - [$over num] atoms"
if {[$over num] > [expr $lipSize*$remove_crit]} {
  # Mark lipid as bad
  [atomselect top "resname $LipResName and segname $i"] set beta -1
}
}
[atomselect top "beta>=0"] writepdb $ResFile
mol delete all
set id2 [mol new $ResFile]
mol delrep 0 top
(到这里,这是重点部分,谢谢!)
#mol selection "protein"
#mol rep NewCartoon
#mol color colorID 15
#mol addrep top
mol selection "not protein"
mol rep Lines
mol color Name
mol addrep top
回复此楼

» 猜你喜欢

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

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 zhuimeng08 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 280求调剂 +8 咕噜晓晓 2026-04-02 9/450 2026-04-02 16:52 by 1939136013狗壮
[考研] 初试301,代码085701环境工程,本硕一致,四六级已过,有二区一作,共发表5篇论文 +6 axibli 2026-04-01 6/300 2026-04-02 13:42 by Ecowxq666!
[考研] 材料专硕322分 +11 哈哈哈吼吼吼哈 2026-04-01 11/550 2026-04-02 10:52 by lnilvy
[考研] 材料考研调剂 +9 Gs大王 2026-04-02 9/450 2026-04-02 10:24 by olim
[考研] 286求调剂 +5 Sa67890. 2026-04-01 7/350 2026-04-01 19:50 by 6781022
[考研] 调剂 +3 好好读书。 2026-04-01 3/150 2026-04-01 17:06 by zhouyuwinner
[考研] 省双一流重点一本大学招收调剂 +4 wwwwffffff 2026-03-31 7/350 2026-04-01 15:23 by wwwwffffff
[考研] 一志愿 南京航空航天大学 ,080500材料科学与工程学硕 +7 @taotao 2026-03-30 7/350 2026-04-01 14:30 by chenqifeng666
[考研] 322求调剂 +8 三水sss 2026-04-01 8/400 2026-04-01 10:19 by 唐沐儿
[考研] 一志愿哈尔滨工业大学材料与化工方向336分 +13 辰沐5211314 2026-03-26 13/650 2026-03-31 14:37 by 记事本2026
[考研] 求调剂 +8 11ggg 2026-03-30 8/400 2026-03-31 13:56 by nanaliuyun
[考研] 本科211安全工程,初试290分,求调剂 +3 2719846834 2026-03-28 3/150 2026-03-31 13:52 by 热情沙漠
[考研] 266求调剂 +3 哇呼哼呼哼 2026-03-29 3/150 2026-03-31 10:06 by cal0306
[考研] 085600,专业课化工原理,320分求调剂 +6 大馋小子 2026-03-29 6/300 2026-03-31 10:03 by 氯化亚硝酰
[考研] 一志愿食品科学与工程083200求调剂 +4 XQTJZ 2026-03-30 4/200 2026-03-31 04:10 by fmesaito
[考研] 296求调剂 +10 彼岸t 2026-03-29 10/500 2026-03-30 10:50 by 探123
[考研] 298求调剂 +3 种圣赐 2026-03-29 3/150 2026-03-29 12:06 by longlotian
[考研] 11408软件工程求调剂 +3 Qiu学ing 2026-03-28 3/150 2026-03-28 21:50 by zhq0425
[考研] 265求调剂 +8 小木虫085600 2026-03-27 8/400 2026-03-27 22:16 by 无际的草原
[考研] 266求调剂 +11 阳阳哇塞 2026-03-27 12/600 2026-03-27 17:56 by yu221
信息提示
请填处理意见