NCBI C Toolkit Cross Reference

C/desktop/cdrgn.h


  1 /*   cdrgn.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:  cdrgn.h
 27 *
 28 * Author:  Jonathan Kans
 29 *
 30 * Version Creation Date:   1/22/95
 31 *
 32 * $Revision: 6.14 $
 33 *
 34 * File Description: 
 35 *
 36 * Modifications:  
 37 * --------------------------------------------------------------------------
 38 * $Log: cdrgn.h,v $
 39 * Revision 6.14  2009/09/02 15:08:39  bollin
 40 * New RNA editing.
 41 *
 42 * Revision 6.13  2008/01/17 21:18:09  bollin
 43 * Fixes for RNA dialog for ncRNA product/class handling
 44 *
 45 * Revision 6.12  2007/12/21 17:30:27  bollin
 46 * Changes to dialog for selecting ncRNA class and RNA type - allow ncRNA class
 47 * Any if selecting RNA type in a constraint context, test dialog to generate
 48 * error if "other" is the class but no text is specified.
 49 *
 50 * Revision 6.11  2007/11/26 21:16:29  bollin
 51 * Moved CreatencRNAClassDialog proto into cdrgn.h
 52 *
 53 * Revision 6.10  2007/09/21 18:05:23  bollin
 54 * code in place for conversion of old-style misc_RNA, snRNA, scRNA, and snoRNA
 55 * features to new ncRNA features, commented out until changeover.
 56 *
 57 * Revision 6.9  2007/09/10 20:08:51  bollin
 58 * Correction to MatchesRnaType
 59 *
 60 * Revision 6.8  2007/09/10 18:47:11  kans
 61 * prototype for SetRnaSpecificQuals, cast for codon argument to ParseTRnaString
 62 *
 63 * Revision 6.7  2007/09/10 18:33:15  bollin
 64 * Changes for new ncRNA and tmRNA class editor.
 65 *
 66 * Revision 6.6  2007/07/25 13:53:12  bollin
 67 * Removed local copy of TruncateLocation from sequin3.c, made TruncateLocation
 68 * function in desktop/cdrgn.c extern and added prototype to cdrgn.h
 69 *
 70 * Revision 6.5  2003/10/23 16:43:56  kans
 71 * changed operon to import feature
 72 *
 73 * Revision 6.4  2003/10/07 13:52:01  kans
 74 * added gap, operon, oriT features and ecotype, estimated_length and operon qualifiers
 75 *
 76 * Revision 6.3  2000/07/08 20:44:00  vakatov
 77 * Get all "#include" out of the 'extern "C" { }' scope;  other cleanup...
 78 *
 79 * ==========================================================================
 80 */
 81 
 82 #ifndef _CDRGN_
 83 #define _CDRGN_
 84 
 85 #include <dlogutil.h>
 86 
 87 #ifdef __cplusplus
 88 extern "C" {
 89 #endif
 90 
 91 #define REGISTER_CDRGN_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit CdRgn","CDS",OBJ_SEQFEAT,FEATDEF_CDS,OBJ_SEQFEAT,FEATDEF_CDS,NULL,CdRgnGenFunc,PROC_PRIORITY_DEFAULT)
 92 
 93 extern ForM CreateCdRgnForm (Int2 left, Int2 top, CharPtr title,
 94                              SeqFeatPtr sfp, SeqEntryPtr sep,
 95                              FormActnFunc actproc);
 96 extern Int2 LIBCALLBACK CdRgnGenFunc (Pointer data);
 97 
 98 extern void CdRgnFeatFormActnProc (ForM f);
 99 extern void CdRgnTranslateWithFrame (ForM f, Uint1 frame);
100 
101 extern SeqLocPtr PredictCodingRegion (BioseqPtr nuc, BioseqPtr prot, Int2 genCode);
102 
103 #define REGISTER_GENE_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Gene","Gene",OBJ_SEQFEAT,FEATDEF_GENE,OBJ_SEQFEAT,FEATDEF_GENE,NULL,GeneGenFunc,PROC_PRIORITY_DEFAULT)
104 
105 extern ForM CreateGeneForm (Int2 left, Int2 top, CharPtr title,
106                             SeqFeatPtr sfp, SeqEntryPtr sep,
107                             FormActnFunc actproc);
108 extern Int2 LIBCALLBACK GeneGenFunc (Pointer data);
109 
110 #define REGISTER_PROT_EDIT(PROCNAME,PROCLABEL,SUBTYPE) ObjMgrProcLoad(OMPROC_EDIT,PROCNAME,PROCLABEL,OBJ_SEQFEAT,SUBTYPE,OBJ_SEQFEAT,SUBTYPE,NULL,ProtGenFunc,PROC_PRIORITY_DEFAULT)
111 
112 extern ForM CreateProtForm (Int2 left, Int2 top, CharPtr title,
113                             SeqFeatPtr sfp, SeqEntryPtr sep,
114                             FormActnFunc actproc);
115 extern Int2 LIBCALLBACK ProtGenFunc (Pointer data);
116 
117 #define REGISTER_RNA_EDIT(PROCNAME,PROCLABEL,SUBTYPE) ObjMgrProcLoad(OMPROC_EDIT,PROCNAME,PROCLABEL,OBJ_SEQFEAT,SUBTYPE,OBJ_SEQFEAT,SUBTYPE,NULL,RnaGenFunc,PROC_PRIORITY_DEFAULT)
118 
119 extern ForM CreateRnaForm (Int2 left, Int2 top, CharPtr title,
120                            SeqFeatPtr sfp, SeqEntryPtr sep,
121                            Uint2 subtype, FormActnFunc actproc);
122 extern Int2 LIBCALLBACK RnaGenFunc (Pointer data);
123 
124 extern void ConvertProductQualToRnaRefName (SeqFeatPtr sfp);
125 
126 extern SeqLocPtr TruncateLocation (SeqLocPtr head, Int4 len);
127 
128 /* for searching for RNA values of a certain type */
129 typedef struct rnatype {
130   Int4    rna_featdef; /* use FEATDEF_ANY for match any RNA */
131   CharPtr ncrna_class; /* value to look for in ncrna_class qual */
132 } RnaTypeData, PNTR RnaTypePtr;
133 
134 extern RnaTypePtr RnaTypeFree (RnaTypePtr rtp);
135 extern Boolean MatchesRnaType (SeqFeatPtr sfp, RnaTypePtr rtp);
136 extern void ApplyRnaTypeToSeqFeat (SeqFeatPtr sfp, RnaTypePtr rtp);
137 extern void ApplyProductToRNA (SeqFeatPtr sfp, CharPtr product);
138 extern void AddToComment (SeqFeatPtr sfp, CharPtr comment);
139 extern DialoG RnaTypeDialog (GrouP h, Boolean is_constraint, Nlm_ChangeNotifyProc change_notify, Pointer change_userdata);
140 extern DialoG CreatencRNAClassDialog (GrouP h, Boolean is_constraint, Nlm_ChangeNotifyProc change_notify, Pointer change_userdata);
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif /* ndef _CDRGN_ */
147 
148 

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.