NCBI C++ ToolKit
PSeq.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /*
2 * $Id: PSeq.cpp 34848 2007-08-02 18:20:35Z chetvern $
3 *
4 * =========================================================================
5 *
6 * PUBLIC DOMAIN NOTICE
7 * National Center for Biotechnology Information
8 *
9 * This software/database is a "United States Government Work" under the
10 * terms of the United States Copyright Act. It was written as part of
11 * the author's official duties as a United States Government employee and
12 * thus cannot be copyrighted. This software/database is freely available
13 * to the public for use. The National Library of Medicine and the U.S.
14 * Government have not placed any restriction on its use or reproduction.
15 *
16 * Although all reasonable efforts have been taken to ensure the accuracy
17 * and reliability of the software and data, the NLM and the U.S.
18 * Government do not and cannt warrant the performance or results that
19 * may be obtained by using this software or data. The NLM and the U.S.
20 * Government disclaim all warranties, express or implied, including
21 * warranties of performance, merchantability or fitness for any particular
22 * purpose.
23 *
24 * Please cite the author in any work or product based on this material.
25 *
26 * =========================================================================
27 *
28 * Author: Boris Kiryutin
29 *
30 * =========================================================================
31 */
32 
33 #include <ncbi_pch.hpp>
34 #include <corelib/ncbistd.hpp>
35 
36 #include "PSeq.hpp"
37 #include <objmgr/seq_vector.hpp>
38 #include <objmgr/seq_vector_ci.hpp>
40 
42 BEGIN_SCOPE(prosplign)
43 
44 CPSeq::CPSeq(CScope& scope, const CSeq_id& protein)
45 {
46  CSeq_loc seqloc;
47  seqloc.SetWhole().Assign(protein);
48  CSeqVector seq_vec(seqloc,scope,CBioseq_Handle::eCoding_Iupac);
49  for (CSeqVector_CI i(seq_vec); i; ++i) {
50  seq.push_back(*i);
51  }
52 }
53 
55 {
56 }
57 
58 END_SCOPE(prosplign)
Definition: PSeq.hpp:51
~CPSeq(void)
Definition: PSeq.cpp:54
CScope –.
Definition: scope.hpp:92
CSeqVector –.
Definition: seq_vector.hpp:65
Include a standard set of the NCBI C++ Toolkit most basic headers.
void SetWhole(TWhole &v)
Definition: Seq_loc.hpp:982
@ eCoding_Iupac
Set coding to printable coding (Iupacna or Iupacaa)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
int i
#define const
Definition: zconf.h:232
Modified on Thu May 02 14:30:38 2024 by modify_doxy.py rev. 669887