已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
tktcl的scriptUnix系统 电脑资料 我写的用来计算一个二聚体蛋白之间相靠近的tk/tcl的script. 有什么批评和建议请尽管提出来!:) proc Inter_Dist_Cal set di 1Q2W.pdb puts -nonewline Enter PDB file (press d as $di): flush s td out set infile gets stdin if string equa 我写的用来计算一个二聚体蛋白之间相靠近的tk/tcl的script 有什么批评和建议请尽管提出来!:) proc Inter_Dist_Cal set di 1Q2W.pdb puts -nonewline Enter PDB file (press d as $di): flush stdout set infile gets stdin if string equal -nocase $infile d set infile $di set PDBname lindex split $infile . 0 set do1 ($PDBname)All_Inter_Con.txt puts All Inter Contact will be $do1 flush stdout set outfile1 $do1 set do2 ($PDBname)Res_Inter_Con.txt puts Residual Inter Contact will be $do2 flush stdout set outfile2 $do2 set do3 ($PDBname)Num_Res_Inter_Con.txt puts The number of Inter Contact for each Residue will be $do3 flush stdout set outfile3 $do3 set dd 10 puts -nonewline Enter max distance (press d as $dd): flush stdout set indist gets stdin if string equal -nocase $indist d set indist $dd set in open $infile r set n1 0 set n2 0 while gets $in line=0 #set line lindex split $line 0 if (lindex $line 0= )|($line=)|(lindex split lindex $line 0 0=#) if lindex $line 0!=ATOM if lindex $line 4=A set 1id($n1) lindex $line 1 set 1atom($n1) lindex $line 2 set 1resty($n1) lindex $line 3 set 1resno($n1) lindex $line 5 set 1x($n1) lindex $line 6 set 1y($n1) lindex $line 7 set 1z($n1) lindex $line 8 incr n1 if lindex $line 4=B set 2id($n2) lindex $line 1 set 2atom($n2) lindex $line 2 set 2resty($n2) lindex $line 3 set 2resno($n2) lindex $line 5 set 2x($n2) lindex $line 6 set 2y($n2) lindex $line 7 set 2z($n2) lindex $line 8 incr n2 close $in set out1 open $outfile1 w puts $out1 # clock format clock seconds BY lindex exec who end-4 puts $out1 puts $out1 format # %4s %5s %5s - %6s %5s %5s %9s Mol1 Res Atom Mol2 Res Atom Distance puts $out1 for set i 0 incr i for set j 0 incr j if set dis expr pow(pow(x($i)-x($j),2)+pow(y($i)-y($j), 2)+pow(z($i)-z($j),2),0.5)=$indist set fm format %6d %5s %5s - %6d %5s %5s %9.3f resno($i) resty($i) atom($i) resno($j) resty($j) atom($j) $dis puts $out1 $fm set temp1 resno($i) if info exists ACon($temp1) incr ACon($temp1) else set ACon($temp1) 1 set temp2 expr resno($i)*1000+resno($j) if info exists ABCon($temp2) incr ABCon($temp2) else set ABCon($temp2) 1 close $out1 set out2 open $outfile2 w puts $out2 # clock format clock seconds BY lindex exec who end-4 puts $out2 puts $out2 format # %4s %5s %6s %5s %9s Mol1 Res Mol2 Res Contact puts $out2 for set i 0 incr i for set j 0 incr j if info exists ABCon(expr resno($i)*1000+resno($j) set fm format %6d %5s %6d %5s %9d resno($i) resty($i) resno($j) resty($j) $ABCon(expr resno($i)*1000+resno($j) puts $out2 $fm unset ABCon(expr resno($i)*1000+resno($j) close $out2 set out3 open $outfile3 w puts $out3 # clock format clock seconds BY lindex exec who end-4 puts $out3 puts $out3 format # %4s %5s %9s Mol1 Res Contact puts $out3 for set i 0 incr i if info e
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025广西南宁隆安县红十字会招聘公益性岗位工作人员1名考试笔试模拟试题及答案解析
- 2025广西来宾市糖业发展局招聘城镇公益性岗位人员1人笔试考试参考试题及答案解析
- 2025贵州安顺市委社会工作部招聘公益性岗位人员2人考试笔试参考题库附答案解析
- 甘肃省平凉市市直学校招聘2026届国家公费师范生和国家优师计划毕业生37人笔试考试参考试题及答案解析
- 2025福建省翼食荟餐饮管理有限公司及南安市翼融信资产运营有限公司招聘工作人员补充笔试考试参考试题及答案解析
- 2025玉溪市峨山县林业和草原局招聘短期综合应急救援队员(11人)考试笔试模拟试题及答案解析
- 2026长光卫星校园招聘考试笔试参考题库附答案解析
- 2025四川德阳市广汉市事业单位考核招聘6人笔试考试备考试题及答案解析
- 2025上海市保健医疗中心工作人员公开招聘笔试考试参考题库及答案解析
- 2025安徽芜湖红庙镇选拔村级后备干部12人笔试考试参考题库及答案解析
- 铁路工务安全规则试题(含答案)
- 2025广东学法用法考试题目及答案
- 2025四川遂宁发展投资集团有限公司招聘8人笔试参考题库附答案
- 2025年数字金融行业数字金融与金融科技研究报告及未来发展趋势
- 中国马克思主义与当代2024版教材课后思考题答案
- 可复用物品消毒灭菌管理
- 老年人的养老规划方案
- 2025河南郑州巩义市金桥融资担保有限公司招聘3人考试笔试备考题库及答案解析
- 2025江苏农村商业联合银行股份有限公司社会招聘考试笔试参考题库附答案解析
- 房建测量培训教学课件
- 物联网应用技术大学生职业生涯规划书
评论
0/150
提交评论