当前位置: 首页>>代码示例>>C++>>正文


C++ DataStore::getCelName方法代码示例

本文整理汇总了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;
}
开发者ID:einon,项目名称:affymetrix-power-tools,代码行数:46,代码来源:ChipStreamDataTransform.cpp


注:本文中的DataStore::getCelName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。