本文整理汇总了C++中DataStore::getCelName方法的典型用法代码示例。如果您正苦于以下问题:C++ DataStore::getCelName方法的具体用法?C++ DataStore::getCelName怎么用?C++ DataStore::getCelName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataStore
的用法示例。
在下文中一共展示了DataStore::getCelName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: transformData
bool ChipStreamDataTransform::transformData(PsBoard &board, const DataStore &in, DataStore &out) {
bool needTwoPass = false;
if((InstanceOf(m_ChipStream, SketchQuantNormTran) && board.getOptions()->getOpt("target-sketch").empty()) ||
InstanceOf(m_ChipStream, ArtifactReduction)) {
Verbose::out(1, "Doing two passes.");
needTwoPass = true;
}
/* Send the chip data through the chipstream object. */
int numDataSets = in.getCelDataSetCount();
Verbose::progressBegin(1, ToStr("Processing Chips"), numDataSets, 1, numDataSets);
std::vector<float> data;
for(int chipIx = 0; chipIx < in.getCelDataSetCount(); chipIx++) {
Verbose::progressStep(1);
data.clear();
// Verbose::out(3, "Reading " + m_ChipStream->getDocName() + " for chip: " + ToStr(chipIx));
in.fillInCelData(chipIx, data);
m_ChipStream->newChip(data);
if(!needTwoPass) {
for(int probeIx = 0; probeIx < data.size(); probeIx++) {
data[probeIx] = m_ChipStream->transform(probeIx, chipIx, data[probeIx], board);
}
out.writeColumn(chipIx, in.getCelName(chipIx), data);
}
}
Verbose::progressEnd(1, ToStr("Done."));
if(needTwoPass) {
m_ChipStream->finishedChips();
Verbose::progressBegin(1, ToStr("Processing Stage Two Chips"), numDataSets, 1, numDataSets);
/* Do the chipstream transformation and store the new intensities. */
for(int chipIx = 0; chipIx < in.getCelDataSetCount(); chipIx++) {
Verbose::progressStep(1);
// Verbose::out(3, "Applying " + m_ChipStream->getDocName() + " to chip: " + ToStr(chipIx));
std::vector<float> data;
in.fillInCelData(chipIx, data);
for(int probeIx = 0; probeIx < data.size(); probeIx++) {
data[probeIx] = m_ChipStream->transform(probeIx, chipIx, data[probeIx]);
}
out.writeColumn(chipIx, in.getCelName(chipIx), data);
}
Verbose::progressEnd(1, ToStr("Done."));
}
return true;
}