Exemple #1
0
//  ============================================================================
string CGtfRecord::x_CdsToProduct(
    CMappedFeat mapped_feature )
//  ============================================================================
{
    if ( ! mapped_feature.IsSetXref() ) {
        return "";
    }
    const vector< CRef< CSeqFeatXref > > xref = mapped_feature.GetXref();
    vector< CRef< CSeqFeatXref > >::const_iterator it = xref.begin();
    for ( ; it != xref.end(); ++it ) {
        const CSeqFeatXref& ref = **it;
        if ( ref.IsSetData() && ref.GetData().IsProt() && 
            ref.GetData().GetProt().IsSetName() ) 
        {
            return ref.GetData().GetProt().GetName().front();
        }
    }
    return "";
}