⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cddalignview.h

📁 ncbi源码
💻 H
字号:
/* * =========================================================================== * PRODUCTION $Log: cddalignview.h,v $ * PRODUCTION Revision 1000.0  2003/10/29 20:57:33  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1 * PRODUCTION * =========================================================================== *//*  $Id: cddalignview.h,v 1000.0 2003/10/29 20:57:33 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:*      C interface header for cddalignview as function call** ===========================================================================*/#ifndef CDDALIGNVIEW__H#define CDDALIGNVIEW__H#ifdef __cplusplus#include <corelib/ncbistd.hpp>#include <corelib/ncbistre.hpp>extern "C" {#endif/* output option bit flags (can be or'ed together) */#define CAV_TEXT            0x01    /* plain-text output */#define CAV_HTML            0x02    /* HTML output */#define CAV_LEFTTAILS       0x04    /* show left (N-terminal) tails */#define CAV_RIGHTTAILS      0x08    /* show right (C-terminal) tails */#define CAV_CONDENSED       0x10    /* collapse incompletely aligned columns (text/HTML only) */#define CAV_DEBUG           0x20    /* send debug/trace messages to stderr */#define CAV_HTML_HEADER     0x40    /* include HTML header for complete page */#define CAV_SHOW_IDENTITY   0x80    /* for HTML, show identity rather than using bit cutoff */#define CAV_FASTA           0x0100  /* FASTA text output */#define CAV_FASTA_LOWERCASE 0x0200  /* make unaligned residues lower case in FASTA output */#define CAV_ANNOT_BOTTOM    0x0400  /* put annotations on bottom; default is on top *//* data structure for holding alignment feature/annotation info */typedef struct {    int nLocations;             /* how many residues are marked */    int *locations;             /* indexes on master (numbered from 0) to mark */    const char *shortName;      /* short name (displayed in title column) */    const char *description;    /* optional description, displayed in legend */    char featChar;              /* character to use in annotation line */} AlignmentFeature;/* * The main function call: *  - 'asnDataBlock' is a pointer to in-memory asn data (can be binary or text). *    This memory block will *not* be overwritten or freed by this function. *  - 'options' specifies the desired output, e.g. "CAV_HTML | CAV_LEFTTAILS" *    to get HTML output with left (N-terminal) sequence tails shown *  - 'paragraphWidth' is the size of the "paragraph" chunks of the alignment *  - 'conservationThreshhold' is the information content bit score above *    which a column is marked as conserved in the HTML display *  - 'title' if non-NULL is used as the <TITLE> of the HTML output when *    CAV_HTML_HEADER is used *  - 'nFeatures' is the number of feature annotations *  - features is an array of features (See AlignmentFeature struct above) * * The output (of whatever type) will be placed on the standard output stream. * * Upon success, will return CAV_SUCCESS (see below). Otherwise, will return * one of the given error values to give some indication of what went wrong. */extern int CAV_DisplayMultiple(    const void *asnDataBlock,    unsigned int options,    unsigned int paragraphWidth,    double conservationThreshhold,    const char *title,    int nFeatures,    const AlignmentFeature *features);/* error values returned by CAV_DisplayMultiple() */#define CAV_SUCCESS             0#define CAV_ERROR_BAD_PARAMS    1   /* incorrect/incompatible options */#define CAV_ERROR_BAD_ASN       2   /* unrecognized asn data */#define CAV_ERROR_SEQUENCES     3   /* error parsing sequence data */#define CAV_ERROR_ALIGNMENTS    4   /* error parsing alignment data */#define CAV_ERROR_PAIRWISE      5   /* error parsing a master/slave pairwise alignment */#define CAV_ERROR_DISPLAY       6   /* error creating display structure */#ifdef __cplusplus}// a C++ version of the function, that places output on the given streams.extern int CAV_DisplayMultiple(    const void *asnDataBlock,    unsigned int options,    unsigned int paragraphWidth,    double conservationThreshhold,    const char *title,    int nFeatures,    const AlignmentFeature *features,    ncbi::CNcbiOstream *outputStream,       // regular program output (alignments); cout if NULL    ncbi::CNcbiOstream *diagnosticStream    // diagnostic messages/errors; cerr if NULL);#endif#endif /* CDDALIGNVIEW__H *//** ---------------------------------------------------------------------------* $Log: cddalignview.h,v $* Revision 1000.0  2003/10/29 20:57:33  gouriano* PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1** 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.12  2003/03/18 22:35:06  thiessen* add C++ version of function that takes streams for output** Revision 1.11  2003/02/03 17:52:04  thiessen* move CVS Log to end of file** Revision 1.10  2003/01/21 18:01:07  thiessen* add condensed alignment display** Revision 1.9  2003/01/21 12:33:17  thiessen* move includes into src dir** Revision 1.8  2002/11/08 19:38:16  thiessen* add option for lowercase unaligned in FASTA** Revision 1.7  2002/02/12 13:06:47  thiessen* annot description optional** Revision 1.6  2002/02/08 19:53:59  thiessen* add annotation to text/HTML displays** Revision 1.5  2001/05/17 14:48:52  lavr* Typos corrected** Revision 1.4  2001/03/02 01:19:29  thiessen* add FASTA output** Revision 1.3  2001/02/15 19:23:07  thiessen* add identity coloring** Revision 1.2  2001/02/14 16:05:46  thiessen* add block and conservation coloring to HTML display** Revision 1.1  2001/01/29 18:13:41  thiessen* split into C-callable library + main**/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -