24小时热门版块排行榜    

查看: 353  |  回复: 1

hfxfroi

新虫 (初入文坛)

[求助] 关于蛋白质检测的一段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();
                }
        }
回复此楼

» 猜你喜欢

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

hfxfroi

新虫 (初入文坛)

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
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hfxfroi 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 南昌大学材料专硕311分求调剂 +6 77chaselx 2026-03-20 6/300 2026-03-21 07:24 by JourneyLucky
[考研] 307求调剂 +3 wyyyqx 2026-03-17 3/150 2026-03-21 03:20 by JourneyLucky
[考研] 085700资源与环境308求调剂 +12 墨墨漠 2026-03-18 13/650 2026-03-21 01:42 by JourneyLucky
[考研] 280求调剂 +7 咕噜晓晓 2026-03-18 8/400 2026-03-21 01:27 by JourneyLucky
[考研] 一志愿华南师大 070300(化学)304分求调剂 +3 0703武芊慧雪304 2026-03-18 3/150 2026-03-21 00:48 by JourneyLucky
[考研] 288求调剂 +16 于海海海海 2026-03-19 16/800 2026-03-20 22:28 by JourneyLucky
[考研] 295材料求调剂,一志愿武汉理工085601专硕 +5 Charlieyq 2026-03-19 5/250 2026-03-20 20:35 by JourneyLucky
[考研] 一志愿 南京航空航天大学大学 ,080500材料科学与工程学硕 +5 @taotao 2026-03-20 5/250 2026-03-20 20:16 by JourneyLucky
[考研] 319求调剂 +3 小力气珂珂 2026-03-20 3/150 2026-03-20 19:47 by JourneyLucky
[考研] 298-一志愿中国农业大学-求调剂 +9 手机用户 2026-03-17 9/450 2026-03-20 14:24 by 无懈可击111
[考研] 招收调剂硕士 +4 lidianxing 2026-03-19 12/600 2026-03-20 12:25 by lidianxing
[考研] 求调剂 +3 暗涌afhb 2026-03-16 3/150 2026-03-20 00:28 by 河南大学校友
[考研] 288求调剂,一志愿华南理工大学071005 +5 ioodiiij 2026-03-17 5/250 2026-03-19 18:22 by zcl123
[考研] 085600材料与化工调剂 324分 +10 llllkkkhh 2026-03-18 12/600 2026-03-19 14:33 by llllkkkhh
[考博] 26博士申请 +3 1042136743 2026-03-17 3/150 2026-03-17 23:30 by 轻松不少随
[考研] 考研求调剂 +3 橘颂. 2026-03-17 4/200 2026-03-17 21:43 by 有只狸奴
[考研] 275求调剂 +4 太阳花天天开心 2026-03-16 4/200 2026-03-17 10:53 by 功夫疯狂
[考研] 283求调剂 +3 听风就是雨; 2026-03-16 3/150 2026-03-17 07:41 by 热情沙漠
[考研] 321求调剂 +5 大米饭! 2026-03-15 5/250 2026-03-16 16:33 by houyaoxu
[考研] 26考研一志愿中国石油大学(华东)305分求调剂 +3 嘉年新程 2026-03-15 3/150 2026-03-15 13:58 by 哈哈哈哈嘿嘿嘿
信息提示
请填处理意见