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

Go to the SVN repository for this file.

1 /* $Id: add.h 102387 2024-04-29 15:07:50Z 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: add.h
27  *
28  * Author: Karl Sirotkin, Hsiu-Chuan Chen
29  *
30  * File Description:
31  *
32  */
33 
34 #ifndef ADD_H
35 #define ADD_H
36 
38 
40 
41 CRef<objects::CSeq_loc> fta_get_seqloc_int_whole(objects::CSeq_id& seq_id, size_t len);
42 
43 string tata_save(string_view);
44 
45 bool no_date(Parser::EFormat format, const TSeqdescList& descrs);
46 bool no_reference(const objects::CBioseq& bioseq);
47 
48 bool check_cds(const DataBlk& entry, Parser::EFormat format);
49 void err_install(const Indexblk* ibp, bool accver);
50 void SeqToDelta(objects::CBioseq& bioseq, Int2 tech);
51 void GapsToDelta(objects::CBioseq& bioseq, GapFeatsPtr gfp, bool* drop);
52 void AssemblyGapsToDelta(objects::CBioseq& bioseq, GapFeatsPtr gfp, bool* drop);
53 bool fta_strings_same(const char* s1, const char* s2);
54 
55 bool fta_check_htg_kwds(TKeywordList& kwds, IndexblkPtr ibp, objects::CMolInfo& mol_info);
56 bool fta_parse_tpa_tsa_block(objects::CBioseq& bioseq, char* offset, char* acnum, Int2 vernum, size_t len, Int2 col_data, bool tpa);
59 int fta_check_con_for_wgs(objects::CBioseq& bioseq);
60 
61 Int4 fta_fix_seq_loc_id(TSeqLocList& locs, ParserPtr pp, const char* location, const char* name, bool iscon);
62 void fta_parse_structured_comment(char* str, bool& bad, TUserObjVector& objs);
63 string GetQSFromFile(FILE* fd, const Indexblk* ibp);
64 void fta_remove_cleanup_user_object(objects::CSeq_entry& seq_entry);
65 void fta_tsa_tls_comment_dblink_check(const objects::CBioseq& bioseq, bool is_tsa);
66 void fta_set_molinfo_completeness(objects::CBioseq& bioseq, const Indexblk* ibp);
67 bool fta_number_is_huge(const char* s);
68 
69 void fta_create_far_fetch_policy_user_object(objects::CBioseq& bsp, Int4 num);
70 bool fta_if_valid_biosample(const char* id, bool dblink);
71 bool fta_if_valid_sra(const char* id, bool dblink);
72 void StripECO(string&);
73 void fta_add_hist(ParserPtr pp, objects::CBioseq& bioseq, objects::CGB_block::TExtra_accessions& extra_accs, Parser::ESource source, objects::CSeq_id::E_Choice acctype, bool pricon, const char* acc);
74 
75 char* StringRStr(char* where, const char* what);
77 
78 namespace objects
79 {
80  class CScope;
81 };
82 
83 bool g_DoesNotReferencePrimary(const objects::CDelta_ext& delta_ext, const objects::CSeq_id& primary, objects::CScope& scope);
84 
86 
87 #endif // ADD_H
User-defined methods of the data storage class.
void StripECO(string &)
Definition: add.cpp:2805
void SeqToDelta(objects::CBioseq &bioseq, Int2 tech)
bool fta_check_htg_kwds(TKeywordList &kwds, IndexblkPtr ibp, objects::CMolInfo &mol_info)
void AssemblyGapsToDelta(objects::CBioseq &bioseq, GapFeatsPtr gfp, bool *drop)
void fta_add_hist(ParserPtr pp, objects::CBioseq &bioseq, objects::CGB_block::TExtra_accessions &extra_accs, Parser::ESource source, objects::CSeq_id::E_Choice acctype, bool pricon, const char *acc)
void fta_remove_cleanup_user_object(objects::CSeq_entry &seq_entry)
string GetQSFromFile(FILE *fd, const Indexblk *ibp)
Definition: add.cpp:2662
void fta_set_molinfo_completeness(objects::CBioseq &bioseq, const Indexblk *ibp)
void fta_get_project_user_object(TSeqdescList &descrs, char *offset, Parser::EFormat format, bool *drop, Parser::ESource source)
Definition: add.cpp:1604
string tata_save(string_view)
Definition: add.cpp:148
bool fta_strings_same(const char *s1, const char *s2)
Definition: add.cpp:897
bool check_cds(const DataBlk &entry, Parser::EFormat format)
Definition: add.cpp:258
void fta_create_far_fetch_policy_user_object(objects::CBioseq &bsp, Int4 num)
bool fta_if_valid_sra(const char *id, bool dblink)
Definition: add.cpp:1730
bool fta_dblink_has_sra(const CRef< objects::CUser_object > &uop)
bool g_DoesNotReferencePrimary(const objects::CDelta_ext &delta_ext, const objects::CSeq_id &primary, objects::CScope &scope)
CRef< objects::CSeq_loc > fta_get_seqloc_int_whole(objects::CSeq_id &seq_id, size_t len)
void fta_tsa_tls_comment_dblink_check(const objects::CBioseq &bioseq, bool is_tsa)
int fta_check_con_for_wgs(objects::CBioseq &bioseq)
char * StringRStr(char *where, const char *what)
Definition: add.cpp:1432
bool no_reference(const objects::CBioseq &bioseq)
bool fta_parse_tpa_tsa_block(objects::CBioseq &bioseq, char *offset, char *acnum, Int2 vernum, size_t len, Int2 col_data, bool tpa)
void err_install(const Indexblk *ibp, bool accver)
Definition: add.cpp:297
bool no_date(Parser::EFormat format, const TSeqdescList &descrs)
Definition: add.cpp:190
void fta_get_dblink_user_object(TSeqdescList &descrs, char *offset, size_t len, Parser::ESource source, bool *drop, CRef< objects::CUser_object > &dbuop)
void GapsToDelta(objects::CBioseq &bioseq, GapFeatsPtr gfp, bool *drop)
bool fta_if_valid_biosample(const char *id, bool dblink)
Definition: add.cpp:1751
void fta_parse_structured_comment(char *str, bool &bad, TUserObjVector &objs)
Definition: add.cpp:2546
Int4 fta_fix_seq_loc_id(TSeqLocList &locs, ParserPtr pp, const char *location, const char *name, bool iscon)
Definition: add.cpp:2293
bool fta_number_is_huge(const char *s)
Definition: add.cpp:1053
CScope –.
Definition: scope.hpp:92
std::list< std::string > TKeywordList
Definition: ftablock.h:163
std::list< CRef< objects::CSeqdesc > > TSeqdescList
Definition: ftablock.h:61
std::vector< CRef< objects::CUser_object > > TUserObjVector
Definition: ftablock.h:62
static const char * str(char *buf, int n)
Definition: stats.c:84
int offset
Definition: replacements.h:160
static const char location[]
Definition: config.c:97
int16_t Int2
2-byte (16-bit) signed integer
Definition: ncbitype.h:100
int32_t Int4
4-byte (32-bit) signed integer
Definition: ncbitype.h:102
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
int len
const CharType(& source)[N]
Definition: pointer.h:1149
std::list< SeqLoc > TSeqLocList
static Format format
Definition: njn_ioutil.cpp:53
Modified on Fri Sep 20 14:58:28 2024 by modify_doxy.py rev. 669887