Skip to content

Commit a3c27be

Browse files
committed
Porting changes from branch 1.7 r5109
1 parent 7d48c50 commit a3c27be

File tree

6 files changed

+83
-44
lines changed

6 files changed

+83
-44
lines changed

release/common/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BEAST v1.7.0 2002-2012
1+
BEAST v1.7.3 2002-2012
22
Bayesian Evolutionary Analysis Sampling Trees
33
by
44
Alexei J. Drummond, Andrew Rambaut & Marc Suchard
@@ -16,7 +16,7 @@
1616
msuchard@ucla.edu
1717

1818

19-
Last updated: a.rambaut@ed.ac.uk - 8th February 2012
19+
Last updated: a.rambaut@ed.ac.uk - 1st Aug 2012
2020

2121
Contents:
2222
1) INTRODUCTION

release/common/VERSION HISTORY.txt

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BEAST v1.7.1 2002-2012
1+
BEAST v1.7.3 2002-2012
22
Bayesian Evolutionary Analysis Sampling Trees
33
by
44
Alexei J. Drummond, Andrew Rambaut & Marc Suchard
@@ -17,20 +17,73 @@
1717

1818

1919
Version History
20-
Last updated: a.rambaut@ed.ac.uk - 8th March 2012
20+
Last updated: a.rambaut@ed.ac.uk - 2nd Aug 2012
2121
All issues can be viewed at http://code.google.com/p/beast-mcmc/issues/list
2222

2323
================================================================================
2424

25-
Version 1.7.1 released 9th March 2012
25+
Version 1.7.3 released XXX XXX 2012
26+
27+
New Features:
28+
Added 'precision' attribute in Date element to allow easy sampling of tip date when the date of sampling is
29+
known to a limited precision (see testTipDatePrecision.xml in examples/testXML folder).
30+
31+
Bug Fixes:
32+
Issue 631: Code generated by BEAUti for substitutions trees doesn't load into BEAST
33+
Issue 635: *BEAST 'species' attributes are being created outside the <taxon> elements
34+
Issue 633: Multivariate continuous trait analyses doesn't respect ancestral state reconstruction choices
35+
Issue 636: Unlinked codons and state reconstruction in BEAUTi
36+
Issue 640: GUI error when canceling species-tree analysis
37+
Issue 642: Inappropriate default values provided for microsatellite model parameters in BEAUti
38+
Issue 643: Unable to specify a MRCA node to reconstruct ancestral states
39+
Issue 645: Discrete traits were generating ancestral reconstructions irrespective of the Ancestral States settings
40+
Issue 647: Selecting robust counting was not creating the correct XML
41+
Issue 651: Default Poisson prior for asymmetric BSSVS model of discrete traits is not standard
42+
Issue 652: Some conditioning priors need to be evaluated before the data likelihood
43+
44+
Other changes:
45+
Restored non-BEAGLE AncestralTreeLikelihood availability - should be considered deprecated.
46+
Some changes to the default BEAGLE options to help discrete trait models run (SSE is switched off for
47+
non-nucleotide partitions and the default scaling scheme is now 'delayed').
48+
49+
================================================================================
50+
51+
Version 1.7.2 released 22th May 2012
52+
53+
Bug Fixes:
54+
Issue 609: BEAUti duplicate prefix issue for multi-partition
55+
Issue 611: BEAUti misnames the rates log file for BSSVS
56+
Issue 612: BEAUTi robust counting XML was not overriding the default
57+
stripping of ambiguous sites.
58+
Issue 614: Writing Newick user tree in BEAUti doesn't quote taxa with
59+
space in the name
60+
Issue 615: Multivariate traits generation by BEAUti was broken in
61+
the 1.7.1 update
62+
Issue 618: BEAUti errors in States panel
63+
Issue 619: BEAUti bug: cannot select a defined taxon set in
64+
"Apply to taxon set" at the Tip date sampling
65+
Issue 620: BEAUti only allows taxon sets >1 taxa
66+
Issue 621: r3896 and r4062 broke Skyride in BEAUti
67+
Issue 622: BEAUti: the "big" updown operator is missing for
68+
*BEAST when calibration
69+
Issue 623: Logging multiple branch rate models in same tree log is broken
70+
Issue 624: Check boxes in BEAUti States panel do not line up
71+
Issue 625: BEAUti XML invalid for 1 codon-partitioned partition and any
72+
2nd partition
73+
Issue 627: Error renaming clock-group
74+
Issue 629: BEAST doesn't appear to be using multithreading
75+
76+
77+
================================================================================
78+
79+
Version 1.7.1 released 16th March 2012
2680

2781
New Features:
2882
TN93 added to BEAGLE BEAST interface
2983
Added BEAGLE rescaling options to options dialog
3084
Added BEAGLE rescaling frequency commandline option
3185

3286
Bug Fixes:
33-
Issue 71: Reflected exponentials (or lognormals) as priors?
3487
Issue 571: TN93 substitution model
3588
Issue 594: BEAUti 1.7 has a redundant and non-functional Sequence Error
3689
Model popup menu in SiteModelPanel
@@ -49,6 +102,8 @@ Version 1.7.1 released 9th March 2012
49102
bound and offset
50103
Issue 604: RealNumberField FocusListener in prior dialog makes
51104
many popups
105+
Issue 605: BEAUti complains about missing values in traits files
106+
52107

53108

54109
================================================================================

src/dr/app/beauti/BeautiFrame.java

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
*/
6666
public class BeautiFrame extends DocumentFrame {
6767

68-
private static final boolean ENABLE_ANCESTRAL_STATES = true;
69-
7068
private static final long serialVersionUID = 2114148696789612509L;
7169

7270
public final static String DATA_PARTITIONS = "Partitions";
@@ -200,13 +198,13 @@ public void initializeComponents() {
200198
"Select the priors on trees including coalescent models<br>" +
201199
"birth-death speciation models and the *BEAST gene tree,<br>" +
202200
"species tree options.</html>");
203-
if (ENABLE_ANCESTRAL_STATES) {
204-
tabbedPane.addTab(ANCESTRAL_STATES, ancestralStatesPanel);
205-
tabbedPane.setToolTipTextAt(index++, "<html>" +
206-
"Select options for sampling ancestral states at specific<br>" +
207-
"or all common ancestors, models of counting state changes<br>" +
208-
"and models of sequencing error for data partitions.</html>");
209-
}
201+
202+
tabbedPane.addTab(ANCESTRAL_STATES, ancestralStatesPanel);
203+
tabbedPane.setToolTipTextAt(index++, "<html>" +
204+
"Select options for sampling ancestral states at specific<br>" +
205+
"or all common ancestors, models of counting state changes<br>" +
206+
"and models of sequencing error for data partitions.</html>");
207+
210208
tabbedPane.addTab(PRIORS, priorsPanel);
211209
tabbedPane.setToolTipTextAt(index++, "<html>" +
212210
"Specify prior probability distributions on each and every<br>" +
@@ -319,9 +317,7 @@ public void setAllOptions() {
319317
siteModelsPanel.setOptions(options);
320318
clockModelsPanel.setOptions(options);
321319
treesPanel.setOptions(options);
322-
if (ENABLE_ANCESTRAL_STATES) {
323-
ancestralStatesPanel.setOptions(options);
324-
}
320+
ancestralStatesPanel.setOptions(options);
325321
priorsPanel.setOptions(options);
326322
operatorsPanel.setOptions(options);
327323
mcmcPanel.setOptions(options);
@@ -357,9 +353,7 @@ private void getAllOptions() {
357353
siteModelsPanel.getOptions(options);
358354
clockModelsPanel.getOptions(options);
359355
treesPanel.getOptions(options);
360-
if (ENABLE_ANCESTRAL_STATES) {
361-
ancestralStatesPanel.getOptions(options);
362-
}
356+
ancestralStatesPanel.getOptions(options);
363357
priorsPanel.getOptions(options);
364358
operatorsPanel.getOptions(options);
365359
mcmcPanel.getOptions(options);
@@ -677,18 +671,7 @@ public boolean setupStarBEAST(boolean useStarBEAST) {
677671
tabbedPane.insertTab("Species Sets", null, speciesSetPanel, null, 1);
678672

679673
} else { // remove species
680-
// why delete this? The user may want to use it again
681-
// because it is how *BEAST reverse to normal BEAST, otherwise after uncheck, everything goes wrong.
682-
683-
// AR - it is a fundamental point of UI design that we don't delete the user's work.
684-
// If the user had hand typed all the species designations in and then just switched *BEAST
685-
// off for a moment and lost all that work they would be annoyed. We need to work out what
686-
// why turning off *BEAST doesn't fully work.
687-
688-
// if (options.traitExists(TraitData.TRAIT_SPECIES)) {
689-
// traitsPanel.removeTrait(TraitData.TRAIT_SPECIES);
690-
options.fileNameStem = MCMCPanel.fileNameStem;
691-
// }
674+
options.fileNameStem = MCMCPanel.DEFAULT_FILE_NAME_STEM;
692675

693676
tabbedPane.removeTabAt(1);
694677
tabbedPane.insertTab("Taxon Sets", null, taxonSetPanel, null, 1);

src/dr/app/beauti/mcmcpanel/MCMCPanel.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ public class MCMCPanel extends BeautiPanel {
5959

6060
JCheckBox samplePriorCheckBox = new JCheckBox("Sample from prior only - create empty alignment");
6161

62-
public static final String fileNameStem = "untitled";
63-
JTextField fileNameStemField = new JTextField(fileNameStem);
62+
public static final String DEFAULT_FILE_NAME_STEM = "untitled";
63+
JTextField fileNameStemField = new JTextField(DEFAULT_FILE_NAME_STEM);
6464

6565
private JCheckBox addTxt = new JCheckBox("Add .txt suffix");
6666

67-
JTextField logFileNameField = new JTextField(fileNameStem + ".log");
68-
JTextField treeFileNameField = new JTextField(fileNameStem + "." + STARBEASTOptions.TREE_FILE_NAME);
67+
JTextField logFileNameField = new JTextField(DEFAULT_FILE_NAME_STEM + ".log");
68+
JTextField treeFileNameField = new JTextField(DEFAULT_FILE_NAME_STEM + "." + STARBEASTOptions.TREE_FILE_NAME);
6969
// JCheckBox allowOverwriteLogCheck = new JCheckBox("Allow to overwrite the existing log file");
7070

7171
// JCheckBox mapTreeLogCheck = new JCheckBox("Create tree file containing the MAP tree:");
@@ -75,7 +75,7 @@ public class MCMCPanel extends BeautiPanel {
7575
JTextField substTreeFileNameField = new JTextField("untitled(subst).trees");
7676

7777
JCheckBox operatorAnalaysisCheck = new JCheckBox("Create operator analysis file:");
78-
JTextField operatorAnalaysisFileNameField = new JTextField(fileNameStem + ".ops");
78+
JTextField operatorAnalaysisFileNameField = new JTextField(DEFAULT_FILE_NAME_STEM + ".ops");
7979

8080
BeautiFrame frame = null;
8181
private final OptionsPanel optionsPanel;
@@ -323,7 +323,7 @@ public void setOptions(BeautiOptions options) {
323323
if (options.fileNameStem != null) {
324324
fileNameStemField.setText(options.fileNameStem);
325325
} else {
326-
fileNameStemField.setText(fileNameStem);
326+
fileNameStemField.setText(DEFAULT_FILE_NAME_STEM);
327327
fileNameStemField.setEnabled(false);
328328
}
329329

@@ -387,8 +387,8 @@ private void updateOtherFileNames(BeautiOptions options) {
387387
} else {
388388
// fileNameStemField.setText(fileNameStem);
389389
// fileNameStemField.setEnabled(false);
390-
logFileNameField.setText(fileNameStem + ".log");
391-
treeFileNameField.setText(fileNameStem + "." + STARBEASTOptions.TREE_FILE_NAME);
390+
logFileNameField.setText(DEFAULT_FILE_NAME_STEM + ".log");
391+
treeFileNameField.setText(DEFAULT_FILE_NAME_STEM + "." + STARBEASTOptions.TREE_FILE_NAME);
392392
// mapTreeLogCheck.setEnabled(false);
393393
// mapTreeFileNameField.setEnabled(false);
394394
// mapTreeFileNameField.setText("untitled");

src/dr/app/beauti/options/BeautiOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void reset() {
114114
generateCSV = true; // until/if a button
115115
samplePriorOnly = false;
116116

117-
fileNameStem = MCMCPanel.fileNameStem;
117+
fileNameStem = MCMCPanel.DEFAULT_FILE_NAME_STEM;
118118
logFileName = null;
119119
allowOverwriteLog = false;
120120
// mapTreeLog = false;
@@ -1226,7 +1226,7 @@ public int getSpeciesIndex(String speciesName) {
12261226
public boolean generateCSV = true; // until/if a button
12271227
public boolean samplePriorOnly = false;
12281228

1229-
public String fileNameStem = MCMCPanel.fileNameStem;
1229+
public String fileNameStem = MCMCPanel.DEFAULT_FILE_NAME_STEM;
12301230
public String logFileName = null;
12311231
public boolean allowOverwriteLog = false;
12321232
// public boolean mapTreeLog = false;

src/dr/app/beauti/util/BEAUTiImporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
package dr.app.beauti.util;
2727

2828
import dr.app.beauti.BeautiFrame;
29+
import dr.app.beauti.mcmcpanel.MCMCPanel;
2930
import dr.app.beauti.options.*;
3031
import dr.app.util.Utils;
3132
import dr.evolution.alignment.Alignment;
@@ -519,7 +520,7 @@ private void setData(String fileName, Taxa taxonList, Patterns patterns,
519520
) throws ImportException, IllegalArgumentException {
520521
String fileNameStem = Utils.trimExtensions(fileName,
521522
new String[]{"NEX", "NEXUS", "TRE", "TREE", "XML", "TXT"});
522-
if (options.fileNameStem == null) {
523+
if (options.fileNameStem == null || options.fileNameStem.equals(MCMCPanel.DEFAULT_FILE_NAME_STEM)) {
523524
options.fileNameStem = fileNameStem;
524525
}
525526

0 commit comments

Comments
 (0)