diff options
author | Aaron M. Ucko <ucko@debian.org> | 2005-03-23 20:19:28 +0000 |
---|---|---|
committer | Aaron M. Ucko <ucko@debian.org> | 2005-03-23 20:19:28 +0000 |
commit | c36b9906c3ef791147b3643f9e485cc02568819f (patch) | |
tree | 97b50039b1b1666f165eb1b05713b820e11b09bd /api/explore.h | |
parent | 8db608ab43e4a775576ba5ff61add11d231de4b4 (diff) |
Load ncbi (6.1.20020426) into ncbi-tools6/branches/upstream/current.
Diffstat (limited to 'api/explore.h')
-rw-r--r-- | api/explore.h | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/api/explore.h b/api/explore.h index 30d3ed13..3e094cfd 100644 --- a/api/explore.h +++ b/api/explore.h @@ -29,7 +29,7 @@ * * Version Creation Date: 6/30/98 * -* $Revision: 6.37 $ +* $Revision: 6.41 $ * * File Description: Reengineered and optimized exploration functions * to be used for future code @@ -156,6 +156,8 @@ NLM_EXTERN Uint2 LIBCALL SeqMgrIndexFeatures ( * bioseq to get the best protein feature or encoding CDS * SeqMgrGetRNAgivenProduct takes an mRNA (cDNA) bioseq and gets the encoding * mRNA feature on the genomic bioseq +* SeqMgrGetPROTgivenProduct takes an protein bioseq and gets the encoding +* processed protein feature on a precursor protein bioseq * *****************************************************************************/ @@ -178,6 +180,11 @@ NLM_EXTERN SeqFeatPtr LIBCALL SeqMgrGetRNAgivenProduct ( SeqMgrFeatContext PNTR context ); +NLM_EXTERN SeqFeatPtr LIBCALL SeqMgrGetPROTgivenProduct ( + BioseqPtr bsp, + SeqMgrFeatContext PNTR context +); + /***************************************************************************** * * To find the best gene feature, first call SeqMgrGetGeneXref, and if it is not @@ -463,13 +470,16 @@ NLM_EXTERN Boolean LIBCALL SeqMgrGetBioseqContext ( * contained within the feature range, or merely that it be overlapped by the * feature, and returns the position in the index * SeqMgrGetFeatureInIndex gets an arbitrary feature indexed by the array +* SeqMgrGetAllOverlappingFeatures returns all features that overlap with the +* indicated overlap specificity * *****************************************************************************/ -#define SIMPLE_OVERLAP 0 -#define CONTAINED_WITHIN 1 -#define CHECK_INTERVALS 2 -#define INTERVAL_OVERLAP 3 +#define SIMPLE_OVERLAP 0 /* any overlap of extremes */ +#define CONTAINED_WITHIN 1 /* contained within extremes */ +#define LOCATION_SUBSET 2 /* SeqLocAinB must be satisfied, no boundary checking */ +#define CHECK_INTERVALS 3 /* SeqLocAinB plus internal exon-intron boundaries must match */ +#define INTERVAL_OVERLAP 4 /* at least one pair of intervals must overlap */ NLM_EXTERN VoidPtr LIBCALL SeqMgrBuildFeatureIndex ( BioseqPtr bsp, @@ -496,6 +506,16 @@ NLM_EXTERN SeqFeatPtr LIBCALL SeqMgrGetFeatureInIndex ( SeqMgrFeatContext PNTR context ); +NLM_EXTERN Int2 LIBCALL SeqMgrGetAllOverlappingFeatures ( + SeqLocPtr slp, + Uint2 subtype, + VoidPtr featarray, + Int4 numfeats, + Int2 overlapType, + Pointer userdata, + SeqMgrFeatExploreProc userfunc +); + /* the following functions are not frequently called by applications */ /***************************************************************************** @@ -530,7 +550,25 @@ NLM_EXTERN Boolean LIBCALL SeqMgrClearFeatureIndexes ( NLM_EXTERN Uint2 LIBCALL SeqMgrIndexFeaturesEx ( Uint2 entityID, Pointer ptr, - Boolean flip + Boolean flip, + Boolean dorevfeats +); + +/***************************************************************************** +* +* If indexed with dorevfeats TRUE, SeqMgrExploreFeaturesRev presents features +* in reverse order, used for asn2gb master style on far genomic contigs that +* point to the minus strand of a component +* +*****************************************************************************/ + +NLM_EXTERN Int2 LIBCALL SeqMgrExploreFeaturesRev ( + BioseqPtr bsp, + Pointer userdata, + SeqMgrFeatExploreProc userfunc, + SeqLocPtr locationFilter, + BoolPtr seqFeatFilter, + BoolPtr featDefFilter ); |