本文整理汇总了C++中ConsensusFeature::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ ConsensusFeature::begin方法的具体用法?C++ ConsensusFeature::begin怎么用?C++ ConsensusFeature::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConsensusFeature
的用法示例。
在下文中一共展示了ConsensusFeature::begin方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: hasLowIntensityReporter_
bool IsobaricChannelExtractor::hasLowIntensityReporter_(const ConsensusFeature& cf) const
{
for (ConsensusFeature::const_iterator cf_it = cf.begin();
cf_it != cf.end();
++cf_it)
{
if (cf_it->getIntensity() == 0.0)
{
return true;
}
}
return false;
}
示例2: cons
TEST_EQUAL(ml(c1,c2), 1);
TEST_EQUAL(ml(c2,c1), 0);
TEST_EQUAL(ml(c2,c2), 0);
END_SECTION
START_SECTION((ConsensusFeature& operator=(const ConsensusFeature &rhs)))
ConsensusFeature cons(tmp_feature);
cons.insert(1,tmp_feature);
ConsensusFeature cons_copy;
cons_copy = cons;
TEST_REAL_SIMILAR(cons_copy.getRT(),1.0)
TEST_REAL_SIMILAR(cons_copy.getMZ(),2.0)
TEST_REAL_SIMILAR(cons_copy.getIntensity(),200.0)
TEST_EQUAL((cons_copy.begin())->getMapIndex(),1)
TEST_EQUAL((cons_copy.begin())->getUniqueId(),3)
TEST_EQUAL((cons_copy.begin())->getIntensity(),200)
END_SECTION
START_SECTION((ConsensusFeature(const ConsensusFeature &rhs)))
ConsensusFeature cons(tmp_feature);
cons.insert(1,tmp_feature);
ConsensusFeature cons_copy(cons);
TEST_REAL_SIMILAR(cons_copy.getRT(),1.0)
TEST_REAL_SIMILAR(cons_copy.getMZ(),2.0)
TEST_REAL_SIMILAR(cons_copy.getIntensity(),200.0)
TEST_EQUAL((cons_copy.begin())->getMapIndex(),1)
TEST_EQUAL((cons_copy.begin())->getUniqueId(),3)
示例3: DataValue
//features
TEST_EQUAL(map.size(), 6)
ConsensusFeature cons_feature = map[0];
TEST_REAL_SIMILAR(cons_feature.getRT(), 1273.27)
TEST_REAL_SIMILAR(cons_feature.getMZ(), 904.47)
TEST_REAL_SIMILAR(cons_feature.getIntensity(), 3.12539e+07)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().minPosition()[0], 1273.27)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().maxPosition()[0], 1273.27)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().minPosition()[1], 904.47)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().maxPosition()[1], 904.47)
TEST_REAL_SIMILAR(cons_feature.getIntensityRange().minPosition()[0], 3.12539e+07)
TEST_REAL_SIMILAR(cons_feature.getIntensityRange().maxPosition()[0], 3.12539e+07)
TEST_REAL_SIMILAR(cons_feature.getQuality(), 1.1)
TEST_EQUAL(cons_feature.getMetaValue("peptide_id") == DataValue("RefSeq:NC_1234"), true)
ConsensusFeature::HandleSetType::const_iterator it = cons_feature.begin();
TEST_REAL_SIMILAR(it->getIntensity(), 3.12539e+07)
cons_feature = map[5];
TEST_REAL_SIMILAR(cons_feature.getRT(), 1194.82)
TEST_REAL_SIMILAR(cons_feature.getMZ(), 777.101)
TEST_REAL_SIMILAR(cons_feature.getIntensity(), 1.78215e+07)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().minPosition()[0], 1194.82)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().maxPosition()[0], 1194.82)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().minPosition()[1], 777.101)
TEST_REAL_SIMILAR(cons_feature.getPositionRange().maxPosition()[1], 777.101)
TEST_REAL_SIMILAR(cons_feature.getIntensityRange().minPosition()[0], 1.78215e+07)
TEST_REAL_SIMILAR(cons_feature.getIntensityRange().maxPosition()[0], 1.78215e+07)
TEST_REAL_SIMILAR(cons_feature.getQuality(), 0.0)
it = cons_feature.begin();
TEST_REAL_SIMILAR(it->getIntensity(), 1.78215e+07)