NCBI C Toolkit Cross Reference

C/api/asn2gnbk.h


  1 /*   asn2gnbk.h
  2 * ===========================================================================
  3 *
  4 *                            PUBLIC DOMAIN NOTICE
  5 *            National Center for Biotechnology Information (NCBI)
  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 do not place any restriction on its use or reproduction.
 13 *  We would, however, appreciate having the NCBI and the author cited in
 14 *  any work or product based on this material
 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 cannot 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 * ===========================================================================
 25 *
 26 * File Name:  asn2gnbk.h
 27 *
 28 * Author:  Karl Sirotkin, Tom Madden, Tatiana Tatusov, Jonathan Kans
 29 *
 30 * Version Creation Date:   10/21/98
 31 *
 32 * $Revision: 6.79 $
 33 *
 34 * File Description:  New GenBank flatfile generator
 35 *
 36 * Modifications:  
 37 * --------------------------------------------------------------------------
 38 * ==========================================================================
 39 */
 40 
 41 #ifndef _ASN2NGNBK_
 42 #define _ASN2NGNBK_
 43 
 44 #include <ncbi.h>
 45 #include <objall.h>
 46 
 47 #undef NLM_EXTERN
 48 #ifdef NLM_IMPORT
 49 #define NLM_EXTERN NLM_IMPORT
 50 #else
 51 #define NLM_EXTERN extern
 52 #endif
 53 
 54 #ifdef __cplusplus
 55 extern "C" {
 56 #endif
 57 
 58 /* choices of format, mode, and style */
 59 
 60 typedef enum {
 61   GENBANK_FMT = 1,
 62   EMBL_FMT,
 63   GENPEPT_FMT,
 64   EMBLPEPT_FMT,
 65   FTABLE_FMT
 66 } FmtType;
 67 
 68 typedef enum {
 69   RELEASE_MODE = 1,
 70   ENTREZ_MODE,
 71   SEQUIN_MODE,
 72   DUMP_MODE
 73 } ModType;
 74 
 75 typedef enum {
 76   NORMAL_STYLE = 1,
 77   SEGMENT_STYLE,
 78   MASTER_STYLE,
 79   CONTIG_STYLE
 80 } StlType;
 81 
 82 /* bit flags for modifying behavior */
 83 
 84 typedef unsigned long FlgType;
 85 
 86 #define CREATE_HTML_FLATFILE       1
 87 #define CREATE_XML_GBSEQ_FILE      2
 88 #define CREATE_ASN_GBSEQ_FILE      3
 89 
 90 #define SHOW_CONTIG_FEATURES       4
 91 #define SHOW_CONTIG_SOURCES        8
 92 
 93 #define SHOW_FAR_TRANSLATION      16
 94 #define TRANSLATE_IF_NO_PRODUCT   32
 95 #define ALWAYS_TRANSLATE_CDS      48
 96 
 97 #define SHOW_FAR_TRANSCRIPTION    16
 98 #define TRANSCRIBE_IF_NO_PRODUCT  32
 99 #define ALWAYS_TRANSCRIBE_MRNA    48
100 
101 #define REFSEQ_CONVENTIONS        64
102 
103 #define ONLY_NEAR_FEATURES       128
104 #define FAR_FEATURES_SUPPRESS    256
105 #define NEAR_FEATURES_SUPPRESS   384
106 
107 #define COPY_GPS_CDS_UP          512
108 #define COPY_GPS_GENE_DOWN      1024
109 
110 #define SHOW_CONTIG_AND_SEQ     2048
111 
112 #define SHOW_TRANCRIPTION       4096
113 #define SHOW_PEPTIDE            8192
114 
115 #define PRODUCE_OLD_GBSEQ      16384
116 
117 #define DDBJ_VARIANT_FORMAT    32768
118 
119 #define SPECIAL_GAP_DISPLAY    65536
120 
121 #define FORCE_PRIMARY_BLOCK   131072
122 
123 /* locking behavior for system performance */
124 
125 typedef unsigned long LckType;
126 
127 #define LOCK_FAR_COMPONENTS        2
128 #define LOCK_FAR_LOCATIONS         4
129 #define LOCK_FAR_PRODUCTS          8
130 #define LOOKUP_FAR_COMPONENTS     16
131 #define LOOKUP_FAR_LOCATIONS      32
132 #define LOOKUP_FAR_PRODUCTS       64
133 #define LOOKUP_FAR_HISTORY       128
134 #define LOOKUP_FAR_INFERENCE     256
135 #define LOOKUP_FAR_OTHERS        512
136 
137 /* bit flags for unusual customized reports */
138 
139 typedef unsigned long CstType;
140 
141 #define SHOW_FEATURE_STATS         1
142 #define SHOW_REFERENCE_STATS       2
143 
144 #define HIDE_FEATURES              4
145 
146 #define HIDE_IMP_FEATS             8
147 #define HIDE_VARS_AND_REPT_REGNS  16
148 #define HIDE_SITES_BONDS_REGIONS  32
149 #define HIDE_CDD_FEATS            64
150 #define HIDE_CDS_PROD_FEATS      128
151 
152 #define HIDE_GENE_RIFS           256
153 #define ONLY_GENE_RIFS           512
154 #define ONLY_REVIEW_PUBS         768
155 #define NEWEST_PUBS             1024
156 #define OLDEST_PUBS             1280
157 #define HIDE_ALL_PUBS           1792
158 
159 #define SHOW_PROT_FTABLE        2048
160 #define SHOW_FTABLE_REFS        4096
161 
162 #define HIDE_SOURCE_FEATS       8192
163 #define HIDE_GAP_FEATS         16384
164 #define HIDE_SEQUENCE          32768
165 
166 #define EXPANDED_GAP_DISPLAY   65536
167 #define HIDE_GO_TERMS         131072
168 #define HIDE_TRANSLATION      262144
169 
170 #define HIDE_EVIDENCE_QUALS   524288
171 
172 /* opaque pointer for special extensions */
173 
174 struct XtraData;
175 typedef struct XtraData* XtraPtr;
176 
177 /* flatfile generation functions */
178 
179 NLM_EXTERN Boolean SeqEntryToGnbk (
180   SeqEntryPtr sep,
181   SeqLocPtr slp,
182   FmtType format,
183   ModType mode,
184   StlType style,
185   FlgType flags,
186   LckType locks,
187   CstType custom,
188   XtraPtr extra,
189   FILE *fp
190 );
191 
192 NLM_EXTERN Boolean BioseqToGnbk (
193   BioseqPtr bsp,
194   SeqLocPtr slp,
195   FmtType format,
196   ModType mode,
197   StlType style,
198   FlgType flags,
199   LckType locks,
200   CstType custom,
201   XtraPtr extra,
202   FILE *fp
203 );
204 
205 NLM_EXTERN CharPtr GetFlatFileAffilString (AffilPtr afp);
206 
207 #ifdef __cplusplus
208 }
209 #endif
210 
211 #undef NLM_EXTERN
212 #ifdef NLM_EXPORT
213 #define NLM_EXTERN NLM_EXPORT
214 #else
215 #define NLM_EXTERN
216 #endif
217 
218 #endif /* ndef _ASN2NGNBK_ */
219 
220 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.