~ubuntu-branches/ubuntu/feisty/ncbi-tools6/feisty

« back to all changes in this revision

Viewing changes to api/salpedit.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-27 15:38:20 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050927153820-1t1sta0qirjpxaar
Tags: 6.1.20050429-1ubuntu1
GL/GLU Transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: salpedit.c,v 6.31 2003/11/07 21:22:06 kans Exp $ */
 
1
/* $Id: salpedit.c,v 6.32 2005/04/13 14:56:08 kans Exp $ */
2
2
#include <ncbi.h>
3
3
#include <ncbimisc.h> /* ValNodeLen */
4
4
#include <sequtil.h> /* for GetScoreAndEvalue, SeqIdDupList */
5
5
#include <salpedit.h>
6
6
#include <salpacc.h>
7
7
#include <seqport.h>
 
8
#include <salsap.h>
8
9
 
9
10
#define MIN_DIAG_LEN    20      /*minimal amount of overlap required for build_overlap_list<-MergeTwoAlignList */
10
11
 
23
24
}
24
25
 
25
26
 
26
 
static SeqAlignPtr LIBCALL is_salp_in_sap (SeqAnnotPtr sap, Uint1 choice)
27
 
{
28
 
  SeqAlignPtr      salp = NULL;
29
 
 
30
 
  if (sap != NULL) {
31
 
     for (; sap!= NULL; sap=sap->next) {
32
 
        if (sap->type == choice) {
33
 
           salp = (SeqAlignPtr) sap->data;
34
 
           return salp;
35
 
        }
36
 
     }
37
 
  }
38
 
  return NULL;
39
 
}
40
 
 
41
27
/*******************************************
42
28
***
43
29
***  SeqAlignBioseqDeleteById