本文整理汇总了C++中CSeq_feat::SetPseudo方法的典型用法代码示例。如果您正苦于以下问题:C++ CSeq_feat::SetPseudo方法的具体用法?C++ CSeq_feat::SetPseudo怎么用?C++ CSeq_feat::SetPseudo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSeq_feat
的用法示例。
在下文中一共展示了CSeq_feat::SetPseudo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xFeatureMakeMiscRna
// ----------------------------------------------------------------------------
bool CSoMap::xFeatureMakeMiscRna(
const string& so_type,
CSeq_feat& feature)
// ----------------------------------------------------------------------------
{
feature.SetData().SetImp().SetKey("misc_RNA");
if (so_type=="pseudogenic_transcript") {
feature.SetPseudo(true);
}
return true;
}
示例2: xFeatureMakeCds
// ----------------------------------------------------------------------------
bool CSoMap::xFeatureMakeCds(
const string& so_type,
CSeq_feat& feature)
// ----------------------------------------------------------------------------
{
feature.SetData().SetCdregion();
if (so_type=="pseudogenic_CDS") {
feature.SetPseudo(true);
}
return true;
}
示例3: xFeatureMakeGene
// ----------------------------------------------------------------------------
bool CSoMap::xFeatureMakeGene(
const string& so_type,
CSeq_feat& feature)
// ----------------------------------------------------------------------------
{
feature.SetData().SetGene();
if (so_type == "pseudogene") {
feature.SetPseudo(true);
}
return true;
}
示例4: xFeatureMakeRna
// ----------------------------------------------------------------------------
bool CSoMap::xFeatureMakeRna(
const string& so_type,
CSeq_feat& feature)
// ----------------------------------------------------------------------------
{
static const map<string, CRNA_ref::EType, CompareNoCase> mTypeToRna = {
{"mRNA", CRNA_ref::eType_mRNA},
{"rRNA", CRNA_ref::eType_rRNA},
{"pseudogenic_rRNA", CRNA_ref::eType_rRNA},
{"tRNA", CRNA_ref::eType_tRNA},
{"pseudogenic_tRNA", CRNA_ref::eType_tRNA},
{"tmRNA", CRNA_ref::eType_tmRNA},
};
auto it = mTypeToRna.find(so_type);
feature.SetData().SetRna().SetType(it->second);
if(NStr::StartsWith(so_type, "pseudogenic_")) {
feature.SetPseudo(true);
}
return true;
}