[med-svn] r205 - in trunk/packages/probcons/trunk: . debian
Charles Plessy
charles-guest at alioth.debian.org
Wed Feb 14 15:17:23 CET 2007
Author: charles-guest
Date: 2007-02-14 15:17:22 +0100 (Wed, 14 Feb 2007)
New Revision: 205
Modified:
trunk/packages/probcons/trunk/Main.cc
trunk/packages/probcons/trunk/Makefile
trunk/packages/probcons/trunk/README
trunk/packages/probcons/trunk/debian/changelog
Log:
new upstream release
Modified: trunk/packages/probcons/trunk/Main.cc
===================================================================
--- trunk/packages/probcons/trunk/Main.cc 2007-02-14 14:12:32 UTC (rev 204)
+++ trunk/packages/probcons/trunk/Main.cc 2007-02-14 14:17:22 UTC (rev 205)
@@ -1023,7 +1023,10 @@
MultiSequence *alignment = ProcessTree (tree, sequences, sparseMatrices, model);
+ SafeVector<int> oldOrdering;
if (enableAlignOrder){
+ for (int i = 0; i < alignment->GetNumSequences(); i++)
+ oldOrdering.push_back (alignment->GetSequence(i)->GetSortLabel());
alignment->SaveOrdering();
enableAlignOrder = false;
}
@@ -1037,6 +1040,12 @@
cerr << endl;
+ if (oldOrdering.size() > 0){
+ for (int i = 0; i < (int) oldOrdering.size(); i++){
+ alignment->GetSequence(i)->SetSortLabel(oldOrdering[i]);
+ }
+ }
+
// return final alignment
return alignment;
}
@@ -1402,6 +1411,9 @@
for (int i = 0; i < numSeqs; i++) seqs[i] = alignment->GetSequence(i)->GetDataPtr();
SafeVector<pair<int,int> > active;
active.reserve (numSeqs);
+
+ SafeVector<int> lab;
+ for (int i = 0; i < numSeqs; i++) lab.push_back(alignment->GetSequence(i)->GetSortLabel());
// for every column
for (int i = 1; i <= alignLength; i++){
@@ -1410,10 +1422,11 @@
active.clear();
for (int j = 0; j < numSeqs; j++){
if (seqs[j][i] != '-'){
- active.push_back (make_pair(j, ++position[j]));
+ active.push_back (make_pair(lab[j], ++position[j]));
}
}
+ sort (active.begin(), active.end());
outfile << setw(4) << ComputeScore (active, sparseMatrices) << endl;
}
Modified: trunk/packages/probcons/trunk/Makefile
===================================================================
--- trunk/packages/probcons/trunk/Makefile 2007-02-14 14:12:32 UTC (rev 204)
+++ trunk/packages/probcons/trunk/Makefile 2007-02-14 14:17:22 UTC (rev 205)
@@ -15,7 +15,7 @@
# c) RELEASE mode
################################################################################
-OTHERFLAGS = -DNumInsertStates=2 -DVERSION="1.10"
+OTHERFLAGS = -DNumInsertStates=2 -DVERSION="1.11"
# debug mode
#CXXFLAGS = -g -W -Wall -pedantic -DENABLE_CHECKS -fno-inline $(OTHERFLAGS)
Modified: trunk/packages/probcons/trunk/README
===================================================================
--- trunk/packages/probcons/trunk/README 2007-02-14 14:12:32 UTC (rev 204)
+++ trunk/packages/probcons/trunk/README 2007-02-14 14:17:22 UTC (rev 205)
@@ -105,3 +105,6 @@
-- Reduced memory consumption by
-- not storing posterior matrix transposes
-- restricting consistency-derived posterior matrices to original posterior matrix
+
+1.11, 12/1/2006 (Chuong Do)
+ -- Fixed bug with conflict between --annot and -a options
\ No newline at end of file
Modified: trunk/packages/probcons/trunk/debian/changelog
===================================================================
--- trunk/packages/probcons/trunk/debian/changelog 2007-02-14 14:12:32 UTC (rev 204)
+++ trunk/packages/probcons/trunk/debian/changelog 2007-02-14 14:17:22 UTC (rev 205)
@@ -1,8 +1,10 @@
-probcons (1.10-2) unstable; urgency=low
+probcons (1.11-1) unstable; urgency=low
- * Mended the watch file in the source package.
+ * New upstream release fixing a bug with conflict between --annot and -a
+ options.
+ * Mended the watch file in the source package.
- -- Charles Plessy <charles-debian-nospam at plessy.org> Wed, 12 Jul 2006 09:07:50 +0900
+ -- Charles Plessy <charles-debian-nospam at plessy.org> Wed, 14 Feb 2007 23:15:36 +0900
probcons (1.10-1) unstable; urgency=low
More information about the debian-med-commit
mailing list