~ubuntu-branches/ubuntu/saucy/ncbi-tools6/saucy-proposed

« back to all changes in this revision

Viewing changes to desktop/cdrgn.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2009-08-11 22:03:47 UTC
  • mfrom: (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090811220347-g4b6lzdvphvvbpiu
* New upstream release.
* debian/libncbi6.symbols: update accordingly.
* debian/control: clean up obsolete or redundant relationship declarations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   1/22/95
31
31
*
32
 
* $Revision: 6.117 $
 
32
* $Revision: 6.120 $
33
33
*
34
34
* File Description: 
35
35
*
1767
1767
          protbsp != NULL && protbsp->length > 0) {
1768
1768
        nucbsp = (BioseqPtr) sep->data.ptrvalue;
1769
1769
        slp = PredictCodingRegion (nucbsp, protbsp, code);
 
1770
        if (slp != NULL && SeqLocStop (slp) > nucbsp->length - 1) {
 
1771
          Message (MSG_ERROR, "Warning!  Nucleotide is not long enough for protein sequence!");
 
1772
        }
1770
1773
        PointerToDialog (cfp->location, slp);
1771
1774
        if (slp != NULL) {
1772
1775
          cfp->locvisited = TRUE;
2681
2684
  if (desired_cds_len < loc_len) {
2682
2685
    /* truncate to correct length */
2683
2686
    orig_slp = TruncateLocation (orig_slp, desired_cds_len);
2684
 
    PointerToDialog (cfp->location, orig_slp);
2685
 
    DoTranslateProtein (cfp);
2686
2687
  }
 
2688
  SetSeqLocPartial (orig_slp, partial5, FALSE);
 
2689
 
 
2690
  PointerToDialog (cfp->location, orig_slp);
 
2691
  DoTranslateProtein (cfp);
2687
2692
  prot = MemFree (prot);
2688
2693
  orig_slp = SeqLocFree (orig_slp);
2689
2694
}
6646
6651
        gbq->val = str;
6647
6652
      }
6648
6653
    }
 
6654
  } else {
 
6655
    /* product should now be in extension, this is an old qualifier no longer needed */
 
6656
    RemoveQualByName (sfp, "product");
6649
6657
  }
6650
6658
}
6651
6659