~ubuntu-branches/ubuntu/precise/exonerate/precise

« back to all changes in this revision

Viewing changes to src/c4/opair.c

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy, David Paleino, Charles Plessy
  • Date: 2008-07-02 11:24:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080702112448-2kphz1t3xwqyi9jv
Tags: 2.0.0-1
[ David Paleino ]
* Updated to Standards-Version 3.8.0 (no changes needed)

[ Charles Plessy ]
* New upstream release (Closes: #479323)
  Quoting the upstream changelog:
  o Modified exonerate to work in Client:Server mode
  o Fixed --refine to work with SDP alignments
  o Disabled codegen warnings from bootstrapper during compilation
  o Added --geneticcode option for using alternative genetic codes
  o Added --splice5 and --splice3 to allow alternative splice site PSSMs
  o Fixed several bugs when scanning query sequences (eg. --forcescan query)
  o Fixed to report query on forward strand whenever possible.
  o Fixed --ryo sequence dumping with --bestn
  o Fixed a bug with missing seeds when using --annotation
  o Changed license to GPLv3
  o Added protein2dna:bestfit and protein2genome:bestfit models
    (works with exhaustive alignment only)
* Updated my email address.
* debian/control:
  - Building on glib-2.0 instead of 1.2.
  - Added a build dependancy on libreadline5-dev.
  - Augmented the long description and changed the short.
  - Added a build dependency on CDBS.
* debian/copyright made machine-readable.
* debian/rules switched to cdbs.
* debian/dirs: removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
*  C4 dynamic programming library - code for optimal pairs       *
4
4
*                                                                *
5
5
*  Guy St.C. Slater..   mailto:guy@ebi.ac.uk                     *
6
 
*  Copyright (C) 2000-2006.  All Rights Reserved.                *
 
6
*  Copyright (C) 2000-2008.  All Rights Reserved.                *
7
7
*                                                                *
8
8
*  This source code is distributed under the terms of the        *
9
 
*  GNU Lesser General Public License. See the file COPYING       *
10
 
*  or http://www.fsf.org/copyleft/lesser.html for details        *
 
9
*  GNU General Public License, version 3. See the file COPYING   *
 
10
*  or http://www.gnu.org/licenses/gpl.txt for details            *
11
11
*                                                                *
12
12
*  If you use this code, please keep this notice intact.         *
13
13
*                                                                *
17
17
 
18
18
/**/
19
19
 
20
 
OPair *OPair_create(Optimal *optimal,
 
20
OPair *OPair_create(Optimal *optimal, SubOpt *subopt,
21
21
                    gint query_length, gint target_length, gpointer user_data){
22
22
    register OPair *opair = g_new(OPair, 1);
23
23
    g_assert(optimal);
25
25
    g_assert(target_length >= 0);
26
26
    opair->optimal = Optimal_share(optimal);
27
27
    opair->user_data = user_data;
28
 
    opair->subopt = SubOpt_create(query_length, target_length);
 
28
    opair->subopt = SubOpt_share(subopt);
29
29
    opair->region = Region_create(0, 0, query_length, target_length);
30
30
    opair->prev_score = C4_IMPOSSIBLY_HIGH_SCORE;
31
31
    return opair;
45
45
                                  opair->user_data, threshold,
46
46
                                  opair->subopt);
47
47
    if(alignment){
48
 
        SubOpt_add_alignment(opair->subopt, alignment);
49
48
        if(alignment->score > opair->prev_score)
50
49
            g_warning("Score [%d] greater than previous [%d]",
51
50
                      alignment->score, opair->prev_score);