本文整理汇总了C++中COption::GetData方法的典型用法代码示例。如果您正苦于以下问题:C++ COption::GetData方法的具体用法?C++ COption::GetData怎么用?C++ COption::GetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COption
的用法示例。
在下文中一共展示了COption::GetData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int ArgI, char* ArgC[])
{
COption op;
CRec geneticmap;
for (int i = 0; i != ArgI-1; ++i)
{
if (strcmp(ArgC[i], "-interval") == 0 && i + 2 < ArgI)
{
op.minpos = atoi(ArgC[i+1]);
op.maxpos = atoi(ArgC[i+2]);
}
if (strcmp(ArgC[i], "-include-variant") == 0) op.fn0 = ArgC[i+1];
if (strcmp(ArgC[i], "-exclude-vatiant") == 0) op.fn1 = ArgC[i+1];
if (strcmp(ArgC[i], "-genetic-map") == 0) geneticmap.Init(ArgC[i+1]);
if (strcmp(ArgC[i], "-buffer") == 0) op.intv = atoi(ArgC[i+1]);
if (strcmp(ArgC[i], "-include-sample") == 0) op.GetIncludedSamples(ArgC[i+1]);
if (strcmp(ArgC[i], "-exclude-sample") == 0) op.GetExcludedSamples(ArgC[i+1]);
if (strcmp(ArgC[i], "-output") == 0) op.fnoutput = ArgC[i+1];
}
op.GetData();
CData dhap (&op);
CData dlk (&op);
for (int i = 0; i != ArgI-1; ++i)
{
if (strcmp(ArgC[i], "-hap") == 0) dhap.GetHaplotype(ArgC[i+1]);
if (strcmp(ArgC[i], "-lk") == 0) dlk.GetLK(ArgC[i+1]);
}
dhap.MatchData(dlk.GetSamples());
dhap.CM_Location(geneticmap);
dlk.CM_Location(geneticmap);
dhap.Estimate_Panel_ID(200);
CMCMC mcmc(&dhap, &op, &geneticmap, &dlk);
dlk.Output(op.GetfnOutput());
return 0;
}