A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCFeatureGenerator.html below:

NCBI C++ ToolKit: CFeatureGenerator Class Reference

Search Toolkit Book for CFeatureGenerator

#include <algo/sequence/gene_model.hpp>

enum   EGeneModelCreateFlags {
  fTrimEnds = 0x1000 , fMaximizeTranslation = 0x2000 , fCreateGene = 0x001 , fCreateMrna = 0x002 ,
  fCreateCdregion = 0x004 , fPromoteAllFeatures = 0x008 , fPropagateOnly = 0x010 , fForceTranslateCds = 0x020 ,
  fForceTranscribeMrna = 0x040 , fDensegAsExon = 0x080 , fGenerateLocalIds = 0x100 , fGenerateStableLocalIds = 0x200 ,
  fPropagateNcrnaFeats = 0x400 , fTrustProteinSeq = 0x800 , fDeNovoProducts = 0x4000 , fAddTranslatedCDSAssembly = 0x8000 ,
  fDropManeMarkup = 0x00010000 , fSkipLocationCheck = 0x00020000 , fDefaults
}   enum   EIntronStitchThresholdFlags { fProduct = 1 , fGenomic = 2 , fBoth = 3 }   enum   EProductPositionsMode { eForceProductFrom0 , eTryToPreserveProductPositions }   Adjust alignment to the specified range (cross-the-origin range on circular chromosome is indicated by range.from > range.to) Will add necessary 'diags' at ends. More...
  typedef int  TFeatureGeneratorFlags     CFeatureGenerator (CRef< objects::CScope > scope)     CFeatureGenerator (objects::CScope &scope)     ~CFeatureGenerator ()   void  SetFlags (TFeatureGeneratorFlags)   TFeatureGeneratorFlags  GetFlags () const   void  SetIntronStitchThresholdFlags (EIntronStitchThresholdFlags)   void  SetMinIntron (TSeqPos)   void  SetAllowedUnaligned (TSeqPos)   CConstRef< objects::CSeq_align >  CleanAlignment (const objects::CSeq_align &align)   Clean an alignment according to our best guess of its biological representation. More...
  CConstRef< objects::CSeq_align >  AdjustAlignment (const objects::CSeq_align &align, TSeqRange range, EProductPositionsMode mode=eForceProductFrom0)   CRef< objects::CSeq_feat >  ConvertAlignToAnnot (const objects::CSeq_align &align, objects::CSeq_annot &annot, objects::CBioseq_set &seqs, Int8 gene_id=0, const objects::CSeq_feat *cdregion_on_mrna=NULL)   Convert an alignment to an annotation. More...
  void  ConvertAlignToAnnot (const list< CRef< objects::CSeq_align > > &aligns, objects::CSeq_annot &annot, objects::CBioseq_set &seqs)   void  ConvertLocToAnnot (const objects::CSeq_loc &loc, objects::CSeq_annot &annot, objects::CBioseq_set &seqs, objects::CCdregion::EFrame frame=objects::CCdregion::eFrame_one, CRef< objects::CSeq_id > prot_id=CRef< objects::CSeq_id >(), CRef< objects::CSeq_id > rna_id=CRef< objects::CSeq_id >())   Convert genomic location to an annotation. More...
  void  SetFeatureExceptions (objects::CSeq_feat &feat, const objects::CSeq_align *align=NULL)   Correctly mark exceptions on a feature. More...
  void  SetPartialFlags (CRef< objects::CSeq_feat > gene_feat, CRef< objects::CSeq_feat > mrna_feat, CRef< objects::CSeq_feat > cds_feat)   Mark the correct partial states for a set of features. More...
  void  RecomputePartialFlags (objects::CSeq_annot &annot)   Recompute the correct partial states for all features in this annotation. More...
 

Definition at line 75 of file gene_model.hpp.

◆ TFeatureGeneratorFlags ◆ EGeneModelCreateFlags Enumerator fTrimEnds  fMaximizeTranslation  fCreateGene  fCreateMrna  fCreateCdregion  fPromoteAllFeatures  fPropagateOnly  fForceTranslateCds  fForceTranscribeMrna  fDensegAsExon  fGenerateLocalIds  fGenerateStableLocalIds  fPropagateNcrnaFeats  fTrustProteinSeq  fDeNovoProducts  fAddTranslatedCDSAssembly  fDropManeMarkup  fSkipLocationCheck  fDefaults 

Definition at line 84 of file gene_model.hpp.

◆ EIntronStitchThresholdFlags ◆ EProductPositionsMode

Adjust alignment to the specified range (cross-the-origin range on circular chromosome is indicated by range.from > range.to) Will add necessary 'diags' at ends.

Throws an exception on attempt to shink past an indel in CDS Works on Spliced-seg alignments only. Note: for a protein alignment do not expand it to include stop codon.

Enumerator eForceProductFrom0  eTryToPreserveProductPositions 

Definition at line 151 of file gene_model.hpp.

◆ CFeatureGenerator() [1/2] CFeatureGenerator::CFeatureGenerator ( CRef< objects::CScope >  scope ) ◆ CFeatureGenerator() [2/2] CFeatureGenerator::CFeatureGenerator ( objects::CScope &  scope ) ◆ ~CFeatureGenerator() CFeatureGenerator::~CFeatureGenerator ( )

Definition at line 191 of file gene_model.cpp.

◆ AdjustAlignment() ◆ CleanAlignment() ◆ ConvertAlignToAnnot() [1/2] void CFeatureGenerator::ConvertAlignToAnnot ( const list< CRef< objects::CSeq_align > > &  aligns, objects::CSeq_annot &  annot, objects::CBioseq_set &  seqs  ) ◆ ConvertAlignToAnnot() [2/2] CRef<objects::CSeq_feat> CFeatureGenerator::ConvertAlignToAnnot ( const objects::CSeq_align &  align, objects::CSeq_annot &  annot, objects::CBioseq_set &  seqs, Int8  gene_id = 0, const objects::CSeq_feat *  cdregion_on_mrna = NULL  ) ◆ ConvertLocToAnnot() void CFeatureGenerator::ConvertLocToAnnot ( const objects::CSeq_loc &  loc, objects::CSeq_annot &  annot, objects::CBioseq_set &  seqs, objects::CCdregion::EFrame  frame = objects::CCdregion::eFrame_one, CRef< objects::CSeq_id >  prot_id = CRef<objects::CSeq_id>(), CRef< objects::CSeq_id >  rna_id = CRef<objects::CSeq_id>()  )

Convert genomic location to an annotation.

Populates seqs with mRna and protein sequences, and populates annot with gene, mRna and cdretgion features

Definition at line 243 of file gene_model.cpp.

References CAtomicCounter::Add(), CTime::AsString(), CTime::eCurrent, eExtreme_Biological, CCdregion_Base::eFrame_one, CCdregion_Base::eFrame_three, CCdregion_Base::eFrame_two, eNa_strand_plus, CSpliced_seg_Base::eProduct_type_transcript, CSeq_align_Base::eType_not_set, eUnknown, fCreateCdregion, fGenerateLocalIds, flags, GetFlags(), fg::GetGeneticCode(), GetOrg_refOrNull(), ITERATE, m_impl, match(), NCBI_THROW, NStr::NumericToString(), CRef< C, Locker >::Reset(), CSeq_feat_Base::SetData(), CSeq_align_Base::SetDim(), SetFlags(), CSeq_feat_Base::SetLocation(), CSeq_loc::SetPartialStart(), CSeq_loc::SetPartialStop(), CSeq_feat_Base::SetProduct(), CSeq_align_Base::SetSegs(), CSeq_align_Base::SetType(), and str().

Referenced by BOOST_AUTO_TEST_CASE().

◆ CreateMicroIntrons() void CFeatureGenerator::CreateMicroIntrons ( objects::CScope &  scope, objects::CBioseq_Handle  bsh, const stringannot_name = "", TSeqRangerange = NULL, bool  ignore_errors = false  ) static

Definition at line 137 of file micro_introns.cpp.

References CSerialObject::Assign(), CSeq_id_Handle::AsString(), map_checker< Container >::begin(), CSeqFeatData_Base::e_Cdregion, CSeqFeatData_Base::e_Rna, map_checker< Container >::end(), GetAlignmentForRna(), CSeq_feat_Handle::GetAnnot(), CScope::GetBioseqHandle(), CScope::GetEditHandle(), CSeq_feat_Base::GetLocation(), CMappedFeat::GetLocation(), CSeq_feat_Handle::GetOriginalSeq_feat(), CSeq_feat_Handle::GetProductId(), SAnnotSelector::IncludeFeatType(), InheritPartialness(), NCBI_THROW, s_ProjectCDS(), s_ProjectRNA(), SAnnotSelector::SetAdaptiveDepth(), CSeq_feat_Base::SetLocation(), SAnnotSelector::SetResolveAll(), and x_SetAnnotName().

Referenced by CGeneModelTrack::GenerateAsn1(), and CAnnotWriterApp::xProcessBioseqHandle().

◆ GetFlags() ◆ RecomputePartialFlags() void CFeatureGenerator::RecomputePartialFlags ( objects::CSeq_annot &  annot ) ◆ s_ProjectCDS() CRef< CSeq_loc > CFeatureGenerator::s_ProjectCDS ( const objects::CSeq_align &  spliced_aln, const objects::CSeq_loc &  product_cds_loc, bool  convert_overlaps = true  ) static ◆ s_ProjectRNA()

Project RNA, preserving discontinuities in the CDS.

Postcondition: Output is a mix of packed-ints, where each sub-loc in the mix is an exon, and each subloc in the exon packed-int is an exon chunk. The chunks may have gaps between them or overlap as to preserve the translation frame of the CDS.

The discontinuities (gaps and overlaps of chunks) that are outside of the CDS are collapsed.

Singleton container locs (comprised of single element) are canonicalized: unbroken exons are represented as a single interval single-exon locs are represented as a single packed-int (or int, as per above)

Definition at line 1773 of file project_exons.cpp.

References CollapseDiscontinuitiesInUTR(), eExtreme_Positional, CSeq_loc::fMerge_SingleRange, CSeq_loc::GetStart(), CSeq_loc::GetStop(), kInvalidSeqPos, CSeq_loc_Mapper_Base::Map(), NULL, PreserveTerminalCodons(), ProjectExons(), Seq_loc_Merge(), and CSeq_loc_Mapper_Base::SetTrimSplicedSeg().

Referenced by BOOST_AUTO_TEST_CASE(), and CreateMicroIntrons().

◆ SetAllowedUnaligned() void CFeatureGenerator::SetAllowedUnaligned ( TSeqPos  value ) ◆ SetFeatureExceptions() void CFeatureGenerator::SetFeatureExceptions ( objects::CSeq_feat &  feat, const objects::CSeq_align *  align = NULL  ) ◆ SetFlags() ◆ SetIntronStitchThresholdFlags() ◆ SetMinIntron() void CFeatureGenerator::SetMinIntron ( TSeqPos  value ) ◆ SetPartialFlags() void CFeatureGenerator::SetPartialFlags ( CRef< objects::CSeq_feat >  gene_feat, CRef< objects::CSeq_feat >  mrna_feat, CRef< objects::CSeq_feat >  cds_feat  ) ◆ x_SetAnnotName() void CFeatureGenerator::x_SetAnnotName ( objects::SAnnotSelector &  sel, const stringannot_name  ) staticprivate ◆ kDefaultAllowedUnaligned const TSeqPos CFeatureGenerator::kDefaultAllowedUnaligned = 10 static ◆ kDefaultMinIntron ◆ m_impl

Definition at line 233 of file gene_model.hpp.

Referenced by AdjustAlignment(), CleanAlignment(), ConvertLocToAnnot(), GetFlags(), RecomputePartialFlags(), SetAllowedUnaligned(), SetFeatureExceptions(), SetFlags(), SetIntronStitchThresholdFlags(), SetMinIntron(), and SetPartialFlags().

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4