bella-companion 0.0.38__tar.gz → 0.0.43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bella-companion might be problematic. Click here for more details.
- {bella_companion-0.0.38 → bella_companion-0.0.43}/PKG-INFO +1 -1
- bella_companion-0.0.43/bella_companion/eucovid/beast_configs/GLM.xml +170 -0
- bella_companion-0.0.43/bella_companion/eucovid/beast_configs/MLP.xml +170 -0
- bella_companion-0.0.43/bella_companion/eucovid/beast_configs/Nonparametric.xml +399 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/case_data.tsv +346 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/change_dates.tsv +8 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/msa.fasta +79500 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/osi.tsv +376 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/closedborders_7e_nt.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/dist_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/flight_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/flight_pop_x_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/osi_x_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/osi_y_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/pop_x_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/pop_y_7e_ls.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/all/sharedborders_7e_nt.tsv +35 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/changetimes_all_7e.tsv +6 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/changetimes_flights_4e.tsv +3 -0
- bella_companion-0.0.43/bella_companion/eucovid/data/predictors/flight_pop_x_4e_ls.tsv +20 -0
- bella_companion-0.0.43/bella_companion/platyrrhine/beast_config.xml +117 -0
- bella_companion-0.0.43/bella_companion/platyrrhine/data/change_times.csv +12 -0
- bella_companion-0.0.43/bella_companion/platyrrhine/data/traits.csv +122 -0
- bella_companion-0.0.43/bella_companion/platyrrhine/data/trees.nwk +100 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-multitype/GLM.xml +81 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-multitype/MLP.xml +81 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-multitype/Nonparametric.xml +65 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-skyline/GLM.xml +71 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-skyline/MLP.xml +73 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/epi-skyline/Nonparametric.xml +57 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-2traits/GLM.xml +101 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-2traits/MLP.xml +98 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-2traits/Nonparametric.xml +70 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-no-traits/GLM.xml +88 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-no-traits/MLP.xml +86 -0
- bella_companion-0.0.43/bella_companion/simulations/beast_configs/fbd-no-traits/Nonparametric.xml +62 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/epi_skyline_results.py +1 -1
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/explain/shap.py +13 -7
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/fbd_no_traits_results.py +1 -1
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion.egg-info/PKG-INFO +1 -1
- bella_companion-0.0.43/bella_companion.egg-info/SOURCES.txt +79 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/pyproject.toml +4 -1
- bella_companion-0.0.38/bella_companion.egg-info/SOURCES.txt +0 -44
- {bella_companion-0.0.38 → bella_companion-0.0.43}/README.md +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/cli.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/eucovid/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/eucovid/run_beast.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/platyrrhine/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/platyrrhine/results.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/platyrrhine/run_beast.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/platyrrhine/summarize_logs.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/features.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/epi_multitype_results.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/explain/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/explain/pdp.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/fbd_2traits_results.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/scenarios.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/figures/utils.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/generate_data.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/generate_figures.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/metrics.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/run_beast.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/common.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/epi_multitype.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/epi_skyline.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/fbd_2traits.py +1 -1
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/fbd_no_traits.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/scenarios/scenario.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/simulations/summarize_logs.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/utils/__init__.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/utils/beast.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/utils/explain.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion/utils/slurm.py +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion.egg-info/dependency_links.txt +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion.egg-info/entry_points.txt +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion.egg-info/requires.txt +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/bella_companion.egg-info/top_level.txt +0 -0
- {bella_companion-0.0.38 → bella_companion-0.0.43}/setup.cfg +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<beast
|
|
3
|
+
namespace="
|
|
4
|
+
:beast.base.evolution
|
|
5
|
+
:beast.base.evolution.alignment
|
|
6
|
+
:beast.base.evolution.branchratemodel
|
|
7
|
+
:beast.base.evolution.likelihood
|
|
8
|
+
:beast.base.evolution.operator
|
|
9
|
+
:beast.base.evolution.operator.kernel
|
|
10
|
+
:beast.base.evolution.sitemodel
|
|
11
|
+
:beast.base.evolution.substitutionmodel
|
|
12
|
+
:beast.base.evolution.tree
|
|
13
|
+
:beast.base.evolution.tree.coalescent
|
|
14
|
+
:beast.base.inference
|
|
15
|
+
:beast.base.inference.parameter
|
|
16
|
+
:beast.base.inference.operator.kernel
|
|
17
|
+
:bdmmprime.distribution
|
|
18
|
+
:bdmmprime.mapping
|
|
19
|
+
:bdmmprime.trajectories
|
|
20
|
+
:bdmmprime.parameterization
|
|
21
|
+
:bdmmprime.util
|
|
22
|
+
:bdmmprime.util.operators
|
|
23
|
+
:bdmmprime.util.priors
|
|
24
|
+
:feast.fileio"
|
|
25
|
+
version="2.7"
|
|
26
|
+
>
|
|
27
|
+
<map name="Uniform">beast.base.inference.distribution.Uniform</map>
|
|
28
|
+
<map name="Exponential">beast.base.inference.distribution.Exponential</map>
|
|
29
|
+
<map name="LogNormal">beast.base.inference.distribution.LogNormalDistributionModel</map>
|
|
30
|
+
<map name="Normal">beast.base.inference.distribution.Normal</map>
|
|
31
|
+
<map name="prior">beast.base.inference.distribution.Prior</map>
|
|
32
|
+
<map name="AlignmentFromFasta">feast.fileio.AlignmentFromFasta</map>
|
|
33
|
+
<map name="TaxonSet">beast.base.evolution.alignment.TaxonSet</map>
|
|
34
|
+
<map name="TraitSetFromTaxonSet">feast.fileio.TraitSetFromTaxonSet</map>
|
|
35
|
+
<map name="TypeSet">bdmmprime.parameterization.TypeSet</map>
|
|
36
|
+
<map name="TypeMappedTree">bdmmprime.mapping.TypeMappedTree</map>
|
|
37
|
+
|
|
38
|
+
<AlignmentFromFasta id="alignment" fileName="$(msa_file)"/>
|
|
39
|
+
<TaxonSet id="taxonSet" alignment="@alignment"/>
|
|
40
|
+
<TraitSetFromTaxonSet id="typeTraitSet" traitname="type" delimiter="|" takeGroup="1" taxa="@taxonSet"/>
|
|
41
|
+
<TypeSet id="typeSet" typeTraitSet="@typeTraitSet"/>
|
|
42
|
+
<TraitSetFromTaxonSet id="dateTrait" traitname="date" dateFormat="yyyy-M-dd" delimiter="|" everythingAfterLast="true" taxa="@taxonSet"/>
|
|
43
|
+
<TypeMappedTree id="typeMappedTree" bdmmDistrib="@BDMMPrime" startTypePriorProbs="@startTypePriorProbs" mapOnInit="false" remapOnLog="true" typeLabel="type" typeTraitSet="@typeTraitSet" untypedTree="@tree"/>
|
|
44
|
+
|
|
45
|
+
<run spec="MCMC" chainLength="10000000">
|
|
46
|
+
<state id="state" spec="State">
|
|
47
|
+
<stateNode id="tree" spec="RandomTree" taxa="@alignment" trait="@dateTrait">
|
|
48
|
+
<populationModel spec="ConstantPopulation" popSize="0.1"/>
|
|
49
|
+
</stateNode>
|
|
50
|
+
<stateNode id="Re" spec="RealParameter" value="1.0 1.1 1.2 1.3 1.4 1.01 1.1 1.2 1.3 1.4"/>
|
|
51
|
+
<stateNode id="samplingProportion" spec="RealParameter" value="1.11E-5 1.2E-5 1.3E-5 1.4E-5 1.5E-5 1.1E-5 1.2E-5 1.3E-5 1.4E-5 1.5E-5 0.0 0.0 0.0 0.0 0.0"/>
|
|
52
|
+
<stateNode id="migrationRateW" spec="RealParameter" value="0"/>
|
|
53
|
+
<stateNode id="migrationRateScaler" spec="RealParameter" value="0.1"/>
|
|
54
|
+
<stateNode id="processLength" spec="RealParameter" value="10.0"/>
|
|
55
|
+
<stateNode id="gammaShape" spec="RealParameter" value="1.0"/>
|
|
56
|
+
<stateNode id="kappa" spec="RealParameter" value="2.0"/>
|
|
57
|
+
</state>
|
|
58
|
+
|
|
59
|
+
<distribution id="posterior" spec="CompoundDistribution">
|
|
60
|
+
<distribution id="likelihood" spec="CompoundDistribution" useThreads="true">
|
|
61
|
+
<distribution id="treeLikelihood" spec="ThreadedTreeLikelihood" data="@alignment" tree="@tree">
|
|
62
|
+
<siteModel spec="SiteModel" gammaCategoryCount="4" shape="@gammaShape" mutationRate="1.0">
|
|
63
|
+
<substModel spec="HKY" kappa="@kappa">
|
|
64
|
+
<frequencies spec="Frequencies" data="@alignment"/>
|
|
65
|
+
</substModel>
|
|
66
|
+
</siteModel>
|
|
67
|
+
<branchRateModel spec="StrictClockModel" clock.rate="8.0E-4"/>
|
|
68
|
+
</distribution>
|
|
69
|
+
</distribution>
|
|
70
|
+
|
|
71
|
+
<distribution id="prior" spec="CompoundDistribution">
|
|
72
|
+
<distribution id="BDMMPrime" spec="BirthDeathMigrationDistribution" tree="@tree" conditionOnSurvival="true" typeTraitSet="@typeTraitSet">
|
|
73
|
+
<parameterization id="EpiBDMMPrimeParameterization" spec="EpiParameterization" processLength="@processLength" typeSet="@typeSet">
|
|
74
|
+
<Re id="ReSP" spec="SkylineVectorParameter" skylineValues="@Re" changeTimes="0.123" timesAreAges="true" processLength="@processLength" typeSet="@typeSet"/>
|
|
75
|
+
<samplingProportion id="samplingProportionSP" spec="SkylineVectorParameter" skylineValues="@samplingProportion" changeTimes="0.123 0.205" timesAreAges="true" processLength="@processLength" typeSet="@typeSet"/>
|
|
76
|
+
<becomeUninfectiousRate spec="SkylineVectorParameter" skylineValues="36.5" typeSet="@typeSet"/>
|
|
77
|
+
<migrationRate id="migrationRateSP" spec="SkylineMatrixParameter" timesAreAges="true" processLength="@processLength" typeSet="@typeSet">
|
|
78
|
+
<skylineValues spec="glmprior.util.GLMLogLinear" coefficients="@migrationRateW" scaleFactor="@migrationRateScaler" transform="false">
|
|
79
|
+
<plate var="predictorFile" range="$(predictorFiles)">
|
|
80
|
+
<predictor spec="RealParameterFromXSV" fileName="$(predictorFile)"/>
|
|
81
|
+
</plate>
|
|
82
|
+
<indicators spec="BooleanParameter" value="1"/>
|
|
83
|
+
</skylineValues>
|
|
84
|
+
<changeTimes spec="RealParameterFromXSV" fileName="$(changeTimesFile)"/>
|
|
85
|
+
</migrationRate>
|
|
86
|
+
<removalProb spec="SkylineVectorParameter" skylineValues="1.0" typeSet="@typeSet"/>
|
|
87
|
+
</parameterization>
|
|
88
|
+
<startTypePriorProbs id="startTypePriorProbs" spec="RealParameter" value="1.0 0.0 0.0 0.0 0.0"/>
|
|
89
|
+
</distribution>
|
|
90
|
+
|
|
91
|
+
<prior name="distribution" x="@processLength">
|
|
92
|
+
<LogNormal name="distr" M="-1.0" S="0.2"/>
|
|
93
|
+
</prior>
|
|
94
|
+
<distribution spec="SmartZeroExcludingPrior" x="@Re">
|
|
95
|
+
<LogNormal name="distr" M="0.8" S="0.5"/>
|
|
96
|
+
</distribution>
|
|
97
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.2E-5 1.3E-5 1.4E-5 1.5E-5">
|
|
98
|
+
<Uniform name="distr" lower="0" upper="0.15"/>
|
|
99
|
+
</distribution>
|
|
100
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.3E-5 1.4E-5 1.5E-5">
|
|
101
|
+
<Uniform name="distr" lower="0" upper="0.093"/>
|
|
102
|
+
</distribution>
|
|
103
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.4E-5 1.5E-5">
|
|
104
|
+
<Uniform name="distr" lower="0" upper="0.10"/>
|
|
105
|
+
</distribution>
|
|
106
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.5E-5">
|
|
107
|
+
<Uniform name="distr" lower="0" upper="0.005"/>
|
|
108
|
+
</distribution>
|
|
109
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.4E-5">
|
|
110
|
+
<Uniform name="distr" lower="0" upper="0.057"/>
|
|
111
|
+
</distribution>
|
|
112
|
+
<prior name="distribution" x="@migrationRateW">
|
|
113
|
+
<Normal name="distr" mean="0.0" sigma="1.0"/>
|
|
114
|
+
</prior>
|
|
115
|
+
<prior name="distribution" x="@migrationRateScaler">
|
|
116
|
+
<LogNormal name="distr" M="0.0" S="0.8"/>
|
|
117
|
+
</prior>
|
|
118
|
+
<prior name="distribution" x="@gammaShape">
|
|
119
|
+
<Exponential name="distr" mean="0.5"/>
|
|
120
|
+
</prior>
|
|
121
|
+
<prior id="KappaPrior" name="distribution" x="@kappa">
|
|
122
|
+
<LogNormal name="distr" M="1.0" S="1.25"/>
|
|
123
|
+
</prior>
|
|
124
|
+
</distribution>
|
|
125
|
+
</distribution>
|
|
126
|
+
|
|
127
|
+
<operator spec="BactrianScaleOperator" tree="@tree" rootOnly="true" scaleFactor="0.25" weight="5.0"/>
|
|
128
|
+
<operator spec="BactrianNodeOperator" tree="@tree" weight="30.0"/>
|
|
129
|
+
<operator spec="BactrianSubtreeSlide" tree="@tree" weight="15.0"/>
|
|
130
|
+
<operator spec="Exchange" tree="@tree" weight="15.0"/>
|
|
131
|
+
<operator spec="Exchange" tree="@tree" isNarrow="false" weight="3.0"/>
|
|
132
|
+
<operator spec="WilsonBalding" tree="@tree" weight="3.0"/>
|
|
133
|
+
<operator spec="EpochFlexOperator" tree="@tree" scaleFactor="0.1" weight="2.0"/>
|
|
134
|
+
<operator spec="EpochFlexOperator" tree="@tree" fromOldestTipOnly="false" scaleFactor="0.1" weight="2.0"/>
|
|
135
|
+
<operator spec="TreeStretchOperator" tree="@tree" scaleFactor="0.01" weight="2.0"/>
|
|
136
|
+
<operator spec="BactrianScaleOperator" parameter="@processLength" scaleFactor="0.25" weight="3.0"/>
|
|
137
|
+
<operator spec="SmartScaleOperator" parameter="@Re" scaleFactor="0.25" weight="10.0"/>
|
|
138
|
+
<operator spec="SmartScaleOperator" parameter="@samplingProportion" weight="3.0"/>
|
|
139
|
+
<operator spec="BactrianRandomWalkOperator" parameter="@migrationRateW" weight="5.0" scaleFactor="0.1"/>
|
|
140
|
+
<operator spec="AdaptableVarianceMultivariateNormalOperator" weight="5.0" coefficient="1.0" scaleFactor="0.5" beta="0.05" initial="800" burnin="400" every="1">
|
|
141
|
+
<transformations spec="Transform$NoTransform" f="@migrationRateW"/>
|
|
142
|
+
</operator>
|
|
143
|
+
<operator spec="BactrianScaleOperator" parameter="@gammaShape" weight="1.0"/>
|
|
144
|
+
<operator spec="BactrianScaleOperator" parameter="@kappa" weight="1.0"/>
|
|
145
|
+
|
|
146
|
+
<logger spec="Logger" fileName="MCMC.log" logEvery="1000" model="@posterior" sanitiseHeaders="true" sort="smart">
|
|
147
|
+
<log idref="posterior"/>
|
|
148
|
+
<log idref="likelihood"/>
|
|
149
|
+
<log idref="prior"/>
|
|
150
|
+
<log idref="BDMMPrime"/>
|
|
151
|
+
<log idref="gammaShape"/>
|
|
152
|
+
<log idref="kappa"/>
|
|
153
|
+
<log idref="processLength"/>
|
|
154
|
+
<log idref="ReSP"/>
|
|
155
|
+
<log idref="samplingProportionSP"/>
|
|
156
|
+
<log idref="migrationRateSP"/>
|
|
157
|
+
<log idref="migrationRateW"/>
|
|
158
|
+
<log idref="migrationRateScaler"/>
|
|
159
|
+
</logger>
|
|
160
|
+
<logger spec="Logger" fileName="typedTrees.trees" logEvery="10000" mode="tree">
|
|
161
|
+
<log idref="typeMappedTree"/>
|
|
162
|
+
</logger>
|
|
163
|
+
<logger spec="Logger" fileName="TypedNodeTrees.trees" logEvery="10000" mode="tree">
|
|
164
|
+
<log spec="TypedNodeTreeLogger" typedTree="@typeMappedTree"/>
|
|
165
|
+
</logger>
|
|
166
|
+
<logger spec="Logger" fileName="trajectories.csv" logEvery="10000">
|
|
167
|
+
<log spec="SampledTrajectory" bdmmDistrib="@BDMMPrime" startTypePriorProbs="@startTypePriorProbs" typeMappedTree="@typeMappedTree" useTauLeaping="true"/>
|
|
168
|
+
</logger>
|
|
169
|
+
</run>
|
|
170
|
+
</beast>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<beast
|
|
3
|
+
namespace="
|
|
4
|
+
:beast.base.evolution
|
|
5
|
+
:beast.base.evolution.alignment
|
|
6
|
+
:beast.base.evolution.branchratemodel
|
|
7
|
+
:beast.base.evolution.likelihood
|
|
8
|
+
:beast.base.evolution.operator
|
|
9
|
+
:beast.base.evolution.operator.kernel
|
|
10
|
+
:beast.base.evolution.sitemodel
|
|
11
|
+
:beast.base.evolution.substitutionmodel
|
|
12
|
+
:beast.base.evolution.tree
|
|
13
|
+
:beast.base.evolution.tree.coalescent
|
|
14
|
+
:beast.base.inference
|
|
15
|
+
:beast.base.inference.parameter
|
|
16
|
+
:beast.base.inference.operator.kernel
|
|
17
|
+
:bdmmprime.distribution
|
|
18
|
+
:bdmmprime.mapping
|
|
19
|
+
:bdmmprime.trajectories
|
|
20
|
+
:bdmmprime.parameterization
|
|
21
|
+
:bdmmprime.util
|
|
22
|
+
:bdmmprime.util.operators
|
|
23
|
+
:bdmmprime.util.priors
|
|
24
|
+
:feast.fileio"
|
|
25
|
+
version="2.7"
|
|
26
|
+
>
|
|
27
|
+
<map name="Uniform">beast.base.inference.distribution.Uniform</map>
|
|
28
|
+
<map name="Exponential">beast.base.inference.distribution.Exponential</map>
|
|
29
|
+
<map name="LogNormal">beast.base.inference.distribution.LogNormalDistributionModel</map>
|
|
30
|
+
<map name="Normal">beast.base.inference.distribution.Normal</map>
|
|
31
|
+
<map name="prior">beast.base.inference.distribution.Prior</map>
|
|
32
|
+
<map name="AlignmentFromFasta">feast.fileio.AlignmentFromFasta</map>
|
|
33
|
+
<map name="TaxonSet">beast.base.evolution.alignment.TaxonSet</map>
|
|
34
|
+
<map name="TraitSetFromTaxonSet">feast.fileio.TraitSetFromTaxonSet</map>
|
|
35
|
+
<map name="TypeSet">bdmmprime.parameterization.TypeSet</map>
|
|
36
|
+
<map name="TypeMappedTree">bdmmprime.mapping.TypeMappedTree</map>
|
|
37
|
+
|
|
38
|
+
<AlignmentFromFasta id="alignment" fileName="$(msa_file)"/>
|
|
39
|
+
<TaxonSet id="taxonSet" alignment="@alignment"/>
|
|
40
|
+
<TraitSetFromTaxonSet id="typeTraitSet" traitname="type" delimiter="|" takeGroup="1" taxa="@taxonSet"/>
|
|
41
|
+
<TypeSet id="typeSet" typeTraitSet="@typeTraitSet"/>
|
|
42
|
+
<TraitSetFromTaxonSet id="dateTrait" traitname="date" dateFormat="yyyy-M-dd" delimiter="|" everythingAfterLast="true" taxa="@taxonSet"/>
|
|
43
|
+
<TypeMappedTree id="typeMappedTree" bdmmDistrib="@BDMMPrime" startTypePriorProbs="@startTypePriorProbs" mapOnInit="false" remapOnLog="true" typeLabel="type" typeTraitSet="@typeTraitSet" untypedTree="@tree"/>
|
|
44
|
+
|
|
45
|
+
<run spec="MCMC" chainLength="10000000">
|
|
46
|
+
<state id="state" spec="State">
|
|
47
|
+
<stateNode id="tree" spec="RandomTree" taxa="@alignment" trait="@dateTrait">
|
|
48
|
+
<populationModel spec="ConstantPopulation" popSize="0.1"/>
|
|
49
|
+
</stateNode>
|
|
50
|
+
<stateNode id="Re" spec="RealParameter" value="1.0 1.1 1.2 1.3 1.4 1.01 1.1 1.2 1.3 1.4"/>
|
|
51
|
+
<stateNode id="samplingProportion" spec="RealParameter" value="1.11E-5 1.2E-5 1.3E-5 1.4E-5 1.5E-5 1.1E-5 1.2E-5 1.3E-5 1.4E-5 1.5E-5 0.0 0.0 0.0 0.0 0.0"/>
|
|
52
|
+
<plate var="n" range="$(layersRange)">
|
|
53
|
+
<stateNode spec="RealParameter" id="migrationRateW$(n)" value="0"/>
|
|
54
|
+
</plate>
|
|
55
|
+
<stateNode id="processLength" spec="RealParameter" value="10.0"/>
|
|
56
|
+
<stateNode id="gammaShape" spec="RealParameter" value="1.0"/>
|
|
57
|
+
<stateNode id="kappa" spec="RealParameter" value="2.0"/>
|
|
58
|
+
</state>
|
|
59
|
+
|
|
60
|
+
<distribution id="posterior" spec="CompoundDistribution">
|
|
61
|
+
<distribution id="likelihood" spec="CompoundDistribution" useThreads="true">
|
|
62
|
+
<distribution id="treeLikelihood" spec="ThreadedTreeLikelihood" data="@alignment" tree="@tree">
|
|
63
|
+
<siteModel spec="SiteModel" gammaCategoryCount="4" shape="@gammaShape" mutationRate="1.0">
|
|
64
|
+
<substModel spec="HKY" kappa="@kappa">
|
|
65
|
+
<frequencies spec="Frequencies" data="@alignment"/>
|
|
66
|
+
</substModel>
|
|
67
|
+
</siteModel>
|
|
68
|
+
<branchRateModel spec="StrictClockModel" clock.rate="8.0E-4"/>
|
|
69
|
+
</distribution>
|
|
70
|
+
</distribution>
|
|
71
|
+
|
|
72
|
+
<distribution id="prior" spec="CompoundDistribution">
|
|
73
|
+
<distribution id="BDMMPrime" spec="BirthDeathMigrationDistribution" tree="@tree" conditionOnSurvival="true" typeTraitSet="@typeTraitSet">
|
|
74
|
+
<parameterization id="EpiBDMMPrimeParameterization" spec="EpiParameterization" processLength="@processLength" typeSet="@typeSet">
|
|
75
|
+
<Re id="ReSP" spec="SkylineVectorParameter" skylineValues="@Re" changeTimes="0.123" timesAreAges="true" processLength="@processLength" typeSet="@typeSet" />
|
|
76
|
+
<samplingProportion id="samplingProportionSP" spec="SkylineVectorParameter" skylineValues="@samplingProportion" changeTimes="0.123 0.205" timesAreAges="true" processLength="@processLength" typeSet="@typeSet"/>
|
|
77
|
+
<becomeUninfectiousRate spec="SkylineVectorParameter" skylineValues="36.5" typeSet="@typeSet"/>
|
|
78
|
+
<migrationRate id="migrationRateSP" spec="SkylineMatrixParameter" timesAreAges="true" processLength="@processLength" typeSet="@typeSet">
|
|
79
|
+
<skylineValues id="migrationRate" spec="bella.BayesMLP" nodes="$(nodes)">
|
|
80
|
+
<plate var="predictorFile" range="$(predictorFiles)">
|
|
81
|
+
<predictor spec="RealParameterFromXSV" fileName="$(predictorFile)"/>
|
|
82
|
+
</plate>
|
|
83
|
+
<plate var="n" range="$(layersRange)">
|
|
84
|
+
<weights idref="migrationRateW$(n)"/>
|
|
85
|
+
</plate>
|
|
86
|
+
</skylineValues>
|
|
87
|
+
<changeTimes spec="RealParameterFromXSV" fileName="$(changeTimesFile)"/>
|
|
88
|
+
</migrationRate>
|
|
89
|
+
<removalProb spec="SkylineVectorParameter" skylineValues="1.0" typeSet="@typeSet"/>
|
|
90
|
+
</parameterization>
|
|
91
|
+
<startTypePriorProbs id="startTypePriorProbs" spec="RealParameter" value="1.0 0.0 0.0 0.0 0.0"/>
|
|
92
|
+
</distribution>
|
|
93
|
+
|
|
94
|
+
<prior name="distribution" x="@processLength">
|
|
95
|
+
<LogNormal name="distr" M="-1.0" S="0.2"/>
|
|
96
|
+
</prior>
|
|
97
|
+
<distribution spec="SmartZeroExcludingPrior" x="@Re">
|
|
98
|
+
<LogNormal name="distr" M="0.8" S="0.5"/>
|
|
99
|
+
</distribution>
|
|
100
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.2E-5 1.3E-5 1.4E-5 1.5E-5">
|
|
101
|
+
<Uniform name="distr" lower="0" upper="0.15"/>
|
|
102
|
+
</distribution>
|
|
103
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.3E-5 1.4E-5 1.5E-5">
|
|
104
|
+
<Uniform name="distr" lower="0" upper="0.093"/>
|
|
105
|
+
</distribution>
|
|
106
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.4E-5 1.5E-5">
|
|
107
|
+
<Uniform name="distr" lower="0" upper="0.10"/>
|
|
108
|
+
</distribution>
|
|
109
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.5E-5">
|
|
110
|
+
<Uniform name="distr" lower="0" upper="0.005"/>
|
|
111
|
+
</distribution>
|
|
112
|
+
<distribution spec="SmartZeroExcludingPrior" x="@samplingProportion" classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.4E-5">
|
|
113
|
+
<Uniform name="distr" lower="0" upper="0.057"/>
|
|
114
|
+
</distribution>
|
|
115
|
+
<plate var="n" range="$(layersRange)">
|
|
116
|
+
<prior name="distribution" x="@migrationRateW$(n)">
|
|
117
|
+
<Normal name="distr" mean="0.0" sigma="1.0"/>
|
|
118
|
+
</prior>
|
|
119
|
+
</plate>
|
|
120
|
+
<prior name="distribution" x="@gammaShape">
|
|
121
|
+
<Exponential name="distr" mean="0.5"/>
|
|
122
|
+
</prior>
|
|
123
|
+
<prior id="KappaPrior" name="distribution" x="@kappa">
|
|
124
|
+
<LogNormal name="distr" M="1.0" S="1.25"/>
|
|
125
|
+
</prior>
|
|
126
|
+
</distribution>
|
|
127
|
+
</distribution>
|
|
128
|
+
|
|
129
|
+
<operator spec="BactrianScaleOperator" tree="@tree" rootOnly="true" scaleFactor="0.25" weight="5.0"/>
|
|
130
|
+
<operator spec="BactrianNodeOperator" tree="@tree" weight="30.0"/>
|
|
131
|
+
<operator spec="BactrianSubtreeSlide" tree="@tree" weight="15.0"/>
|
|
132
|
+
<operator spec="Exchange" tree="@tree" weight="15.0"/>
|
|
133
|
+
<operator spec="Exchange" tree="@tree" isNarrow="false" weight="3.0"/>
|
|
134
|
+
<operator spec="WilsonBalding" tree="@tree" weight="3.0"/>
|
|
135
|
+
<operator spec="EpochFlexOperator" tree="@tree" scaleFactor="0.1" weight="2.0"/>
|
|
136
|
+
<operator spec="EpochFlexOperator" tree="@tree" fromOldestTipOnly="false" scaleFactor="0.1" weight="2.0"/>
|
|
137
|
+
<operator spec="TreeStretchOperator" tree="@tree" scaleFactor="0.01" weight="2.0"/>
|
|
138
|
+
<operator spec="BactrianScaleOperator" parameter="@processLength" scaleFactor="0.25" weight="3.0"/>
|
|
139
|
+
<operator spec="SmartScaleOperator" parameter="@Re" scaleFactor="0.25" weight="10.0"/>
|
|
140
|
+
<operator spec="SmartScaleOperator" parameter="@samplingProportion" weight="3.0"/>
|
|
141
|
+
<plate var="n" range="$(layersRange)">
|
|
142
|
+
<operator spec="BactrianRandomWalkOperator" parameter="@migrationRateW$(n)" weight="5.0"/>
|
|
143
|
+
</plate>
|
|
144
|
+
<operator spec="BactrianScaleOperator" parameter="@gammaShape" weight="1.0"/>
|
|
145
|
+
<operator spec="BactrianScaleOperator" parameter="@kappa" weight="1.0"/>
|
|
146
|
+
|
|
147
|
+
<logger spec="Logger" fileName="MCMC.log" logEvery="1000" model="@posterior" sanitiseHeaders="true" sort="smart">
|
|
148
|
+
<log idref="posterior"/>
|
|
149
|
+
<log idref="likelihood"/>
|
|
150
|
+
<log idref="prior"/>
|
|
151
|
+
<log idref="BDMMPrime"/>
|
|
152
|
+
<log idref="gammaShape"/>
|
|
153
|
+
<log idref="kappa"/>
|
|
154
|
+
<log idref="processLength"/>
|
|
155
|
+
<log idref="ReSP"/>
|
|
156
|
+
<log idref="samplingProportionSP"/>
|
|
157
|
+
<log idref="migrationRateSP"/>
|
|
158
|
+
<log idref="migrationRate"/>
|
|
159
|
+
</logger>
|
|
160
|
+
<logger spec="Logger" fileName="typedTrees.trees" logEvery="100000" mode="tree">
|
|
161
|
+
<log idref="typeMappedTree"/>
|
|
162
|
+
</logger>
|
|
163
|
+
<logger spec="Logger" fileName="TypedNodeTrees.trees" logEvery="100000" mode="tree">
|
|
164
|
+
<log spec="TypedNodeTreeLogger" typedTree="@typeMappedTree"/>
|
|
165
|
+
</logger>
|
|
166
|
+
<logger spec="Logger" fileName="trajectories.csv" logEvery="100000">
|
|
167
|
+
<log spec="SampledTrajectory" bdmmDistrib="@BDMMPrime" startTypePriorProbs="@startTypePriorProbs" typeMappedTree="@typeMappedTree" useTauLeaping="true"/>
|
|
168
|
+
</logger>
|
|
169
|
+
</run>
|
|
170
|
+
</beast>
|