本文整理汇总了C++中DataSetHeader::AddByteColumn方法的典型用法代码示例。如果您正苦于以下问题:C++ DataSetHeader::AddByteColumn方法的具体用法?C++ DataSetHeader::AddByteColumn怎么用?C++ DataSetHeader::AddByteColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataSetHeader
的用法示例。
在下文中一共展示了DataSetHeader::AddByteColumn方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetForceCnt
void CHPData::SetForceCnt(int32_t ln)
{
DataSetHeader dpHdr;
dpHdr.SetRowCnt(ln);
dpHdr.SetName(CHP_RESEQ_FORCE_CALL_GROUP);
//position - int
dpHdr.AddIntColumn(PositionColName);
//call - byte
dpHdr.AddByteColumn(ForceCallColName);
//reason - byte
dpHdr.AddByteColumn(ReasonColName);
DataGroupHeader* dcHdr = &genericData.Header().GetDataGroup(2);
dcHdr->AddDataSetHdr(dpHdr);
}
示例2: AddReseqColumns
void CHPData::AddReseqColumns(DataSetHeader& hdr)
{
hdr.SetName(CHP_RESEQ_GROUP);
//call - char
hdr.AddByteColumn(CallColName);
//Score - float
hdr.AddFloatColumn(ScoreColName);
}
示例3: SetOrigCnt
void CHPData::SetOrigCnt(int32_t ln)
{
DataSetHeader dpHdr;
dpHdr.SetRowCnt(ln);
dpHdr.SetName(CHP_RESEQ_ORIG_CALL_GROUP);
//position - int
dpHdr.AddIntColumn(PositionColName);
//call - byte
dpHdr.AddByteColumn(OriginalCallColName);
DataGroupHeader* dcHdr = &genericData.Header().GetDataGroup(3);
dcHdr->AddDataSetHdr(dpHdr);
}
示例4: 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);
}
}
示例5: 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);
}