本文整理汇总了C++中SamRecord::rmTag方法的典型用法代码示例。如果您正苦于以下问题:C++ SamRecord::rmTag方法的具体用法?C++ SamRecord::rmTag怎么用?C++ SamRecord::rmTag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SamRecord
的用法示例。
在下文中一共展示了SamRecord::rmTag方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateCigar
bool Revert::updateCigar(SamRecord& samRecord)
{
// Get the OC tag, which is a string.
const String* oldCigar = samRecord.getStringTag(SamTags::ORIG_CIGAR_TAG);
// Get the OP tag, which is an integer.
int* oldPos = samRecord.getIntegerTag(SamTags::ORIG_POS_TAG);
bool status = true;
if(oldCigar != NULL)
{
// The old cigar was found, so set it in the record.
status &= samRecord.setCigar((*oldCigar).c_str());
if(!myKeepTags)
{
// Remove the tag.
status &= samRecord.rmTag(SamTags::ORIG_CIGAR_TAG, SamTags::ORIG_CIGAR_TAG_TYPE);
}
}
if(oldPos != NULL)
{
// The old position was found, so set it in the record.
status &= samRecord.set1BasedPosition(*oldPos);
if(!myKeepTags)
{
// Remove the tag.
status &= samRecord.rmTag(SamTags::ORIG_POS_TAG, SamTags::ORIG_POS_TAG_TYPE);
}
}
return(status);
}
示例2: updateQual
bool Revert::updateQual(SamRecord& samRecord)
{
// Get the OQ tag, which is a string.
const String* oldQual = samRecord.getStringTag(SamTags::ORIG_QUAL_TAG);
bool status = true;
if(oldQual != NULL)
{
// The old quality was found, so set it in the record.
status &= samRecord.setQuality((*oldQual).c_str());
if(!myKeepTags)
{
// Remove the tag.
samRecord.rmTag(SamTags::ORIG_QUAL_TAG, SamTags::ORIG_QUAL_TAG_TYPE);
}
}
return(status);
}
示例3: removeBQ
bool Revert::removeBQ(SamRecord& samRecord)
{
// Remove the tag.
return(samRecord.rmTag(SamTags::BQ_TAG, SamTags::BQ_TAG_TYPE));
}