cav_seqset.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: cav_seqset.hpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 19:38:19 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- /* $Id: cav_seqset.hpp,v 1000.1 2004/06/01 19:38:19 gouriano Exp $
- * ===========================================================================
- *
- * PUBLIC DOMAIN NOTICE
- * National Center for Biotechnology Information
- *
- * This software/database is a "United States Government Work" under the
- * terms of the United States Copyright Act. It was written as part of
- * the author's official duties as a United States Government employee and
- * thus cannot be copyrighted. This software/database is freely available
- * to the public for use. The National Library of Medicine and the U.S.
- * Government have not placed any restriction on its use or reproduction.
- *
- * Although all reasonable efforts have been taken to ensure the accuracy
- * and reliability of the software and data, the NLM and the U.S.
- * Government do not and cannot warrant the performance or results that
- * may be obtained by using this software or data. The NLM and the U.S.
- * Government disclaim all warranties, express or implied, including
- * warranties of performance, merchantability or fitness for any particular
- * purpose.
- *
- * Please cite the author in any work or product based on this material.
- *
- * ===========================================================================
- *
- * Authors: Paul Thiessen
- *
- * File Description:
- * Classes to hold sets of sequences
- *
- * ===========================================================================
- */
- #ifndef CAV_SEQUENCE_SET__HPP
- #define CAV_SEQUENCE_SET__HPP
- #include <corelib/ncbistl.hpp>
- #include <corelib/ncbiobj.hpp>
- #include <string>
- #include <list>
- #include <vector>
- #include <objects/seqset/Seq_entry.hpp>
- BEGIN_NCBI_SCOPE
- BEGIN_SCOPE(objects)
- class CBioseq_set;
- class CBioseq;
- class CSeq_id;
- END_SCOPE(objects)
- typedef list < CRef < objects::CSeq_entry > > SeqEntryList;
- class Sequence;
- class MasterSlaveAlignment;
- class SequenceSet
- {
- private:
- int status;
- void UnpackSeqSet(const objects::CBioseq_set& bss);
- void UnpackSeqEntry(const objects::CSeq_entry& seqEntry);
- public:
- SequenceSet(const objects::CSeq_entry& seqEntry);
- SequenceSet(const SeqEntryList& seqEntries);
- ~SequenceSet();
- typedef vector < const Sequence * > SequenceList;
- SequenceList sequences;
- int Status(void) const { return status; }
- // there is one and only one sequence in this set that will be the master
- // for all alignments of sequences from this set
- const Sequence *master;
- };
- class Sequence
- {
- private:
- int status;
- public:
- Sequence(const objects::CBioseq& bioseq);
- static const int NOT_SET;
- int gi, pdbChain, mmdbLink;
- string pdbID, sequenceString, accession, description;
- CConstRef < objects::CBioseq > bioseqASN;
- int Length(void) const { return sequenceString.size(); }
- objects::CSeq_id * CreateSeqId(void) const;
- string GetTitle(void) const;
- int Status(void) const { return status; }
- };
- END_NCBI_SCOPE
- #endif // CAV_SEQUENCE_SET__HPP
- /*
- * ---------------------------------------------------------------------------
- * $Log: cav_seqset.hpp,v $
- * Revision 1000.1 2004/06/01 19:38:19 gouriano
- * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- *
- * Revision 1.2 2004/05/08 10:56:34 thiessen
- * better handling of repeated sequences
- *
- * Revision 1.1 2003/03/19 19:05:31 thiessen
- * move again
- *
- * Revision 1.1 2003/03/19 05:33:43 thiessen
- * move to src/app/cddalignview
- *
- * Revision 1.6 2003/02/03 17:52:04 thiessen
- * move CVS Log to end of file
- *
- * Revision 1.5 2003/01/21 12:32:53 thiessen
- * move includes into src dir
- *
- * Revision 1.4 2001/01/29 18:13:41 thiessen
- * split into C-callable library + main
- *
- * Revision 1.3 2001/01/23 17:34:07 thiessen
- * add HTML output
- *
- * Revision 1.2 2001/01/22 15:54:12 thiessen
- * correctly set up ncbi namespacing
- *
- * Revision 1.1 2001/01/22 13:15:53 thiessen
- * initial checkin
- *
- */