Skip to content

Commit

Permalink
Restructure the script with a data and model block #56
Browse files Browse the repository at this point in the history
yaox1818 committed Jul 29, 2024
1 parent 968ed13 commit 0bf3d34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion phylonco-lphy/examples/gt16ReadCountModel.lphy
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
data {
n = 2;
l = 2;
w1 = 10.0;
epsilon = 0.6; // try 0.5
epsilon = 0.06; // try 0.5
delta = 0.5;
meanT = 2.3; // average coverage = lognormal(meanT, sdT)
sdT = 0.1;
meanV = 0.1; // variance coverage = lognormal(meanV, sdV)
sdV = 0.05;
meanS = 0.04; // cell-specific scaling
sdS = 0.001;
}

model {
Θ ~ LogNormal(meanlog=-2.0, sdlog=1.0);
ψ ~ Coalescent(n=n, theta=Θ);
π ~ Dirichlet(conc=[3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0]);
@@ -22,3 +25,4 @@ s ~ LogNormal(meanlog= meanS, sdlog= sdS, replicates=n);
alpha ~ Ploidy(l= l, n= n, delta= delta);
cov ~ CoverageModel(alpha= alpha, t= t, v= v, s= s);
r1 ~ ReadCountModel(D=A, epsilon=epsilon, alpha=alpha, coverage=cov, w=w1);
}

0 comments on commit 0bf3d34

Please sign in to comment.