| 查看: 353 | 回复: 1 | ||
[求助]
关于蛋白质检测的一段C++程序
|
|
下边是程序的一部分,请问大神能不能讲解一下。。。(下边是对蛋白质β折叠的结构检测算法程序) char sheet = ' '; if (residue.GetSheet() != 0) sheet = 'A' + (residue.GetSheet() - 1) % 26; string NHO[2], ONH[2]; const HBond* acceptors = residue.Acceptor(); const HBond* donors = residue.Donor(); for (uint32 i = 0; i < 2; ++i) { NHO = ONH = "0, 0.0"; if (acceptors.residue != nullptr) { int32 d = acceptors.residue->GetNumber() - residue.GetNumber(); NHO = (boost::format("%d,%3.1f" % d % acceptors.energy).str();} if (donors.residue != nullptr) { int32 d = donors.residue->GetNumber() - residue.GetNumber(); ONH = (boost::format("%d,%3.1f" % d % donors.energy).str();} } |
» 猜你喜欢
336求调剂
已经有3人回复
286求调剂
已经有3人回复
一志愿华中科技大学071000,求调剂
已经有3人回复
279分求调剂 一志愿211
已经有14人回复
332求调剂
已经有3人回复
0856材料专硕353求调剂
已经有3人回复
材料学学硕080502 337求调剂-一志愿华中科技大学
已经有5人回复
085601调剂 358分
已经有4人回复
0856 271求调剂
已经有3人回复
能源材料化学课题组招收硕士研究生8-10名
已经有15人回复
|
char sheet = ' '; if (residue.GetSheet() != 0) sheet = 'A' + (residue.GetSheet() - 1) % 26; string NHO[2], ONH[2]; const HBond* acceptors = residue.Acceptor(); const HBond* donors = residue.Donor(); for (uint32 i = 0; i < 2; ++i) { NHO = ONH = "0, 0.0"; if (acceptors.residue != nullptr) { int32 d = acceptors.residue->GetNumber() - residue.GetNumber(); NHO = (boost::format("%d,%3.1f" % d % acceptors.energy).str();} if (donors.residue != nullptr) { int32 d = donors.residue->GetNumber() - residue.GetNumber(); ONH = (boost::format("%d,%3.1f" % d % donors.energy).str();} } |
2楼2017-03-03 10:35:53













% d % acceptors.energy).str();
回复此楼