Skip to content

Commit

Permalink
move to beastclassic namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Aug 3, 2022
1 parent b1e8eab commit b1d8986
Show file tree
Hide file tree
Showing 67 changed files with 127 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.app.beauti;
package beastclassic.app.beauti;

import java.awt.Frame;
import java.util.ArrayList;
Expand All @@ -19,10 +19,10 @@
import beast.base.parser.PartitionContext;
import beast.base.evolution.alignment.Alignment;
import beast.base.evolution.datatype.UserDataType;
import beast.evolution.alignment.AlignmentFromTrait;
import beast.evolution.likelihood.AncestralStateTreeLikelihood;
import beastclassic.evolution.alignment.AlignmentFromTrait;
import beastclassic.evolution.likelihood.AncestralStateTreeLikelihood;
import beastclassic.evolution.substitutionmodel.SVSGeneralSubstitutionModel;
import beast.base.evolution.sitemodel.SiteModel;
import beast.evolution.substitutionmodel.SVSGeneralSubstitutionModel;
import beast.base.evolution.tree.Tree;
import beast.base.inference.distribution.ParametricDistribution;
import beast.base.inference.distribution.Poisson;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.app.beauti;
package beastclassic.app.beauti;

import java.awt.Frame;
import java.util.ArrayList;
Expand All @@ -11,7 +11,7 @@
import beastfx.app.inputeditor.BeautiAlignmentProvider;
import beastfx.app.inputeditor.BeautiDoc;
import beast.base.parser.PartitionContext;
import beast.continuous.SampledMultivariateTraitLikelihood;
import beastclassic.continuous.SampledMultivariateTraitLikelihood;
import beast.base.core.BEASTInterface;
import beast.base.core.Description;
import beast.base.inference.State;
Expand Down Expand Up @@ -56,7 +56,7 @@ public List<BEASTInterface> getAlignments(BeautiDoc doc) {
@Override
public int matches(Alignment alignment) {
for (BEASTInterface output : alignment.getOutputs()) {
if (output instanceof beast.continuous.SampledMultivariateTraitLikelihood) {
if (output instanceof beastclassic.continuous.SampledMultivariateTraitLikelihood) {
return 10;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.app.beauti;
package beastclassic.app.beauti;


import java.awt.Color;
Expand Down Expand Up @@ -28,9 +28,9 @@
import beastfx.app.inputeditor.GuessPatternDialog;
import beastfx.app.inputeditor.ListInputEditor;
import beastfx.app.inputeditor.SmallLabel;
import beast.continuous.SampledMultivariateTraitLikelihood;
import beast.evolution.alignment.AlignmentFromTraitMap;
import beast.evolution.tree.TreeTraitMap;
import beastclassic.evolution.tree.TreeTraitMap;
import beastclassic.continuous.SampledMultivariateTraitLikelihood;
import beastclassic.evolution.alignment.AlignmentFromTraitMap;
import beast.base.core.BEASTInterface;
import beast.base.core.BEASTObject;
import beast.base.core.Input;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.app.beauti;
package beastclassic.app.beauti;

import javax.swing.JDialog;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.app.beauti;
package beastclassic.app.beauti;

import java.awt.Color;
import java.awt.Component;
Expand Down Expand Up @@ -36,8 +36,8 @@
import beast.base.evolution.alignment.Alignment;
import beast.base.evolution.alignment.TaxonSet;
import beast.base.evolution.datatype.UserDataType;
import beast.evolution.alignment.AlignmentFromTrait;
import beast.evolution.likelihood.AncestralStateTreeLikelihood;
import beastclassic.evolution.alignment.AlignmentFromTrait;
import beastclassic.evolution.likelihood.AncestralStateTreeLikelihood;
import beast.base.evolution.tree.TraitSet;
import beast.base.evolution.tree.Tree;
import beast.base.evolution.tree.TreeInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.continuous;
package beastclassic.continuous;



Expand All @@ -16,13 +16,13 @@
import beast.base.core.Input.Validate;
import beast.base.inference.parameter.RealParameter;
import beast.base.evolution.branchratemodel.BranchRateModel;
import beast.evolution.alignment.AlignmentFromTraitMap;
import beast.evolution.datatype.ContinuousDataType;
import beast.base.evolution.likelihood.GenericTreeLikelihood;
import beast.base.evolution.sitemodel.SiteModel;
import beast.evolution.substitutionmodel.ContinuousSubstitutionModel;
import beast.evolution.tree.TreeTrait;
import beast.evolution.tree.TreeTraitMap;
import beastclassic.evolution.tree.TreeTrait;
import beastclassic.evolution.tree.TreeTraitMap;
import beastclassic.evolution.alignment.AlignmentFromTraitMap;
import beastclassic.evolution.datatype.ContinuousDataType;
import beastclassic.evolution.substitutionmodel.ContinuousSubstitutionModel;
import beast.base.evolution.tree.Node;
import beast.base.evolution.tree.TreeInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
* Boston, MA 02110-1301 USA
*/

package beast.continuous;
package beastclassic.continuous;

import beast.base.core.Description;
import dr.math.distributions.MultivariateNormalDistribution;
import dr.math.distributions.WishartSufficientStatistics;

import java.util.List;

import beast.base.inference.parameter.RealParameter;
import beastclassic.dr.math.distributions.MultivariateNormalDistribution;
import beastclassic.dr.math.distributions.WishartSufficientStatistics;
import beast.base.evolution.branchratemodel.BranchRateModel;
import beast.base.evolution.tree.Node;
import beast.base.evolution.tree.TreeInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
* Boston, MA 02110-1301 USA
*/

package beast.continuous;
package beastclassic.continuous;


import java.util.Arrays;
import java.util.List;

import beast.base.core.Description;
import dr.evomodel.continuous.MissingTraits;
import dr.math.distributions.WishartSufficientStatistics;
import beast.base.core.Input;
import beast.base.inference.parameter.RealParameter;
import beast.base.evolution.branchratemodel.BranchRateModel;
import beast.base.evolution.tree.Node;
import beast.base.evolution.tree.TreeInterface;
import beast.base.math.matrixalgebra.SymmetricMatrix;
import beastclassic.dr.evolmodel.continuous.MissingTraits;
import beastclassic.dr.math.distributions.WishartSufficientStatistics;

/**
* A multivariate trait likelihood that analytically integrates out the unobserved trait values at all internal
Expand Down Expand Up @@ -941,7 +941,7 @@ private void preOrderTraverseSample(/*MultivariateTraitTree*/ TreeInterface tree
double[][] variance = computeMarginalRootMeanAndVariance(rootMean, treePrecision, treeVariance,
rootPrecision);

double[] draw = dr.math.distributions.MultivariateNormalDistribution.nextMultivariateNormalVariance(rootMean, variance);
double[] draw = beastclassic.dr.math.distributions.MultivariateNormalDistribution.nextMultivariateNormalVariance(rootMean, variance);

if (DEBUG_PREORDER) {
Arrays.fill(draw, 1.0);
Expand Down Expand Up @@ -1004,7 +1004,7 @@ private void preOrderTraverseSample(/*MultivariateTraitTree*/ TreeInterface tree
var[i][j] = treeVariance[i][j] / totalPrecision;
}
}
double[] draw = dr.math.distributions.MultivariateNormalDistribution.nextMultivariateNormalVariance(mean, var);
double[] draw = beastclassic.dr.math.distributions.MultivariateNormalDistribution.nextMultivariateNormalVariance(mean, var);
System.arraycopy(draw, 0, drawnStates, thisOffset, dimTrait);

// if (DEBUG) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package beast.continuous;
package beastclassic.continuous;

import beast.base.core.Description;
import beast.base.core.Input;
import beast.base.core.Input.Validate;
import beast.base.inference.parameter.RealParameter;
import beast.evolution.substitutionmodel.*;
import beastclassic.dr.math.distributions.MultivariateNormalDistribution;
import beastclassic.evolution.substitutionmodel.ContinuousSubstitutionModel;
import beast.base.evolution.tree.Tree;
import dr.math.distributions.MultivariateNormalDistribution;



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.continuous;
package beastclassic.continuous;

//import dr.evolution.tree.NodeRef;
//import dr.evolution.tree.Tree;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Boston, MA 02110-1301 USA
*/

package dr.math;
package beastclassic.dr;

import beast.base.core.Description;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
* Boston, MA 02110-1301 USA
*/

package dr.evomodel.continuous;
package beastclassic.dr.evolmodel.continuous;


import java.util.Arrays;
import java.util.List;
import java.util.logging.Logger;

import beast.continuous.IntegratedMultivariateTraitLikelihood;
import beast.base.evolution.tree.TreeInterface;
import beastclassic.continuous.IntegratedMultivariateTraitLikelihood;

/**
* @author Marc A. Suchard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dr.math.distributions;
package beastclassic.dr.math.distributions;

/**
* @author Marc A. Suchard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dr.math.distributions;
package beastclassic.dr.math.distributions;


import beast.base.core.Description;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dr.math.distributions;
package beastclassic.dr.math.distributions;


import org.apache.commons.math.distribution.GammaDistribution;
Expand All @@ -9,10 +9,7 @@
import beast.base.math.matrixalgebra.IllegalDimension;
import beast.base.math.matrixalgebra.Matrix;
import beast.base.util.Randomizer;



import dr.math.GammaFunction;
import beastclassic.dr.GammaFunction;

/**
* @author Marc Suchard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dr.math.distributions;
package beastclassic.dr.math.distributions;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dr.math.util;
package beastclassic.dr.util;

import static java.lang.Math.sqrt;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.alignment;
package beastclassic.evolution.alignment;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.alignment;
package beastclassic.evolution.alignment;


import java.util.ArrayList;
Expand All @@ -8,8 +8,8 @@
import beast.base.core.Input;
import beast.base.core.Input.Validate;
import beast.base.evolution.alignment.Alignment;
import beast.evolution.datatype.ContinuousDataType;
import beast.evolution.tree.TreeTraitMap;
import beastclassic.evolution.tree.TreeTraitMap;
import beastclassic.evolution.datatype.ContinuousDataType;



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.datatype;
package beastclassic.evolution.datatype;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.datatype;
package beastclassic.evolution.datatype;

import beast.base.core.Description;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.likelihood;
package beastclassic.evolution.likelihood;

import java.io.PrintStream;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.likelihood;
package beastclassic.evolution.likelihood;



Expand All @@ -23,8 +23,8 @@
import beast.base.evolution.tree.Tree;
import beast.base.evolution.tree.TreeInterface;
import beast.base.util.Randomizer;
import beast.evolution.tree.TreeTrait;
import beast.evolution.tree.TreeTraitProvider;
import beastclassic.evolution.tree.TreeTrait;
import beastclassic.evolution.tree.TreeTraitProvider;

/**
* @author Marc A. Suchard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.likelihood;
package beastclassic.evolution.likelihood;

import beast.base.inference.CalculationNode;
import beast.base.core.Description;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.operators;
package beastclassic.evolution.operators;

import beast.base.core.Description;
import beast.base.core.Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Boston, MA 02110-1301 USA
*/

package beast.evolution.operators;
package beastclassic.evolution.operators;

import no.uib.cipr.matrix.*;

Expand All @@ -39,8 +39,8 @@
import beast.base.inference.Operator;
import beast.base.inference.StateNode;
import beast.base.inference.parameter.RealParameter;
import beast.evolution.tree.coalescent.GMRFMultilocusSkyrideLikelihood;
import beast.base.util.Randomizer;
import beastclassic.evolution.tree.coalescent.GMRFMultilocusSkyrideLikelihood;

/* A Metropolis-Hastings operator to update the log population sizes and precision parameter jointly under a Gaussian Markov random field prior
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.operators;
package beastclassic.evolution.operators;


import no.uib.cipr.matrix.*;
Expand All @@ -14,8 +14,8 @@
import beast.base.inference.StateNode;
import beast.base.core.Input.Validate;
import beast.base.inference.parameter.RealParameter;
import beast.evolution.tree.coalescent.GMRFSkyrideLikelihood;
import beast.base.util.Randomizer;
import beastclassic.evolution.tree.coalescent.GMRFSkyrideLikelihood;



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.operators;
package beastclassic.evolution.operators;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beast.evolution.operators;
package beastclassic.evolution.operators;


import java.util.HashSet;
Expand Down
Loading

0 comments on commit b1d8986

Please sign in to comment.