24小时热门版块排行榜    

查看: 346  |  回复: 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 的主题更新
信息提示
请填处理意见