NCBI C++ ToolKit
utilfeat.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: utilfeat.h 102411 2024-05-02 10:00:24Z stakhovv $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * File Name: utilfeat.h
27  *
28  * Author: Karl Sirotkin, Hsiu-Chuan Chen
29  *
30  * File Description:
31  *
32  */
33 
34 #ifndef _UTILFEAT_
35 #define _UTILFEAT_
36 
37 #define ftable 1 /* Seq-feat type */
38 
39 #include "loadfeat.h"
40 #include <optional>
41 
43 
44 bool SeqLocHaveFuzz(const objects::CSeq_loc& loc);
45 
46 string CpTheQualValue(const TQualVector& qlist, const char* qual);
47 optional<string> GetTheQualValue(TQualVector& qlist, const char* qual);
48 bool DeleteQual(TQualVector& qlist, const char* qual);
49 
50 Uint1 GetQualValueAa(const char* qval, bool checkseq);
51 bool GetGenomeInfo(objects::CBioSource& bsp, string_view bptr);
52 void MaybeCutGbblockSource(TEntryList& seq_entries);
53 
55 string location_to_string(const objects::CSeq_loc& loc);
56 
58 
59 #endif
list< CRef< objects::CSeq_entry > > TEntryList
static const char * str(char *buf, int n)
Definition: stats.c:84
string
Definition: cgiapp.hpp:690
uint8_t Uint1
1-byte (8-bit) unsigned integer
Definition: ncbitype.h:99
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
Uint1 GetQualValueAa(const char *qval, bool checkseq)
Definition: utilfeat.cpp:204
bool DeleteQual(TQualVector &qlist, const char *qual)
Definition: utilfeat.cpp:180
bool SeqLocHaveFuzz(const objects::CSeq_loc &loc)
bool GetGenomeInfo(objects::CBioSource &bsp, string_view bptr)
void MakeLocStrCompatible(std::string &str)
void MaybeCutGbblockSource(TEntryList &seq_entries)
Definition: utilfeat.cpp:435
optional< string > GetTheQualValue(TQualVector &qlist, const char *qual)
Definition: utilfeat.cpp:147
string location_to_string(const objects::CSeq_loc &loc)
string CpTheQualValue(const TQualVector &qlist, const char *qual)
Definition: utilfeat.cpp:120
std::vector< CRef< objects::CGb_qual > > TQualVector
Definition: xgbfeat.h:12
Modified on Fri Sep 20 14:57:33 2024 by modify_doxy.py rev. 669887