本文整理汇总了C++中GenericDataHeader类的典型用法代码示例。如果您正苦于以下问题:C++ GenericDataHeader类的具体用法?C++ GenericDataHeader怎么用?C++ GenericDataHeader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GenericDataHeader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetDataTypeId
void CDFData::SetDataTypeId(CDFDataTypeIds p, int32_t probesetCnt)
{
GenericDataHeader* gPtr = genericData.Header().GetGenericDataHdr();
std::string typeId;
std::wstring groupName;
if(p == Expression)
{
typeId = AFFY_EXPR_PS;
groupName = CDF_PS_GROUP_LBL;
}
else if(p == Genotyping)
{
typeId = AFFY_GENO_PS;
groupName = CDF_PS_GROUP_LBL;
}
else if(p == Tag)
{
typeId = AFFY_TAG_PS;
groupName = CDF_PS_GROUP_LBL;
}
else if(p == Resequencing)
{
typeId = AFFY_RESEQ_PS;
groupName = CDF_PS_GROUP_LBL;
}
else
{
typeId = AFFY_CNTRL_PS;
groupName = CDF_QC_GROUP_LBL;
}
gPtr->SetFileTypeId(typeId);
CreateDataGroups(groupName, probesetCnt);
}
示例2:
void CDFData::SetUInt32ToGenericHdr(const std::wstring& name, u_int32_t value)
{
ParameterNameValueType paramType;
paramType.SetName(name);
paramType.SetValueUInt32(value);
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
hdr->AddNameValParam(paramType);
}
示例3: SetWStringToGenericHdr
void CHPQuantificationData::SetWStringToGenericHdr(const std::wstring& name, const std::wstring value, int32_t reserve)
{
ParameterNameValueType paramType;
paramType.SetName(name);
paramType.SetValueText(value, reserve);
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
hdr->AddNameValParam(paramType);
}
示例4: SetFloatToGenericHdr
void CHPData::SetFloatToGenericHdr(const std::wstring& name, float value)
{
ParameterNameValueType paramType;
paramType.SetName(name);
paramType.SetValueFloat(value);
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
hdr->AddNameValParam(paramType);
}
示例5: SetRefSequence
void CDFData::SetRefSequence(const std::string &seq)
{
GenericDataHeader* gPtr = genericData.Header().GetGenericDataHdr();
ParameterNameValueType paramType;
paramType.SetName(CDF_REFSEQ_PARAM);
paramType.SetValueAscii(seq);
gPtr->AddNameValParam(paramType);
}
示例6: GetAlgParam
ParameterNameValueType CHPData::GetAlgParam(const std::wstring& tag)
{
std::wstring name = ALGORITHM_PARAM_NAME_PREFIX_S + tag;
ParameterNameValueType paramType;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
hdr->FindNameValParam(name, paramType);
ParameterNameValueType type = paramType;
type.SetName(tag);
return type;
}
示例7: GetChipSum
ParameterNameValueType CHPData::GetChipSum(const std::wstring& tag)
{
std::wstring name = CHIP_SUMMARY_PARAMETER_NAME_PREFIX_S + tag;
ParameterNameValueType paramType;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
hdr->FindNameValParam(name, paramType);
ParameterNameValueType type = paramType;
type.SetName(tag);
return type;
}
示例8: AddAppMetaInfo
void CHPMultiDataData::AddAppMetaInfo(const ParameterNameValueTypeList& params)
{
ParameterNameValueType param;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
for (ParameterNameValueTypeList::const_iterator it=params.begin(); it != params.end(); ++it)
{
param = *it;
param.SetName(APPLICATION_META_INFO_PREFIX_S + param.GetName());
hdr->AddNameValParam(param);
}
}
示例9:
int32_t CHPData::GetInt32FromGenericHdr(const std::wstring& name)
{
int32_t result = 0;
ParameterNameValueType paramType;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
if (hdr->FindNameValParam(name, paramType))
{
result = paramType.GetValueInt32();
}
return result;
}
示例10: AddAlgParams
void CHPMultiDataData::AddAlgParams(const ParameterNameValueTypeList& params)
{
ParameterNameValueType param;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
for (ParameterNameValueTypeList::const_iterator it=params.begin(); it != params.end(); it++)
{
param = *it;
param.SetName(ALGORITHM_PARAM_NAME_PREFIX_S + param.GetName());
hdr->AddNameValParam(param);
}
}
示例11: AddSummaryParams
void CHPQuantificationData::AddSummaryParams(const ParameterNameValueTypeList& params)
{
ParameterNameValueType param;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
for (ParameterNameValueTypeList::const_iterator it=params.begin(); it != params.end(); it++)
{
param = *it;
param.SetName(CHIP_SUMMARY_PARAMETER_NAME_PREFIX_S + param.GetName());
hdr->AddNameValParam(param);
}
}
示例12: GetWStringFromGenericHdr
std::wstring CHPQuantificationData::GetWStringFromGenericHdr(const std::wstring& name)
{
std::wstring result;
ParameterNameValueType paramType;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
if (hdr->FindNameValParam(name, paramType))
{
result = paramType.GetValueText();
}
return result;
}
示例13: GetRefSequence
std::string CDFData::GetRefSequence()
{
std::string result;
ParameterNameValueType paramType;
GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
if (hdr->FindNameValParam(CDF_REFSEQ_PARAM, paramType))
{
result = paramType.GetValueAscii();
}
return result;
}
示例14: GetDatHeader
std::wstring CalvinCELDataAdapter::GetDatHeader()
{
std::wstring datHeader;
//GenDataHdrVectorIt begin, end;
GenericDataHeader* gdh = calvinCel.GetFileHeader()->GetGenericDataHdr()->FindParent(SCAN_ACQUISITION_DATA_TYPE);
if (gdh)
{
// found the right header, now look for the parameter
ParameterNameValueType nvt;
if (gdh->FindNameValParam(DAT_HEADER_PARAM_NAME, nvt))
{
if (nvt.GetParameterType() == ParameterNameValueType::TextType)
datHeader = nvt.GetValueText();
}
else if (gdh->FindNameValParam(PARTIAL_DAT_HEADER_PARAM_NAME, nvt))
{
if (nvt.GetParameterType() == ParameterNameValueType::TextType)
{
std::wstring partialDatHeader = nvt.GetValueText();
u_int16_t min = 0;
u_int16_t max = 0;
// Find the max and min parameters and append to the string.
if (gdh->FindNameValParam(MAX_PIXEL_INTENSITY_PARAM_NAME, nvt))
{
if (nvt.GetParameterType() == ParameterNameValueType::UInt16Type)
max = nvt.GetValueUInt16();
}
if (gdh->FindNameValParam(MIN_PIXEL_INTENSITY_PARAM_NAME, nvt))
{
if (nvt.GetParameterType() == ParameterNameValueType::UInt16Type)
min = nvt.GetValueUInt16();
}
wchar_t buf[30]=L"";
FormatString2(buf, 30, L"[%d..%d]", min, max);
datHeader = buf;
datHeader += partialDatHeader;
}
}
}
return datHeader;
}
示例15: data
void TestFileGenerator::WriteSmallCelFileWithAPartialDatHeaderTest()
{
CelFileData data("small_cel_file_partial_datheader");
// Write
ParameterNameValueType nvt;
GenericDataHeader datHdr;
datHdr.SetFileId(AffymetrixGuid::GenerateNewGuid());
datHdr.SetFileTypeId("affymetrix-calvin-scan-acquisition");
datHdr.SetFileCreationTime(L"2004-07-01T13:14:15Z");
nvt.SetName(L"affymetrix-partial-dat-header");
std::wstring datHeaderString = L" small_cel_file_partial_datheader:CLS=25 RWS=25 XIN=1 YIN=1 VE=0 0 05/19/05 02:45:59 ScannerID: ScannerTyp \x14 \x14 Hg-Small.1sq \x14 \x14 \x14 \x14 \x14 570 \x14 45.200001 \x14 0.340000 \x14 1.0900 \x14 3";
nvt.SetValueText(datHeaderString);
datHdr.AddNameValParam(nvt);
nvt.SetName(L"affymetrix-max-pixel-intensity");
nvt.SetValueUInt16(46001);
datHdr.AddNameValParam(nvt);
nvt.SetName(L"affymetrix-min-pixel-intensity");
nvt.SetValueUInt16(1);
datHdr.AddNameValParam(nvt);
// Add DAT GenericDataHeader as parent.
data.GetFileHeader()->GetGenericDataHdr()->AddParent(datHdr);
WriteRemaingSmallCelFileWithGridParameters(data);
}