| 查看: 351 | 回复: 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();} } |
» 猜你喜欢
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有4人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8 O5 51O 54,科目齐全,可+急
已经有3人回复
基金正文30页指的是报告正文还是整个申请书
已经有4人回复
今年春晚有几个节目很不错,点赞!
已经有6人回复
球磨粉体时遇到了大的问题,请指教!
已经有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();
回复此楼