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


C++ DataSetHeader::AddUnicodeColumn方法代码示例

本文整理汇总了C++中DataSetHeader::AddUnicodeColumn方法的典型用法代码示例。如果您正苦于以下问题:C++ DataSetHeader::AddUnicodeColumn方法的具体用法?C++ DataSetHeader::AddUnicodeColumn怎么用?C++ DataSetHeader::AddUnicodeColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataSetHeader的用法示例。


在下文中一共展示了DataSetHeader::AddUnicodeColumn方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CreateContentsGroup

void CDFData::CreateContentsGroup(const std::wstring& p, int32_t probesetCnt)
{
	DataGroupHeader c(p);
	DataSetHeader dp;
	dp.SetRowCnt(probesetCnt);
	dp.SetName(p);
	dp.AddUnicodeColumn(L"", MAX_CDF_PROBE_SET_NAME_LENGTH);
	dp.AddIntColumn(L"");
	c.AddDataSetHdr(dp);
	genericData.Header().AddDataGroupHdr(c);
}
开发者ID:HenrikBengtsson,项目名称:Affx-Fusion-SDK,代码行数:11,代码来源:CDFData.cpp

示例2: AddColumns


//.........这里部分代码省略.........

    case SegmentNormalDiploidMultiDataType:
		hdr.AddUIntColumn(SEGMENT_ID);
		hdr.AddUByteColumn(CHR);
		hdr.AddUIntColumn(START_POSITION);
		hdr.AddUIntColumn(STOP_POSITION);
		hdr.AddIntColumn(MARKER_COUNT);
		hdr.AddUIntColumn(MEAN_MARKER_DISTANCE);
        break;

    case SegmentNoCallMultiDataType:
		hdr.AddUIntColumn(SEGMENT_ID);
		hdr.AddUByteColumn(CHR);
		hdr.AddUIntColumn(START_POSITION);
		hdr.AddUIntColumn(STOP_POSITION);
		hdr.AddIntColumn(MARKER_COUNT);
		hdr.AddUIntColumn(MEAN_MARKER_DISTANCE);
        break;

    case SegmentMosaicismMultiDataType:
		hdr.AddUIntColumn(SEGMENT_ID);
		hdr.AddUByteColumn(CHR);
		hdr.AddUIntColumn(START_POSITION);
		hdr.AddUIntColumn(STOP_POSITION);
		hdr.AddIntColumn(MARKER_COUNT);
		hdr.AddUIntColumn(MEAN_MARKER_DISTANCE);
        break;

    case SegmentGenotypeConcordanceMultiDataType:
    case SegmentGenotypeDiscordanceMultiDataType:
    case SegmentCNLossLOHConcordanceMultiDataType:
    case SegmentCNNeutralLOHConcordanceMultiDataType:
    case SegmentHeteroUPDMultiDataType:
    case SegmentIsoUPDMultiDataType:
    case SegmentDenovoCopyNumberMultiDataType:
    case SegmentHemizygousParentOfOriginMultiDataType:
		hdr.AddUIntColumn(SEGMENT_ID);
		hdr.AddUIntColumn(REFERENCE_SAMPLE_KEY);
		hdr.AddUIntColumn(FAMILIAL_SAMPLE_KEY);
		hdr.AddUByteColumn(CHR);
		hdr.AddUIntColumn(START_POSITION);
		hdr.AddUIntColumn(STOP_POSITION);
		hdr.AddUByteColumn(CALL);
		hdr.AddFloatColumn(CONFIDENCE);
        hdr.AddIntColumn(MARKER_COUNT);
		hdr.AddFloatColumn(HOMOZYGOSITY);
		hdr.AddFloatColumn(HETEROZYGOSITY);
        break;

	case FamilialSegmentOverlapsMultiDataType:
        hdr.AddAsciiColumn(SEGMENT_TYPE, info.maxSegmentType);
        hdr.AddUIntColumn(REFERENCE_SAMPLE_KEY);
        hdr.AddAsciiColumn(REFERENCE_SEGMENT_ID, info.maxReferenceSegmentID);
        hdr.AddUIntColumn(FAMILIAL_SAMPLE_KEY);
        hdr.AddAsciiColumn(FAMILIAL_SEGMENT_ID, info.maxFamilialSegmentID);
        break;

	case FamilialSamplesMultiDataType:
		hdr.AddUIntColumn(SAMPLE_KEY);
		hdr.AddAsciiColumn(ARRID, info.maxFamilialARRID);
		hdr.AddAsciiColumn(CHPID, info.maxFamilialCHPID);
		hdr.AddUnicodeColumn(CHP_FILENAME, info.maxFamilialCHPFile);
		hdr.AddAsciiColumn(ROLE, info.maxFamilialRole);
		hdr.AddUByteColumn(ROLE_VALIDITY);
		hdr.AddFloatColumn(ROLE_CONFIDENCE);
		break;

	case AllelePeaksMultiDataType:
		hdr.AddAsciiColumn(PROBE_SET_NAME, info.maxName);
		hdr.AddUByteColumn(CHR);
		hdr.AddUIntColumn(POSITION);
		break;

	case MarkerABSignalsMultiDataType:
		hdr.AddUIntColumn(PROBE_SET_INDEX);
		/*hdr.AddFloatColumn(A_SIGNAL);
		hdr.AddFloatColumn(B_SIGNAL);
		hdr.AddFloatColumn(SCAR);*/
		break;

	case CytoGenotypeCallMultiDataType:
		hdr.AddUIntColumn(PROBE_SET_INDEX);
		hdr.AddByteColumn(CALL);
		hdr.AddFloatColumn(CONFIDENCE);
		hdr.AddByteColumn(FORCE);
		hdr.AddFloatColumn(A_SIGNAL);
		hdr.AddFloatColumn(B_SIGNAL);
		hdr.AddFloatColumn(SIGNAL_STRENGTH);
		hdr.AddFloatColumn(CONTRAST);
		break;

	default:
		break;
	}

	for (vector<ColumnInfo>::iterator it=info.metricColumns.begin(); it!=info.metricColumns.end(); ++it)
	{
		hdr.AddColumn(*it);
	}
}
开发者ID:HenrikBengtsson,项目名称:Affx-Fusion-SDK,代码行数:101,代码来源:CHPMultiDataData.cpp

示例3: CreateReferenceFile

void DataSetUpdaterTest::CreateReferenceFile()
{
	// Create the data object.
	GenericData data;
	data.Header().SetFilename(TEST_FILE);

	DataGroupHeader dgHdr(L"data");
	DataSetHeader dsHdr;

	dsHdr.SetName(L"test");
	dsHdr.AddAsciiColumn(L"string8", 64);
	dsHdr.AddUnicodeColumn(L"string16", 64);
	dsHdr.AddByteColumn(L"int8");
	dsHdr.AddShortColumn(L"int16");
	dsHdr.AddIntColumn(L"int32");
	dsHdr.AddUByteColumn(L"uint8");
	dsHdr.AddUShortColumn(L"uint16");
	dsHdr.AddUIntColumn(L"uint32");
	dsHdr.AddFloatColumn(L"float");
	dsHdr.SetRowCnt(3);

	dgHdr.AddDataSetHdr(dsHdr);

	data.Header().AddDataGroupHdr(dgHdr);
	data.Header().GetGenericDataHdr()->SetFileTypeId("affymetrix.test.data");



	// Write the data object to the file
	GenericFileWriter writer(&data.Header());
	writer.WriteHeader();

	DataGroupWriter &dataGroupWriter = writer.GetDataGroupWriter(0);
	dataGroupWriter.WriteHeader();

	//int iSet=0;
	DataSetWriterIt beginSet;
	DataSetWriterIt endSet;
	dataGroupWriter.GetDataSetWriters(beginSet, endSet);

	beginSet->WriteHeader();

	int32_t dataSetSz = beginSet->GetDataSetSize();
	int32_t offset = writer.GetFilePos();
	writer.SeekFromCurrentPos(dataSetSz + 1);
	beginSet->UpdateNextDataSetOffset();

	dataGroupWriter.UpdateNextDataGroupPos();
	
	writer.SeekFromBeginPos(offset);


	// Write the data.
	beginSet->Write("first_row", 64);
	beginSet->Write(L"first_row", 64);
	beginSet->Write((int8_t) 1);
	beginSet->Write((int16_t) 1);
	beginSet->Write((int32_t) 1);
	beginSet->Write((u_int8_t) 1);
	beginSet->Write((u_int16_t) 1);
	beginSet->Write((u_int32_t) 1);
	beginSet->Write(1.0f);

	beginSet->Write("second_row", 64);
	beginSet->Write(L"second_row", 64);
	beginSet->Write((int8_t) 2);
	beginSet->Write((int16_t) 2);
	beginSet->Write((int32_t) 2);
	beginSet->Write((u_int8_t) 2);
	beginSet->Write((u_int16_t) 2);
	beginSet->Write((u_int32_t) 2);
	beginSet->Write(2.0f);

	beginSet->Write("third_row", 64);
	beginSet->Write(L"third_row", 64);
	beginSet->Write((int8_t) 3);
	beginSet->Write((int16_t) 3);
	beginSet->Write((int32_t) 3);
	beginSet->Write((u_int8_t) 3);
	beginSet->Write((u_int16_t) 3);
	beginSet->Write((u_int32_t) 3);
	beginSet->Write(3.0f);
}
开发者ID:einon,项目名称:affymetrix-power-tools,代码行数:83,代码来源:DataSetUpdaterTest.cpp


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