NCBI C++ ToolKit
|
Search Toolkit Book for CGff2Writer
CWriterBase implementation that formats Genbank objects as plain GFF files. More...
#include <objtools/writers/gff_writer.hpp>
Public Types | |
enum | TFlags { fSoQuirks = (fWriterBaseLast << 1) , fGenerateMissingTranscripts = (fWriterBaseLast << 2) , fGff2WriterLast = fSoQuirks } |
![]() | |
enum | TFlags { fNormal = 0 , fDebugOutput = (1<<0) , fWriterBaseLast = fDebugOutput } |
Customization flags that are relevant to all CWriterBase derived writers. More... | |
![]() | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Public Member Functions | |
CGff2Writer (CScope &scope, CNcbiOstream &ostr, unsigned int flags=fNormal) | |
Constructor. More... | |
CGff2Writer (CNcbiOstream &, unsigned int=fNormal) | |
Constructor. More... | |
virtual | ~CGff2Writer () |
bool | WriteHeader () override |
Write a file header identifying the file content as GFF version 2. More... | |
bool | WriteHeader (const CSeq_annot &) override |
Write a file header, using annotation information. More... | |
bool | WriteFooter () override |
Write a trailer marking the end of a parsing context. More... | |
virtual bool | WriteFooter (const CSeq_annot &) |
bool | WriteAnnot (const CSeq_annot &annot, const string &asmblyName="", const string &asmblyAccession="") override |
Convenience function to render a "naked" Seq-annot. More... | |
bool | WriteAlign (const CSeq_align &, const string &asmblyName="", const string &asmblyAccession="") override |
Write a Seq-align object. More... | |
bool | WriteSeqEntryHandle (CSeq_entry_Handle seh, const string &asmblyName="", const string &asmblyAccession="") override |
Write Seq-entry contained in a given handle. More... | |
bool | WriteBioseqHandle (CBioseq_Handle bsh, const string &asmblyName="", const string &asmblyAccession="") override |
Write Bioseq contained in given handle Essentially, will write all features that live on the given Bioseq. More... | |
bool | WriteSeqAnnotHandle (CSeq_annot_Handle sah, const string &asmblyName="", const string &asmblyAccession="") override |
Write Seq-annot contained in given handle Essentially, write out embedded feature table. More... | |
![]() | |
virtual | ~CWriterBase () |
void | SetMessageListener (CWriterListener *pMessageListener) |
virtual void | PutMessage (const CWriterMessage &message) |
virtual SAnnotSelector & | SetAnnotSelector (void) |
SAnnotSelector & | GetAnnotSelector (void) |
virtual CRange< TSeqPos > & | SetRange (void) |
virtual const CRange< TSeqPos > & | GetRange (void) const |
![]() | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
![]() | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
![]() | |
CInterruptable () | |
virtual | ~CInterruptable () |
void | SetCanceler (ICanceled *pCanceller) |
bool | IsCanceled () const |
![]() | |
virtual | ~ICanceled () |
Static Protected Member Functions | |
static bool | IsTranscriptType (const CMappedFeat &) |
static bool | HasAccaptableTranscriptParent (CGffFeatureContext &, const CMappedFeat &) |
static bool | xIntervalsNeedPartNumbers (const list< CRef< CSeq_interval >> &) |
Protected Attributes | |
CRef< CScope > | m_pScope |
bool | m_bHeaderWritten |
![]() | |
CNcbiOstream & | m_Os |
unsigned int | m_uFlags |
unique_ptr< SAnnotSelector > | m_Selector |
CRange< TSeqPos > | m_Range |
CWriterListener * | mpMessageListener |
![]() | |
ICanceled * | mpCancelled |
Additional Inherited Members | |
![]() | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
![]() | |
static void | EnableDebugDump (bool on) |
![]() | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
![]() | |
virtual | ~CFeatWriter (void)=default |
bool | WriteFeatures (CFeat_CI &first) |
CWriterBase implementation that formats Genbank objects as plain GFF files.
GFF (or GFF2) is a predecessor of GTF, GFF3, GVF and probably half a dozen other dialects in use today. GFF files consist of feature records, with each feature record consisting of nine columns. There is some agreed upon meaning of the first eight columns and on the general grammer of the column contents. Beyond that, there has never been a universally agreed upon defintion of the format (probably the prime reason the format is deprecated now). For the purpose of this implementation, GFF is taken to be the greatest common denominator between GTF and GFF3 (and this GVF). Those other writers then derive from this one, adding their own bits and pieces to complete the format renderer.
Definition at line 57 of file gff_writer.hpp.
enum CGff2Writer::TFlags |
Enumerator | |
---|---|
fSoQuirks | |
fGenerateMissingTranscripts | |
fGff2WriterLast |
Definition at line 62 of file gff_writer.hpp.
CGff2Writer::CGff2Writer | ( | CScope & | scope, |
CNcbiOstream & | ostr, | ||
unsigned int | flags = fNormal |
||
) |
Constructor.
scope | scope to be used for ID reference resolution (it's OK to create one on the fly). |
ostr | stream objects should be written to. |
flags | any output customization flags. |
Definition at line 59 of file gff_writer.cpp.
References m_pScope, and CRef< C, Locker >::Reset().
CGff2Writer::CGff2Writer | ( | CNcbiOstream & | ostr, |
unsigned int | uFlags = fNormal |
||
) |
Constructor.
Scopeless version. A scope will be allocated internally.
ostr | stream objects should be written to. |
flags | any output customization flags. |
Definition at line 72 of file gff_writer.cpp.
References CScope::AddDefaults(), CObjectManager::GetInstance(), m_pScope, and CRef< C, Locker >::Reset().
|
virtual |
Definition at line 85 of file gff_writer.cpp.
|
staticprotected |
Definition at line 1312 of file gff_writer.cpp.
References CGffFeatureContext::FeatTree(), and IsTranscriptType().
Referenced by CGtfWriter::xAssignFeatureAttributeTranscriptId(), and xGenerateMissingTranscript().
|
staticprotected |
Definition at line 1293 of file gff_writer.cpp.
References CSeqFeatData::eSubtype_C_region, CSeqFeatData::eSubtype_D_segment, CSeqFeatData::eSubtype_J_segment, CSeqFeatData::eSubtype_mRNA, CSeqFeatData::eSubtype_otherRNA, CSeqFeatData::eSubtype_V_segment, and CSeq_feat_Handle::GetFeatSubtype().
Referenced by HasAccaptableTranscriptParent().
|
overridevirtual |
Write a Seq-align object.
Calling this function on a general GFF2 writer (as opposed to GFF3 or another more specialized format will fail because GFF2 at this general level does not address alignments; you will need at least a GFF3 writer for that.
align | Seq-align object to be rendered |
asmblyName | optional assembly name to use for the file header |
asmblyAccession | optional assembly accession to use for the file header |
Reimplemented from CWriterBase.
Definition at line 311 of file gff_writer.cpp.
References x_WriteAlign(), and x_WriteAssemblyInfo().
Referenced by CGtfExportJob::Run().
|
overridevirtual |
Convenience function to render a "naked" Seq-annot.
Makes use of the internal scope.
annot | Seq-annot object to be rendered |
asmblyName | optional assembly name to use for the file header |
asmblyAccession | optional assembly accession to use for the file header |
Reimplemented from CWriterBase.
Definition at line 91 of file gff_writer.cpp.
References x_WriteAnnot(), and x_WriteAssemblyInfo().
Referenced by CGffExportJob::Run(), CGtfExportJob::Run(), sRunTest(), and sUpdateCase().
|
overridevirtual |
Write Bioseq contained in given handle Essentially, will write all features that live on the given Bioseq.
bsh | Bioseq handle to be processed |
asmblyName | optional assembly name to use for the file header |
asmblyAccession | optional assembly accession to use for the file header |
Reimplemented from CWriterBase.
Definition at line 192 of file gff_writer.cpp.
References x_WriteAssemblyInfo(), and x_WriteBioseqHandle().
Referenced by CGffExportJob::Run(), CGtfExportJob::Run(), sRunTest(), sUpdateCase(), and CProjectFileWriter::x_WriteGtf().
|
overridevirtual |
Write a trailer marking the end of a parsing context.
Reimplemented from CWriterBase.
Definition at line 346 of file gff_writer.cpp.
References CWriterBase::m_Os.
Referenced by CGffExportJob::Run(), CGtfExportJob::Run(), sRunTest(), sUpdateCase(), WriteFooter(), and CProjectFileWriter::x_WriteGtf().
|
inlinevirtual |
Definition at line 107 of file gff_writer.hpp.
References WriteFooter().
|
overridevirtual |
Write a file header identifying the file content as GFF version 2.
Reimplemented from CWriterBase.
Reimplemented in CGvfWriter, and CGtfWriter.
Definition at line 335 of file gff_writer.cpp.
References m_bHeaderWritten, and CWriterBase::m_Os.
Referenced by WriteHeader(), CGff3Writer::WriteHeader(), and CGtfWriter::WriteHeader().
|
inlineoverridevirtual |
Write a file header, using annotation information.
Header syntax and rules depend on the file format. This do-nothing implementation should therefore be re-implemented in format specific subclasses.
Reimplemented from CWriterBase.
Reimplemented in CGtfWriter, and CGvfWriter.
Definition at line 100 of file gff_writer.hpp.
References WriteHeader().
|
overridevirtual |
Write Seq-annot contained in given handle Essentially, write out embedded feature table.
Other annotation types are not supported in the generic GFF2 writer(i.e. there will be a header and nothing else.
sah | Seq-annot handle to be processed |
asmblyName | optional assembly name to use for the file header |
asmblyAccession | optional assembly accession to use for the file header |
Reimplemented from CWriterBase.
Definition at line 246 of file gff_writer.cpp.
References x_WriteAssemblyInfo(), and x_WriteSeqAnnotHandle().
Referenced by CProjectFileWriter::x_WriteGtf().
|
overridevirtual |
Write Seq-entry contained in a given handle.
Essentially, will iterate through all contained Bioseq objects and process those, with some special processing for nuc-prot sets.
seh | Seq-entry handle to be processed |
asmblyName | optional assembly name to use for the file header |
asmblyAccession | optional assembly accession to use for the file header |
Reimplemented from CWriterBase.
Definition at line 118 of file gff_writer.cpp.
References x_WriteAssemblyInfo(), and x_WriteSeqEntryHandle().
Referenced by CGffExportJob::Run(), CGtfExportJob::Run(), sRunTest(), and sUpdateCase().
|
protectedvirtual |
Definition at line 327 of file gff_writer.cpp.
Referenced by WriteAlign(), and x_WriteSeqAnnotHandle().
|
protectedvirtual |
Definition at line 107 of file gff_writer.cpp.
References CScope::AddSeq_annot(), m_pScope, CScope::RemoveSeq_annot(), and x_WriteSeqAnnotHandle().
Referenced by WriteAnnot().
|
protectedvirtual |
Definition at line 354 of file gff_writer.cpp.
References CWriterBase::m_Os.
Referenced by CGff3Writer::WriteAlign(), WriteAlign(), WriteAnnot(), WriteBioseqHandle(), WriteSeqAnnotHandle(), and WriteSeqEntryHandle().
|
protectedvirtual |
Reimplemented in CGtfWriter, and CGff3Writer.
Definition at line 208 of file gff_writer.cpp.
References fc, CWriterBase::GetRange(), CWriterBase::SetAnnotSelector(), and xWriteFeature().
Referenced by WriteBioseqHandle(), and x_WriteSeqEntryHandle().
|
protectedvirtual |
Reimplemented in CGvfWriter, and CGff3Writer.
Definition at line 262 of file gff_writer.cpp.
References fc, CSeq_annot_Handle::GetCompleteSeq_annot(), CSeq_annot::IsAlign(), CWriterBase::SetAnnotSelector(), x_WriteAlign(), and xWriteFeature().
Referenced by WriteSeqAnnotHandle(), and x_WriteAnnot().
|
protectedvirtual |
Definition at line 134 of file gff_writer.cpp.
References CBioseq_set_Base::eClass_genbank, CBioseq_set_Base::eClass_nuc_prot, CBioseq_set_Handle::GetClass(), CMappedFeat::GetLocationId(), CSeq_entry_Handle::GetSeq(), CSeq_entry_Handle::GetSet(), CSeq_entry_Handle::IsSeq(), CSeq_entry_Handle::IsSet(), CBioseq_set_Handle::IsSetClass(), CWriterBase::SetAnnotSelector(), SAnnotSelector::SetMaxSize(), x_WriteBioseqHandle(), x_WriteSequenceHeader(), and xWriteFeature().
Referenced by WriteSeqEntryHandle().
|
inlineprotectedvirtual |
Definition at line 344 of file gff_writer.hpp.
Referenced by x_WriteSeqEntryHandle().
|
inlineprotectedvirtual |
Definition at line 347 of file gff_writer.hpp.
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 369 of file gff_writer.cpp.
References fc, and xAssignFeatureBasic().
Referenced by CGtfWriter::xAssignFeaturesCds(), CGtfWriter::xAssignFeaturesGene(), CGtfWriter::xAssignFeaturesTranscript(), and CGtfWriter::xWriteFeatureExons().
|
protected |
Definition at line 810 of file gff_writer.cpp.
References CGffBaseRecord::AddAttribute(), CSeqFeatData_Base::GetCdregion(), CCdregion_Base::GetCode_break(), CWriteUtil::GetCodeBreak(), CSeq_feat_Handle::GetData(), CWriterBase::GetRange(), CSeqFeatData_Base::IsCdregion(), CCdregion_Base::IsSetCode_break(), CSeq_feat_Handle::IsSetData(), COpenRange< Position >::IsWhole(), and CRef< C, Locker >::NotEmpty().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
inlineprotectedvirtual |
Reimplemented in CGtfWriter, and CGff3Writer.
Definition at line 255 of file gff_writer.hpp.
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1248 of file gff_writer.cpp.
References CSeqFeatData_Base::e_Prot, CSeq_feat_Handle::GetData(), CSeq_feat_Handle::GetFeatType(), CSeqFeatData_Base::GetProt(), prot, and CGffBaseRecord::SetAttributes().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 977 of file gff_writer.cpp.
References CSeq_feat_Handle::GetExcept_text(), CSeq_feat_Handle::IsSetExcept(), CSeq_feat_Handle::IsSetExcept_text(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1270 of file gff_writer.cpp.
References CGb_qual_Base::GetQual(), CSeq_feat_Handle::GetQual(), CGb_qual_Base::GetVal(), CGb_qual_Base::IsSetQual(), CSeq_feat_Handle::IsSetQual(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 996 of file gff_writer.cpp.
References CSeq_feat_Handle::GetQual(), and CGffBaseRecord::SetAttributes().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1103 of file gff_writer.cpp.
References CSeqFeatData_Base::e_Prot, ctll::empty(), CSeq_feat_Handle::GetData(), CSeq_feat_Handle::GetFeatType(), CSeq_feat_Handle::GetNamedQual(), CSeqFeatData_Base::GetProt(), prot, and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 933 of file gff_writer.cpp.
References fc, CSeq_feat_Handle::GetData(), GetFeatureGeneBiotypeFaster(), CSeqFeatData_Base::IsGene(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1090 of file gff_writer.cpp.
References CMappedFeat::GetLocation(), CWriteUtil::IsLocationOrdered(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 958 of file gff_writer.cpp.
References CSeq_feat_Handle::GetData(), CSeqFeatData_Base::GetGene(), CGene_ref_Base::GetMaploc(), CSeqFeatData_Base::IsGene(), CGene_ref_Base::IsSetMaploc(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1016 of file gff_writer.cpp.
References CWriteUtil::GetStringForModelEvidence(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
inlineprotectedvirtual |
Reimplemented in CGtfWriter, and CGff3Writer.
Definition at line 259 of file gff_writer.hpp.
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 899 of file gff_writer.cpp.
References CSeq_feat_Handle::GetData(), CSeq_feat_Handle::GetQual(), CSeqFeatData_Base::IsGene(), CSeq_feat_Handle::IsSetQual(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 601 of file gff_writer.cpp.
References CRange_Base::GetFrom(), CMappedFeat::GetLocation(), CSeq_feat_Base::GetPartial(), CMappedFeat::GetPartial(), CWriterBase::GetRange(), CMappedFeat::GetSeq_feat(), CRange_Base::GetTo(), CSeq_loc::GetTotalRange(), COpenRange< Position >::IntersectionWith(), CMappedFeat::IsMapped(), CSeq_feat_Base::IsSetPartial(), CMappedFeat::IsSetPartial(), COpenRange< Position >::NotEmpty(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 704 of file gff_writer.cpp.
References codons, CSeqFeatData_Base::e_Rna, SAnnotSelector::eSortOrder_Normal, CSeqFeatData::eSubtype_cdregion, CSeqFeatData::eSubtype_prot, CSeqFeatData::eSubtype_tRNA, CGenbankIdResolve::Get(), GetBestId(), CScope::GetBioseqHandle(), CSeq_feat_Handle::GetData(), CSeq_feat_Handle::GetFeatSubtype(), CSeq_feat_Handle::GetFeatType(), CSeq_loc::GetId(), CProt_ref_Base::GetName(), CMappedFeat::GetProduct(), CMappedFeat::GetProductId(), CSeqFeatData_Base::GetProt(), CSeq_feat_Handle::GetProtXref(), CSeq_feat_Handle::GetQual(), CWriterBase::GetRange(), CSeqFeatData_Base::GetRna(), CSeq_feat_Handle::GetScope(), CWriteUtil::GetTrnaAntiCodon(), CWriteUtil::GetTrnaCodons(), CWriteUtil::GetTrnaProductName(), CSeq_feat_Handle::IsSetData(), CProt_ref_Base::IsSetName(), CSeq_feat_Handle::IsSetProduct(), CSeq_feat_Handle::IsSetQual(), COpenRange< Position >::IsWhole(), names, rna, CGffBaseRecord::SetAttribute(), and SAnnotSelector::SetSortOrder().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 673 of file gff_writer.cpp.
References CGffBaseRecord::AddAttribute(), CSeqFeatData::eSubtype_cdregion, CGenbankIdResolve::Get(), GetBestId(), CSeq_feat_Handle::GetFeatSubtype(), CSeq_loc::GetId(), CSeq_feat_Handle::GetNamedQual(), CMappedFeat::GetProduct(), CMappedFeat::GetProductId(), CSeq_feat_Handle::GetScope(), CSeq_id::GetSeqIdString(), and CSeq_feat_Handle::IsSetProduct().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 582 of file gff_writer.cpp.
References fc, CSeq_feat_Handle::GetPseudo(), CSeq_feat_Handle::IsSetPseudo(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1062 of file gff_writer.cpp.
References CSeqFeatData::eQual_pseudogene, fc, CSeq_feat_Handle::GetFeatSubtype(), CSeq_feat_Handle::GetNamedQual(), CSeqFeatData::IsLegalQualifier(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 654 of file gff_writer.cpp.
References CGffBaseRecord::AddAttribute(), CSeqFeatData::eSubtype_cdregion, CSeq_feat_Handle::GetExcept_text(), CSeq_feat_Handle::GetFeatSubtype(), and CSeq_feat_Handle::IsSetExcept_text().
|
protected |
Definition at line 1033 of file gff_writer.cpp.
References CSeqFeatData::eSubtype_oriT, CSeqFeatData::eSubtype_repeat_region, CSeq_feat_Handle::GetFeatSubtype(), CSeq_feat_Handle::GetQual(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Reimplemented in CGvfWriter.
Definition at line 524 of file gff_writer.cpp.
References fc, xAssignFeatureAttributesFormatIndependent(), and xAssignFeatureAttributesFormatSpecific().
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 537 of file gff_writer.cpp.
References fc, CGffFeatureRecord::SetGbKeyFrom(), xAssignFeatureAttributeCodeBreak(), xAssignFeatureAttributeDbxref(), xAssignFeatureAttributeEcNumbers(), xAssignFeatureAttributeException(), xAssignFeatureAttributeExonNumber(), xAssignFeatureAttributeExperiment(), xAssignFeatureAttributeFunction(), xAssignFeatureAttributeGeneBiotype(), xAssignFeatureAttributeIsOrdered(), xAssignFeatureAttributeMapLoc(), xAssignFeatureAttributeModelEvidence(), xAssignFeatureAttributeNote(), xAssignFeatureAttributeOldLocusTag(), xAssignFeatureAttributePartial(), xAssignFeatureAttributeProduct(), xAssignFeatureAttributeProteinId(), xAssignFeatureAttributePseudo(), xAssignFeatureAttributePseudoGene(), xAssignFeatureAttributeRptFamily(), xAssignFeatureAttributesGene(), xAssignFeatureAttributesGoMarkup(), xAssignFeatureAttributesQualifiers(), and xAssignFeatureAttributeTranslationTable().
Referenced by xAssignFeatureAttributes(), and CGff3Writer::xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Reimplemented in CGtfWriter, and CGff3Writer.
Definition at line 572 of file gff_writer.cpp.
Referenced by xAssignFeatureAttributes().
|
protectedvirtual |
Definition at line 869 of file gff_writer.cpp.
References CGffBaseRecord::AddAttribute(), fc, CSeq_feat_Handle::GetData(), CSeqFeatData_Base::IsGene(), CGffBaseRecord::SetAttribute(), and sGetClosestGeneRef().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protected |
Definition at line 1126 of file gff_writer.cpp.
References CUser_field_Base::GetData(), CUser_object_Base::GetData(), CSeq_feat_Handle::GetExt(), CUser_field_Base::C_Data::GetFields(), CUser_field_Base::GetLabel(), CWriteUtil::GetListOfGoIds(), CSeq_feat_Handle::GetNamedQual(), CObject_id_Base::GetStr(), CWriteUtil::GetStringsForGoMarkup(), CUser_field_Base::C_Data::IsFields(), CUser_field_Base::IsSetData(), CSeq_feat_Handle::IsSetExt(), CUser_field_Base::IsSetLabel(), CObject_id_Base::IsStr(), ITERATE, CGffBaseRecord::SetAttribute(), and CGffBaseRecord::SetAttributes().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
inlineprotectedvirtual |
Reimplemented in CGtfWriter, and CGff3Writer.
Definition at line 247 of file gff_writer.hpp.
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 630 of file gff_writer.cpp.
References CSeqFeatData_Base::GetCdregion(), CCdregion_Base::GetCode(), CSeq_feat_Handle::GetData(), CGenetic_code::GetId(), NStr::IntToString(), CSeqFeatData_Base::IsCdregion(), CCdregion_Base::IsSetCode(), CSeq_feat_Handle::IsSetData(), and CGffBaseRecord::SetAttribute().
Referenced by xAssignFeatureAttributesFormatIndependent().
|
protectedvirtual |
Definition at line 379 of file gff_writer.cpp.
References fc, xAssignFeatureAttributes(), xAssignFeatureEndpoints(), xAssignFeatureMethod(), xAssignFeaturePhase(), xAssignFeatureScore(), xAssignFeatureSeqId(), xAssignFeatureStrand(), and xAssignFeatureType().
Referenced by xAssignFeature(), and CGff3Writer::xAssignFeature().
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 498 of file gff_writer.cpp.
References eExtreme_Positional, CMappedFeat::GetLocation(), CSeq_loc::GetStart(), CSeq_loc::GetStop(), CSeq_loc::GetStrand(), CWriteUtil::GetTranssplicedEndpoints(), CWriteUtil::IsTransspliced(), CGffFeatureRecord::SetEndpoints(), and CGffBaseRecord::SetLocation().
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Reimplemented in CGvfWriter, CGtfWriter, and CGff3Writer.
Definition at line 487 of file gff_writer.cpp.
References CGffBaseRecord::SetMethod().
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 453 of file gff_writer.cpp.
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Definition at line 428 of file gff_writer.cpp.
References CSeq_feat_Handle::GetQual(), CSeq_feat_Handle::IsSetQual(), and CGffBaseRecord::SetScore().
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Definition at line 413 of file gff_writer.cpp.
References CGenbankIdResolve::Get(), GetBestId(), and CGffBaseRecord::SetSeqId().
Referenced by xAssignFeatureBasic(), and CGff3Writer::xWriteFeatureProtein().
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 474 of file gff_writer.cpp.
References eNa_strand_plus, CMappedFeat::GetLocation(), location, and CGffBaseRecord::SetStrand().
Referenced by xAssignFeatureBasic().
|
protectedvirtual |
Reimplemented in CGvfWriter, CGtfWriter, and CGff3Writer.
Definition at line 463 of file gff_writer.cpp.
References CGffBaseRecord::SetType().
Referenced by xAssignFeatureBasic().
|
protected |
Definition at line 1325 of file gff_writer.cpp.
References CSeq_annot_EditHandle::AddFeat(), eExtreme_Positional, CRNA_ref_Base::eType_mRNA, CGffFeatureContext::FeatTree(), CSeq_feat_Handle::GetAnnot(), CSeq_annot_Handle::GetEditHandle(), CSeq_feat_Handle::GetExcept(), CSeq_feat_Handle::GetExcept_text(), CMappedFeat::GetLocation(), CScope::GetObjectHandle(), CSeq_feat_Handle::GetScope(), HasAccaptableTranscriptParent(), CSeq_feat_Handle::IsSetExcept(), CSeq_feat_Handle::IsSetExcept_text(), CRef< C, Locker >::Reset(), CSeq_feat_Base::ResetPartial(), CSeq_feat_Base::SetData(), CSeq_feat_Base::SetExcept(), CSeq_feat_Base::SetExcept_text(), CSeq_feat_Base::SetLocation(), and xGeneratingMissingTranscripts().
Referenced by CGff3Writer::xWriteFeatureCds(), and CGtfWriter::xWriteRecordsCds().
|
inlineprotectedvirtual |
Definition at line 378 of file gff_writer.hpp.
References fGenerateMissingTranscripts, and CWriterBase::m_uFlags.
Referenced by xGenerateMissingTranscript().
|
staticprotected |
Definition at line 1362 of file gff_writer.cpp.
References _ASSERT, eNa_strand_minus, eNa_strand_plus, ctll::front(), and CWriteUtil::GetEffectiveStrand().
Referenced by CGtfWriter::xAssignFeaturesCds(), CGff3Writer::xWriteFeatureCds(), CGff3Writer::xWriteFeatureRecords(), CGff3Writer::xWriteFeatureRna(), CGff3Writer::xWriteFeatureTrna(), and CGff3Writer::xWriteNucleotideFeatureTransSpliced().
|
protectedvirtual |
Reimplemented in CGff3Writer.
Definition at line 226 of file gff_writer.cpp.
References fc, and xWriteFeature().
Referenced by CGtfWriter::x_WriteBioseqHandle().
Reimplemented from CFeatWriter.
Definition at line 299 of file gff_writer.cpp.
References fc, CSeq_feat_Handle::GetAnnot(), and xWriteFeature().
|
protectedvirtual |
Reimplemented in CGvfWriter, and CGtfWriter.
Definition at line 290 of file gff_writer.cpp.
Referenced by x_WriteBioseqHandle(), x_WriteSeqAnnotHandle(), x_WriteSeqEntryHandle(), xWriteAllChildren(), and xWriteFeature().
|
protected |
Definition at line 398 of file gff_writer.hpp.
Referenced by CGff3Writer::WriteHeader(), WriteHeader(), CGtfWriter::WriteHeader(), and CGvfWriter::WriteHeader().
Definition at line 397 of file gff_writer.hpp.
Referenced by CGff2Writer(), x_WriteAnnot(), CGff3Writer::x_WriteBioseqHandle(), CGff3Writer::xAssignAlignmentDensegGap(), CGff3Writer::xAssignAlignmentDensegMethod(), CGff3Writer::xAssignAlignmentDensegSeqId(), CGff3Writer::xAssignAlignmentDensegTarget(), CGff3Writer::xAssignAlignmentDensegType(), CGff3Writer::xAssignAlignmentSplicedMethod(), CGff3Writer::xAssignAlignmentSplicedSeqId(), CGff3Writer::xAssignAlignmentSplicedTarget(), CGff3Writer::xAssignAlignmentSplicedType(), CGff3Writer::xSplicedSegHasProteinProd(), CGff3Writer::xWriteAlignDenseg(), CGff3Writer::xWriteFeatureCds(), CGff3Writer::xWriteFeatureProtein(), CGff3Writer::xWriteProteinFeature(), and CGff3Writer::xWriteRecord().