-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use beast ExponentialGrowth, use GenericTreeLikelihood for lphybeast …
- Loading branch information
Showing
8 changed files
with
200 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...nco-beast/src/main/java/phylonco/beast/evolution/populationmodel/PopFuncWithUpDownOp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
//package phylonco.beast.evolution.populationmodel; | ||
// | ||
// | ||
//import beast.base.evolution.tree.Tree; | ||
//import beast.base.inference.operator.UpDownOperator; | ||
// | ||
//public interface PopFuncWithUpDownOp { | ||
// | ||
// UpDownOperator getUpDownOperator(Tree tree); | ||
//} | ||
package phylonco.beast.evolution.populationmodel; | ||
|
||
|
||
import beast.base.evolution.tree.Tree; | ||
import beast.base.inference.operator.UpDownOperator; | ||
|
||
public interface PopFuncWithUpDownOp { | ||
|
||
UpDownOperator getUpDownOperator(Tree tree); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
|
||
|
||
data { | ||
L = 500; | ||
L = 1000; | ||
} | ||
model { | ||
// f0 ~ Beta(alpha=20, beta=7); | ||
N0 ~ LogNormal(meanlog=6,sdlog=0.5); | ||
b ~ LogNormal(meanlog=-0.9, sdlog=0.05); | ||
NInfinity ~ LogNormal(meanlog=10, sdlog=0.5); | ||
gompertzPopFunc = gompertz(N0=N0, b=b, NInfinity=NInfinity); | ||
|
||
tree ~ CoalescentPopFunc(popFunc=gompertzPopFunc, n=16); | ||
// rootAge = tree.rootAge(); | ||
D ~ PhyloCTMC(tree=tree, L=L, Q=jukesCantor(), mu=1e-2); | ||
N0 ~ LogNormal(meanlog=8,sdlog=0.5); | ||
f0 ~ Beta(alpha=40, beta=2); | ||
b ~ LogNormal(meanlog=-0.95,sdlog=0.2); | ||
gompertzPopFunc = gompertz(N0=N0,f0=f0, b=b); | ||
tree ~ CoalescentPopFunc(n=40, popFunc=gompertzPopFunc); | ||
//rootAge = tree.rootAge(); | ||
D ~ PhyloCTMC(tree=tree, L=L, Q=jukesCantor(), mu=1e-2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
data { | ||
L = 1000; | ||
|
||
} | ||
model { | ||
N0 ~ LogNormal(meanlog=9,sdlog=0.3); | ||
f0 ~ Beta(alpha=30, beta=6); | ||
b ~ LogNormal(meanlog=-0.95,sdlog=0.2); | ||
gompertzPopFunc = gompertz(N0=N0,f0=f0, b=b); | ||
|
||
gompertzPopFunc= gompertz(N0=N0,f0=f0, b=b); | ||
ψ ~ CoalescentPopFunc(n=40, popFunc=gompertzPopFunc); | ||
|
||
π ~ Dirichlet(conc=[30.0,3.0,3.0,3.0,3.0,30.0,3.0,3.0,3.0,3.0,30.0,3.0,3.0,3.0,3.0,30.0]); | ||
rates ~ Dirichlet(conc=[1.0, 2.0, 1.0, 1.0, 2.0, 1.0]); | ||
Q = gt16(freq=π, rates=rates); // construct the GT16 instantaneous rate matrix | ||
A ~ PhyloCTMC(L=1000, Q=Q, tree=ψ, dataType=phasedGenotype(), mu=0.01); | ||
// epsilon ~ Beta(alpha=1, beta=50); | ||
// delta ~ Beta(alpha=1, beta=2); | ||
// E ~ GT16ErrorModel(delta=delta, epsilon=epsilon, alignment=A); | ||
D = unphase(A); | ||
} |
Oops, something went wrong.