X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Farchive%2Fbinaries%2Fmac%2Fsrc%2Ftcoffee%2Ft_coffee_source%2Futil_dp_est.c;fp=website%2Farchive%2Fbinaries%2Fmac%2Fsrc%2Ftcoffee%2Ft_coffee_source%2Futil_dp_est.c;h=0000000000000000000000000000000000000000;hb=fb21789ba11ae9b9f6abed1b01d4542e54abfe34;hp=5a80f1fcbe3c0c5685f86a5877e680dc7e1954fb;hpb=7d68cf3489c816b2ed7afb1925a6de2168eccf4a;p=jabaws.git diff --git a/website/archive/binaries/mac/src/tcoffee/t_coffee_source/util_dp_est.c b/website/archive/binaries/mac/src/tcoffee/t_coffee_source/util_dp_est.c deleted file mode 100644 index 5a80f1f..0000000 --- a/website/archive/binaries/mac/src/tcoffee/t_coffee_source/util_dp_est.c +++ /dev/null @@ -1,89 +0,0 @@ -#include -#include -#include -#include -#include - -#include "io_lib_header.h" -#include "util_lib_header.h" -#include "define_header.h" -#include "dp_lib_header.h" - - - -int evaluate_est_order (Sequence *S, char *concat, Constraint_list *CL, int ktuple) - { - int a; - static char *alphabet; - int *hasched_seq, *hasched_seq1, *hasched_seq2; - int *lu_seq, *lu_seq1, *lu_seq2; - int pos_ktup1, pos_ktup2; - double score=0; - int n_ktup; - int n_dots=0; - - if ( !alphabet)alphabet=get_alphabet ( concat, alphabet); - n_ktup=(int)pow ( (double)alphabet[0]+1, (double)ktuple); - - hasch_seq (concat,&hasched_seq, &lu_seq,ktuple, alphabet); - hasched_seq1=hasched_seq2=hasched_seq; - lu_seq1=lu_seq2=lu_seq; - - - - for ( a=1; a< n_ktup; a++) - { - pos_ktup1=lu_seq1[a]; - - while (TRUE) - { - - if (!pos_ktup1)break; - pos_ktup2=lu_seq2[a]; - while (pos_ktup2) - { - score+=abs ((int)(pos_ktup1-pos_ktup2)); - pos_ktup2=hasched_seq2[pos_ktup2]; - n_dots++; - } - pos_ktup1=hasched_seq1[pos_ktup1]; - } - } - - score=(score/(double)(n_dots*strlen(concat)))*100000; - vfree ( hasched_seq); - vfree(lu_seq); - - - return score; - } - -/******************************COPYRIGHT NOTICE*******************************/ -/*© Centro de Regulacio Genomica */ -/*and */ -/*Cedric Notredame */ -/*Fri Feb 18 08:27:45 CET 2011 - Revision 596. */ -/*All rights reserved.*/ -/*This file is part of T-COFFEE.*/ -/**/ -/* T-COFFEE is free software; you can redistribute it and/or modify*/ -/* it under the terms of the GNU General Public License as published by*/ -/* the Free Software Foundation; either version 2 of the License, or*/ -/* (at your option) any later version.*/ -/**/ -/* T-COFFEE is distributed in the hope that it will be useful,*/ -/* but WITHOUT ANY WARRANTY; without even the implied warranty of*/ -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the*/ -/* GNU General Public License for more details.*/ -/**/ -/* You should have received a copy of the GNU General Public License*/ -/* along with Foobar; if not, write to the Free Software*/ -/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/ -/*............................................... |*/ -/* If you need some more information*/ -/* cedric.notredame@europe.com*/ -/*............................................... |*/ -/**/ -/**/ -/* */ -/******************************COPYRIGHT NOTICE*******************************/