NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CCdFromFasta Class Reference

Search Toolkit Book for CCdFromFasta

#include <algo/structure/cd_utils/cuCdFromFasta.hpp>

+ Inheritance diagram for CCdFromFasta:
+ Collaboration diagram for CCdFromFasta:

Classes

struct  Fasta2CdParams
 

Public Types

typedef CSeqAnnotFromFasta::MasteringMethod TMasterMethod
 
- Public Types inherited from CCdCore
enum  AlignmentSrc { NORMAL_ALIGNMENT = 0 , PENDING_ALIGNMENT }
 
enum  AlignmentUsage { USE_NORMAL_ALIGNMENT =0 , USE_PENDING_ALIGNMENT , USE_ALL_ALIGNMENT }
 
- Public Types inherited from CCdd_Base
enum class  E_memberIndex {
  e__allMandatory = 0 , e_name , e_id , e_description ,
  e_seqannot , e_features , e_sequences , e_profile_range ,
  e_trunc_master , e_posfreq , e_scoremat , e_distance ,
  e_parent , e_children , e_siblings , e_neighbors ,
  e_pending , e_rejects , e_master3d , e_alignannot ,
  e_style_dictionary , e_user_annotations , e_ancestors , e_scoreparams ,
  e_seqtree
}
 
typedef string TName
 
typedef CCdd_id_set TId
 
typedef CCdd_descr_set TDescription
 
typedef list< CRef< CSeq_annot > > TSeqannot
 
typedef CBiostruc_annot_set TFeatures
 
typedef CSeq_entry TSequences
 
typedef CSeq_interval TProfile_range
 
typedef CBioseq TTrunc_master
 
typedef CMatrix TPosfreq
 
typedef CMatrix TScoremat
 
typedef CTriangle TDistance
 
typedef CCdd_id TParent
 
typedef CCdd_id_set TChildren
 
typedef CCdd_id_set TSiblings
 
typedef CCdd_id_set TNeighbors
 
typedef list< CRef< CUpdate_align > > TPending
 
typedef list< CRef< CReject_id > > TRejects
 
typedef list< CRef< CSeq_id > > TMaster3d
 
typedef CAlign_annot_set TAlignannot
 
typedef CCn3d_style_dictionary TStyle_dictionary
 
typedef CCn3d_user_annotations TUser_annotations
 
typedef list< CRef< CDomain_parent > > TAncestors
 
typedef CPssmWithParameters TScoreparams
 
typedef CSequence_tree TSeqtree
 
typedef Tparent::CMemberIndex< E_memberIndex, 25 > TmemberIndex
 
- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 

Public Member Functions

 CCdFromFasta ()
 
 CCdFromFasta (const Fasta2CdParams &params)
 
 CCdFromFasta (const string &fastaFile, const Fasta2CdParams &params, CBasicFastaWrapper *fastaIOWrapper=NULL)
 
virtual ~CCdFromFasta (void)
 
void SetParameters (const Fasta2CdParams &params)
 
bool ImportAlignmentData (const string &fastaFile, bool cleanUp=false)
 
bool UpdateSourceId (const string &sourceId, int version=0)
 
bool WriteToFile (const string &outputFile) const
 
bool WasInputError () const
 
string GetFastaInputErrorMsg () const
 
string GetDeflineReadFromFile (unsigned int index) const
 
string GetSequenceReadFromFile (unsigned int index) const
 
string GetColumnReadFromFile (unsigned int column) const
 
unsigned int GetAllColumnsReadFromFile (map< unsigned int, string > &columns) const
 
unsigned int GetGaplessColumnsReadFromFile (map< unsigned int, string > &gaplessColumns) const
 
unsigned int GetInitialMasterSequenceIndex () const
 
void ResetInitialMasterSequenceIndex ()
 
- Public Member Functions inherited from CCdCore
 CCdCore (void)
 
virtual ~CCdCore (void)
 
string GetAccession (int &Version) const
 
string GetAccession () const
 
void SetAccession (string Accession, int Version)
 
void SetAccession (string Accession)
 
void EraseUID ()
 
int GetUID () const
 
bool HasCddId (const CCdd_id &id) const
 
string GetLongDescription ()
 
string GetUpdateDate ()
 
int GetNumRows () const
 
int GetNumSequences () const
 
int GetNumRowsWithSequences () const
 
int GetAlignmentLength () const
 
int GetPSSMLength () const
 
int GetNumBlocks () const
 
bool GetCDBlockLengths (vector< int > &lengths) const
 
bool GetBlockStartsForRow (int rowIndex, vector< int > &starts) const
 
int GetSeqIndexForRowIndex (int rowIndex) const
 
int GetMasterSeqIndex () const
 
int GetSeqIndex (const CRef< CSeq_id > &SeqID) const
 
int GetNthMatchFor (CRef< CSeq_id > &ID, int N)
 
int GetAllRowIndicesForSeqId (const CRef< CSeq_id > &SeqID, list< int > &rows) const
 
int GetAllRowIndicesForSeqId (const CRef< CSeq_id > &SeqID, vector< int > &rows) const
 
bool GetGI (int Row, TGi &GI, bool ignorePDBs=true)
 
bool GetPDB (int Row, const CPDB_seq_id *&pPDB)
 
int GetLowerBound (int Row) const
 
int GetUpperBound (int Row) const
 
bool Get_GI_or_PDB_String_FromAlignment (int RowIndex, std::string &Str, bool Pad, int Len) const
 
string GetSpeciesForRow (int Row)
 
string GetSequenceStringByRow (int rowId)
 
bool GetSeqEntryForRow (int rowId, CRef< CSeq_entry > &seqEntry) const
 
bool GetBioseqForRow (int rowId, CRef< CBioseq > &bioseq)
 
TGi GetGIFromSequenceList (int SeqIndex) const
 
string GetDefline (int SeqIndex) const
 
string GetSequenceStringByIndex (int SeqIndex)
 
string GetSpeciesForIndex (int SeqIndex)
 
bool GetSeqEntryForIndex (int seqIndex, CRef< CSeq_entry > &seqEntry) const
 
bool GetBioseqForIndex (int seqIndex, CRef< CBioseq > &bioseq)
 
bool CopyBioseqForSeqId (const CRef< CSeq_id > &seqId, CRef< CBioseq > &bioseq) const
 
bool GetBioseqWithSeqId (const CRef< CSeq_id > &seqid, const CBioseq *&bioseq) const
 
bool HasSeqId (const CRef< CSeq_id > &ID) const
 
bool HasSeqId (const CRef< CSeq_id > &ID, int &RowIndex) const
 
bool GetSeqIDForRow (int Pair, int DenDiagRow, CRef< CSeq_id > &SeqID) const
 
bool GetSeqIDFromAlignment (int RowIndex, CRef< CSeq_id > &SeqID) const
 
bool GetSeqIDForIndex (int SeqIndex, CRef< CSeq_id > &SeqID) const
 
bool GetSeqIDs (int SeqIndex, list< CRef< CSeq_id > > &SeqIDs)
 
const list< CRef< CSeq_id > > & GetSeqIDs (int SeqIndex) const
 
bool EraseOtherRows (const std::vector< int > &KeepRows)
 
bool EraseTheseRows (const std::vector< int > &TossRows)
 
void EraseSequence (int SeqIndex)
 
void EraseSequences ()
 
void ErasePendingRows (set< int > &rows)
 
void ErasePendingRow (int row)
 
bool Has3DMaster () const
 
int Num3DAlignments () const
 
bool GetRowsForMmdbId (int mmdbId, list< int > &rows) const
 
bool GetRowsWithMmdbId (vector< int > &rows) const
 
bool GetMmdbId (int SeqIndex, int &id) const
 
bool SynchronizeMaster3D (bool checkRow1WhenConsensusMaster=true)
 
int MapPositionToOtherRow (int thisRow, int thisPos, int otherRow) const
 
int MapPositionToOtherRow (const CRef< CSeq_align > &seqAlign, int thisPos, CoordMapDir mapDir) const
 
bool IsSeqAligns () const
 
bool GetAlignment (CRef< CSeq_annot > &seqAnnot)
 
const CRef< CSeq_annot > & GetAlignment () const
 
const list< CRef< CSeq_align > > & GetSeqAligns () const
 
list< CRef< CSeq_align > > & GetSeqAligns ()
 
bool GetSeqAlign (int Row, CRef< CSeq_align > &seqAlign)
 
const CRef< CSeq_align > & GetSeqAlign (int Row) const
 
bool UsesConsensusSequenceAsMaster () const
 
bool HasConsensusSequence () const
 
int GetRowsWithConsensus (vector< int > &consensusRows) const
 
bool FindConsensusInSequenceList (vector< int > *indices=NULL) const
 
int GetNumPending () const
 
bool AddSeqAlign (CRef< CSeq_align > seqAlign)
 
bool AddPendingSeqAlign (CRef< CSeq_align > seqAlign)
 
bool AddSequence (CRef< CSeq_entry > seqAntry)
 
void Clear ()
 
void SetComment (CCdd_descr::TComment oldComment, CCdd_descr::TComment newComment)
 
bool AddComment (const string &comment)
 
bool AddOthername (const string &othername)
 
bool AddTitle (const string &title)
 
bool AddPmidReference (TEntrezId pmid)
 
bool AddSource (const string &source, bool removeExistingSources=true)
 
bool AddCreateDate ()
 
string GetTitle () const
 
unsigned int GetTitles (vector< string > &titles) const
 
bool RemoveCddDescrsOfType (int cddDescrChoice)
 
bool AllResiduesInRangeAligned (int rowId, int from, int to) const
 
bool AlignAnnotsValid (string *err=NULL) const
 
int GetNumAlignmentAnnotations ()
 
string GetAlignmentAnnotationDescription (int Index)
 
bool HasParentType (EClassicalOrComponent parentType) const
 
bool HasParentType (CDomain_parent::EParent_type parentType) const
 
bool GetClassicalParentId (const CCdd_id *&parentId) const
 
string GetClassicalParentAccession (int &Version) const
 
string GetClassicalParentAccession () const
 
- Public Member Functions inherited from CCdd
 CCdd (void)
 
 ~CCdd (void)
 
- Public Member Functions inherited from CCdd_Base
 CCdd_Base (void)
 
virtual ~CCdd_Base (void)
 
 DECLARE_INTERNAL_TYPE_INFO ()
 
bool IsSetName (void) const
 a short name (can be the accession..) Check if a value has been assigned to Name data member. More...
 
bool CanGetName (void) const
 Check if it is safe to call GetName method. More...
 
void ResetName (void)
 Reset Name data member. More...
 
const TNameGetName (void) const
 Get the Name member data. More...
 
void SetName (const TName &value)
 Assign a value to Name data member. More...
 
void SetName (TName &&value)
 
TNameSetName (void)
 Assign a value to Name data member. More...
 
bool IsSetId (void) const
 this CD's Ids Check if a value has been assigned to Id data member. More...
 
bool CanGetId (void) const
 Check if it is safe to call GetId method. More...
 
void ResetId (void)
 Reset Id data member. More...
 
const TIdGetId (void) const
 Get the Id member data. More...
 
void SetId (TId &value)
 Assign a value to Id data member. More...
 
TIdSetId (void)
 Assign a value to Id data member. More...
 
bool IsSetDescription (void) const
 status, references, etc. More...
 
bool CanGetDescription (void) const
 Check if it is safe to call GetDescription method. More...
 
void ResetDescription (void)
 Reset Description data member. More...
 
const TDescriptionGetDescription (void) const
 Get the Description member data. More...
 
void SetDescription (TDescription &value)
 Assign a value to Description data member. More...
 
TDescriptionSetDescription (void)
 Assign a value to Description data member. More...
 
bool IsSetSeqannot (void) const
 contains the CD alignment Check if a value has been assigned to Seqannot data member. More...
 
bool CanGetSeqannot (void) const
 Check if it is safe to call GetSeqannot method. More...
 
void ResetSeqannot (void)
 Reset Seqannot data member. More...
 
const TSeqannotGetSeqannot (void) const
 Get the Seqannot member data. More...
 
TSeqannotSetSeqannot (void)
 Assign a value to Seqannot data member. More...
 
bool IsSetFeatures (void) const
 contains structure alignment data or "core" definitions Check if a value has been assigned to Features data member. More...
 
bool CanGetFeatures (void) const
 Check if it is safe to call GetFeatures method. More...
 
void ResetFeatures (void)
 Reset Features data member. More...
 
const TFeaturesGetFeatures (void) const
 Get the Features member data. More...
 
void SetFeatures (TFeatures &value)
 Assign a value to Features data member. More...
 
TFeaturesSetFeatures (void)
 Assign a value to Features data member. More...
 
bool IsSetSequences (void) const
 store as bioseq-set inside seq-entry Check if a value has been assigned to Sequences data member. More...
 
bool CanGetSequences (void) const
 Check if it is safe to call GetSequences method. More...
 
void ResetSequences (void)
 Reset Sequences data member. More...
 
const TSequencesGetSequences (void) const
 Get the Sequences member data. More...
 
void SetSequences (TSequences &value)
 Assign a value to Sequences data member. More...
 
TSequencesSetSequences (void)
 Assign a value to Sequences data member. More...
 
bool IsSetProfile_range (void) const
 profile for this region only also stores the Seq-id of the master Check if a value has been assigned to Profile_range data member. More...
 
bool CanGetProfile_range (void) const
 Check if it is safe to call GetProfile_range method. More...
 
void ResetProfile_range (void)
 Reset Profile_range data member. More...
 
const TProfile_rangeGetProfile_range (void) const
 Get the Profile_range member data. More...
 
void SetProfile_range (TProfile_range &value)
 Assign a value to Profile_range data member. More...
 
TProfile_rangeSetProfile_range (void)
 Assign a value to Profile_range data member. More...
 
bool IsSetTrunc_master (void) const
 holds the truncated master, which may be something like a consensus, uses the same sequence coordinate frame as the profile-range Check if a value has been assigned to Trunc_master data member. More...
 
bool CanGetTrunc_master (void) const
 Check if it is safe to call GetTrunc_master method. More...
 
void ResetTrunc_master (void)
 Reset Trunc_master data member. More...
 
const TTrunc_masterGetTrunc_master (void) const
 Get the Trunc_master member data. More...
 
void SetTrunc_master (TTrunc_master &value)
 Assign a value to Trunc_master data member. More...
 
TTrunc_masterSetTrunc_master (void)
 Assign a value to Trunc_master data member. More...
 
bool IsSetPosfreq (void) const
 relative residue frequencies Check if a value has been assigned to Posfreq data member. More...
 
bool CanGetPosfreq (void) const
 Check if it is safe to call GetPosfreq method. More...
 
void ResetPosfreq (void)
 Reset Posfreq data member. More...
 
const TPosfreqGetPosfreq (void) const
 Get the Posfreq member data. More...
 
void SetPosfreq (TPosfreq &value)
 Assign a value to Posfreq data member. More...
 
TPosfreqSetPosfreq (void)
 Assign a value to Posfreq data member. More...
 
bool IsSetScoremat (void) const
 Position dependent score matrix Check if a value has been assigned to Scoremat data member. More...
 
bool CanGetScoremat (void) const
 Check if it is safe to call GetScoremat method. More...
 
void ResetScoremat (void)
 Reset Scoremat data member. More...
 
const TScorematGetScoremat (void) const
 Get the Scoremat member data. More...
 
void SetScoremat (TScoremat &value)
 Assign a value to Scoremat data member. More...
 
TScorematSetScoremat (void)
 Assign a value to Scoremat data member. More...
 
bool IsSetDistance (void) const
 pairwise distances for all seqs. More...
 
bool CanGetDistance (void) const
 Check if it is safe to call GetDistance method. More...
 
void ResetDistance (void)
 Reset Distance data member. More...
 
const TDistanceGetDistance (void) const
 Get the Distance member data. More...
 
void SetDistance (TDistance &value)
 Assign a value to Distance data member. More...
 
TDistanceSetDistance (void)
 Assign a value to Distance data member. More...
 
bool IsSetParent (void) const
 this CD is the result of a split Check if a value has been assigned to Parent data member. More...
 
bool CanGetParent (void) const
 Check if it is safe to call GetParent method. More...
 
void ResetParent (void)
 Reset Parent data member. More...
 
const TParentGetParent (void) const
 Get the Parent member data. More...
 
void SetParent (TParent &value)
 Assign a value to Parent data member. More...
 
TParentSetParent (void)
 Assign a value to Parent data member. More...
 
bool IsSetChildren (void) const
 this CD has been split, not used Check if a value has been assigned to Children data member. More...
 
bool CanGetChildren (void) const
 Check if it is safe to call GetChildren method. More...
 
void ResetChildren (void)
 Reset Children data member. More...
 
const TChildrenGetChildren (void) const
 Get the Children member data. More...
 
void SetChildren (TChildren &value)
 Assign a value to Children data member. More...
 
TChildrenSetChildren (void)
 Assign a value to Children data member. More...
 
bool IsSetSiblings (void) const
 related CDs (common hits), clusters Check if a value has been assigned to Siblings data member. More...
 
bool CanGetSiblings (void) const
 Check if it is safe to call GetSiblings method. More...
 
void ResetSiblings (void)
 Reset Siblings data member. More...
 
const TSiblingsGetSiblings (void) const
 Get the Siblings member data. More...
 
void SetSiblings (TSiblings &value)
 Assign a value to Siblings data member. More...
 
TSiblingsSetSiblings (void)
 Assign a value to Siblings data member. More...
 
bool IsSetNeighbors (void) const
 co-occurring CDs, not used Check if a value has been assigned to Neighbors data member. More...
 
bool CanGetNeighbors (void) const
 Check if it is safe to call GetNeighbors method. More...
 
void ResetNeighbors (void)
 Reset Neighbors data member. More...
 
const TNeighborsGetNeighbors (void) const
 Get the Neighbors member data. More...
 
void SetNeighbors (TNeighbors &value)
 Assign a value to Neighbors data member. More...
 
TNeighborsSetNeighbors (void)
 Assign a value to Neighbors data member. More...
 
bool IsSetPending (void) const
 contains alignments from update or "lower panel" Check if a value has been assigned to Pending data member. More...
 
bool CanGetPending (void) const
 Check if it is safe to call GetPending method. More...
 
void ResetPending (void)
 Reset Pending data member. More...
 
const TPendingGetPending (void) const
 Get the Pending member data. More...
 
TPendingSetPending (void)
 Assign a value to Pending data member. More...
 
bool IsSetRejects (void) const
 SeqIds of rejected CD- members, ignore in update Check if a value has been assigned to Rejects data member. More...
 
bool CanGetRejects (void) const
 Check if it is safe to call GetRejects method. More...
 
void ResetRejects (void)
 Reset Rejects data member. More...
 
const TRejectsGetRejects (void) const
 Get the Rejects member data. More...
 
TRejectsSetRejects (void)
 Assign a value to Rejects data member. More...
 
bool IsSetMaster3d (void) const
 record if CD has a 3D representative Check if a value has been assigned to Master3d data member. More...
 
bool CanGetMaster3d (void) const
 Check if it is safe to call GetMaster3d method. More...
 
void ResetMaster3d (void)
 Reset Master3d data member. More...
 
const TMaster3dGetMaster3d (void) const
 Get the Master3d member data. More...
 
TMaster3dSetMaster3d (void)
 Assign a value to Master3d data member. More...
 
bool IsSetAlignannot (void) const
 alignment annotation Check if a value has been assigned to Alignannot data member. More...
 
bool CanGetAlignannot (void) const
 Check if it is safe to call GetAlignannot method. More...
 
void ResetAlignannot (void)
 Reset Alignannot data member. More...
 
const TAlignannotGetAlignannot (void) const
 Get the Alignannot member data. More...
 
void SetAlignannot (TAlignannot &value)
 Assign a value to Alignannot data member. More...
 
TAlignannotSetAlignannot (void)
 Assign a value to Alignannot data member. More...
 
bool IsSetStyle_dictionary (void) const
 record rendering styles Check if a value has been assigned to Style_dictionary data member. More...
 
bool CanGetStyle_dictionary (void) const
 Check if it is safe to call GetStyle_dictionary method. More...
 
void ResetStyle_dictionary (void)
 Reset Style_dictionary data member. More...
 
const TStyle_dictionaryGetStyle_dictionary (void) const
 Get the Style_dictionary member data. More...
 
void SetStyle_dictionary (TStyle_dictionary &value)
 Assign a value to Style_dictionary data member. More...
 
TStyle_dictionarySetStyle_dictionary (void)
 Assign a value to Style_dictionary data member. More...
 
bool IsSetUser_annotations (void) const
 user annotations in Cn3D Check if a value has been assigned to User_annotations data member. More...
 
bool CanGetUser_annotations (void) const
 Check if it is safe to call GetUser_annotations method. More...
 
void ResetUser_annotations (void)
 Reset User_annotations data member. More...
 
const TUser_annotationsGetUser_annotations (void) const
 Get the User_annotations member data. More...
 
void SetUser_annotations (TUser_annotations &value)
 Assign a value to User_annotations data member. More...
 
TUser_annotationsSetUser_annotations (void)
 Assign a value to User_annotations data member. More...
 
bool IsSetAncestors (void) const
 list of parents Check if a value has been assigned to Ancestors data member. More...
 
bool CanGetAncestors (void) const
 Check if it is safe to call GetAncestors method. More...
 
void ResetAncestors (void)
 Reset Ancestors data member. More...
 
const TAncestorsGetAncestors (void) const
 Get the Ancestors member data. More...
 
TAncestorsSetAncestors (void)
 Assign a value to Ancestors data member. More...
 
bool IsSetScoreparams (void) const
 Check if a value has been assigned to Scoreparams data member. More...
 
bool CanGetScoreparams (void) const
 Check if it is safe to call GetScoreparams method. More...
 
void ResetScoreparams (void)
 Reset Scoreparams data member. More...
 
const TScoreparamsGetScoreparams (void) const
 Get the Scoreparams member data. More...
 
void SetScoreparams (TScoreparams &value)
 Assign a value to Scoreparams data member. More...
 
TScoreparamsSetScoreparams (void)
 Assign a value to Scoreparams data member. More...
 
bool IsSetSeqtree (void) const
 Check if a value has been assigned to Seqtree data member. More...
 
bool CanGetSeqtree (void) const
 Check if it is safe to call GetSeqtree method. More...
 
void ResetSeqtree (void)
 Reset Seqtree data member. More...
 
const TSeqtreeGetSeqtree (void) const
 Get the Seqtree member data. More...
 
void SetSeqtree (TSeqtree &value)
 Assign a value to Seqtree data member. More...
 
TSeqtreeSetSeqtree (void)
 Assign a value to Seqtree data member. More...
 
virtual void Reset (void)
 Reset the whole object. More...
 
- Public Member Functions inherited from CSerialObject
 CSerialObject (void)
 
virtual ~CSerialObject (void)
 
virtual const CTypeInfoGetThisTypeInfo (void) const =0
 
virtual void Assign (const CSerialObject &source, ESerialRecursionMode how=eRecursive)
 Set object to copy of another one. More...
 
virtual bool Equals (const CSerialObject &object, ESerialRecursionMode how=eRecursive) const
 Check if both objects contain the same values. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
void ThrowUnassigned (TMemberIndex index) const
 
void ThrowUnassigned (TMemberIndex index, const char *file_name, int file_line) const
 
bool HasNamespaceName (void) const
 Check if object data type has namespace name. More...
 
const stringGetNamespaceName (void) const
 Get namespace name. More...
 
bool HasNamespacePrefix (void) const
 Check if data type has namespace prefix. More...
 
const stringGetNamespacePrefix (void) const
 Get namespace prefix. More...
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (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...
 
- Public Member Functions inherited from CDebugDumpable
 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
 

Private Member Functions

void CleanUpFastaIO ()
 
void InitializeParameters (const Fasta2CdParams *params=NULL)
 
unsigned int GetColumnsReadFromFile (map< unsigned int, string > &columns, bool skipGappedColumns) const
 
 CCdFromFasta (const CCdFromFasta &value)
 
CCdFromFastaoperator= (const CCdFromFasta &value)
 

Private Attributes

string m_fastaInputErrorMsg
 
Fasta2CdParams m_parameters
 
unsigned int m_initialMasterSequenceIndex
 
bool m_ownsFastaIO
 
CBasicFastaWrapperm_fastaIO
 

Additional Inherited Members

- Static Public Member Functions inherited from CSerialObject
static void SetVerifyDataThread (ESerialVerifyData verify)
 
static void SetVerifyDataGlobal (ESerialVerifyData verify)
 
static string UnassignedString (void)
 
static CStringUTF8 UnassignedStringUTF8 (void)
 
static char UnassignedByte (void)
 
- Static Public Member Functions inherited from CObject
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 Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Static Public Attributes inherited from CSerialObject
static const char * ms_UnassignedStr = "<*unassigned*>"
 
static const char ms_UnassignedByte = char(0xcd)
 
- Static Public Attributes inherited from CObject
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...
 
- Protected Member Functions inherited from CCdCore
bool AddCddDescr (CRef< CCdd_descr > &descr)
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Detailed Description

Definition at line 46 of file cuCdFromFasta.hpp.

Member Typedef Documentation

◆ TMasterMethod

Definition at line 50 of file cuCdFromFasta.hpp.

Constructor & Destructor Documentation

◆ CCdFromFasta() [1/4]

CCdFromFasta::CCdFromFasta ( )

Definition at line 57 of file cuCdFromFasta.cpp.

References InitializeParameters(), m_fastaInputErrorMsg, and m_ownsFastaIO.

◆ CCdFromFasta() [2/4]

CCdFromFasta::CCdFromFasta ( const Fasta2CdParams params)

Definition at line 64 of file cuCdFromFasta.cpp.

References InitializeParameters(), m_fastaInputErrorMsg, and m_ownsFastaIO.

◆ CCdFromFasta() [3/4]

CCdFromFasta::CCdFromFasta ( const string fastaFile,
const Fasta2CdParams params,
CBasicFastaWrapper fastaIOWrapper = NULL 
)

◆ ~CCdFromFasta()

CCdFromFasta::~CCdFromFasta ( void  )
virtual

Definition at line 52 of file cuCdFromFasta.cpp.

◆ CCdFromFasta() [4/4]

CCdFromFasta::CCdFromFasta ( const CCdFromFasta value)
private

Member Function Documentation

◆ CleanUpFastaIO()

void CCdFromFasta::CleanUpFastaIO ( )
inlineprivate

Definition at line 140 of file cuCdFromFasta.hpp.

References m_fastaIO, m_ownsFastaIO, and NULL.

Referenced by ImportAlignmentData().

◆ GetAllColumnsReadFromFile()

unsigned int CCdFromFasta::GetAllColumnsReadFromFile ( map< unsigned int, string > &  columns) const

Definition at line 262 of file cuCdFromFasta.cpp.

References GetColumnsReadFromFile().

◆ GetColumnReadFromFile()

string CCdFromFasta::GetColumnReadFromFile ( unsigned int  column) const

◆ GetColumnsReadFromFile()

unsigned int CCdFromFasta::GetColumnsReadFromFile ( map< unsigned int, string > &  columns,
bool  skipGappedColumns 
) const
private

◆ GetDeflineReadFromFile()

string CCdFromFasta::GetDeflineReadFromFile ( unsigned int  index) const

◆ GetFastaInputErrorMsg()

string CCdFromFasta::GetFastaInputErrorMsg ( ) const
inline

Definition at line 91 of file cuCdFromFasta.hpp.

References m_fastaInputErrorMsg.

◆ GetGaplessColumnsReadFromFile()

unsigned int CCdFromFasta::GetGaplessColumnsReadFromFile ( map< unsigned int, string > &  gaplessColumns) const

Definition at line 265 of file cuCdFromFasta.cpp.

References GetColumnsReadFromFile().

◆ GetInitialMasterSequenceIndex()

unsigned int CCdFromFasta::GetInitialMasterSequenceIndex ( ) const
inline

Definition at line 122 of file cuCdFromFasta.hpp.

References m_initialMasterSequenceIndex.

◆ GetSequenceReadFromFile()

string CCdFromFasta::GetSequenceReadFromFile ( unsigned int  index) const

◆ ImportAlignmentData()

bool CCdFromFasta::ImportAlignmentData ( const string fastaFile,
bool  cleanUp = false 
)

◆ InitializeParameters()

void CCdFromFasta::InitializeParameters ( const Fasta2CdParams params = NULL)
private

◆ operator=()

CCdFromFasta& CCdFromFasta::operator= ( const CCdFromFasta value)
private

◆ ResetInitialMasterSequenceIndex()

void CCdFromFasta::ResetInitialMasterSequenceIndex ( )

◆ SetParameters()

void CCdFromFasta::SetParameters ( const Fasta2CdParams params)
inline

Definition at line 76 of file cuCdFromFasta.hpp.

References InitializeParameters().

◆ UpdateSourceId()

bool CCdFromFasta::UpdateSourceId ( const string sourceId,
int  version = 0 
)

◆ WasInputError()

bool CCdFromFasta::WasInputError ( ) const
inline

Definition at line 90 of file cuCdFromFasta.hpp.

References m_fastaInputErrorMsg.

◆ WriteToFile()

bool CCdFromFasta::WriteToFile ( const string outputFile) const

Definition at line 361 of file cuCdFromFasta.cpp.

References NULL, result, CDirEntry::SplitPath(), and WriteASNToFile().

Member Data Documentation

◆ m_fastaInputErrorMsg

string CCdFromFasta::m_fastaInputErrorMsg
private

◆ m_fastaIO

CBasicFastaWrapper* CCdFromFasta::m_fastaIO
private

◆ m_initialMasterSequenceIndex

unsigned int CCdFromFasta::m_initialMasterSequenceIndex
private

◆ m_ownsFastaIO

bool CCdFromFasta::m_ownsFastaIO
private

Definition at line 136 of file cuCdFromFasta.hpp.

Referenced by CCdFromFasta(), and CleanUpFastaIO().

◆ m_parameters

Fasta2CdParams CCdFromFasta::m_parameters
private

Definition at line 128 of file cuCdFromFasta.hpp.

Referenced by ImportAlignmentData(), and InitializeParameters().


The documentation for this class was generated from the following files:
Modified on Mon Sep 25 23:16:32 2023 by modify_doxy.py rev. 669887