bella-companion 0.0.24__tar.gz → 0.0.26__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.
Files changed (109) hide show
  1. {bella_companion-0.0.24 → bella_companion-0.0.26}/PKG-INFO +1 -1
  2. bella_companion-0.0.26/bella_companion/eucovid/beast_configs/GLM.xml +450 -0
  3. bella_companion-0.0.26/bella_companion/eucovid/beast_configs/Nonparametric.xml +399 -0
  4. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/run_beast.py +17 -15
  5. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/run_beast.py +1 -1
  6. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/utils/slurm.py +6 -1
  7. {bella_companion-0.0.24 → bella_companion-0.0.26}/pyproject.toml +1 -1
  8. bella_companion-0.0.24/bella_companion/eucovid/beast_configs/GLM.xml +0 -201
  9. bella_companion-0.0.24/bella_companion/eucovid/beast_configs/Nonparametric.xml +0 -214
  10. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/__init__.py +0 -0
  11. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/cli.py +0 -0
  12. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/__init__.py +0 -0
  13. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/beast_configs/MLP.xml +0 -0
  14. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/case_data.tsv +0 -0
  15. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/change_dates.tsv +0 -0
  16. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/msa.fasta +0 -0
  17. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/osi.tsv +0 -0
  18. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/closedborders_7e_nt.tsv +0 -0
  19. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/dist_7e_ls.tsv +0 -0
  20. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/flight_7e_ls.tsv +0 -0
  21. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/flight_pop_x_7e_ls.tsv +0 -0
  22. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/osi_x_7e_ls.tsv +0 -0
  23. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/osi_y_7e_ls.tsv +0 -0
  24. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/pop_x_7e_ls.tsv +0 -0
  25. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/pop_y_7e_ls.tsv +0 -0
  26. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/all/sharedborders_7e_nt.tsv +0 -0
  27. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/changetimes_all_7e.tsv +0 -0
  28. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/changetimes_flights_4e.tsv +0 -0
  29. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/eucovid/data/predictors/flight_pop_x_4e_ls.tsv +0 -0
  30. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/__init__.py +0 -0
  31. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/beast_config.xml +0 -0
  32. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/data/change_times.csv +0 -0
  33. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/data/traits.csv +0 -0
  34. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/data/trees.nwk +0 -0
  35. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/results.py +0 -0
  36. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/platyrrhine/summarize_logs.py +0 -0
  37. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__init__.py +0 -0
  38. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/__init__.cpython-310.pyc +0 -0
  39. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/__init__.cpython-311.pyc +0 -0
  40. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/features.cpython-310.pyc +0 -0
  41. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/features.cpython-311.pyc +0 -0
  42. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/generate_data.cpython-310.pyc +0 -0
  43. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/generate_data.cpython-311.pyc +0 -0
  44. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/run_beast.cpython-311.pyc +0 -0
  45. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/__pycache__/summarize_logs.cpython-311.pyc +0 -0
  46. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-multitype/GLM.xml +0 -0
  47. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-multitype/MLP.xml +0 -0
  48. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-multitype/Nonparametric.xml +0 -0
  49. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-skyline/GLM.xml +0 -0
  50. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-skyline/MLP.xml +0 -0
  51. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/epi-skyline/Nonparametric.xml +0 -0
  52. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-2traits/GLM.xml +0 -0
  53. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-2traits/MLP.xml +0 -0
  54. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-2traits/Nonparametric.xml +0 -0
  55. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-no-traits/GLM.xml +0 -0
  56. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-no-traits/MLP.xml +0 -0
  57. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/beast_configs/fbd-no-traits/Nonparametric.xml +0 -0
  58. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/features.py +0 -0
  59. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__init__.py +0 -0
  60. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/__init__.cpython-311.pyc +0 -0
  61. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/epi_explainations.cpython-311.pyc +0 -0
  62. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/epi_predictions.cpython-311.pyc +0 -0
  63. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/epi_simulations.cpython-311.pyc +0 -0
  64. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/fbd_explainations.cpython-311.pyc +0 -0
  65. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/fbd_predictions.cpython-311.pyc +0 -0
  66. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/fbd_simulations.cpython-311.pyc +0 -0
  67. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/figure1.cpython-311.pyc +0 -0
  68. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/plot.cpython-311.pyc +0 -0
  69. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/scenarios.cpython-311.pyc +0 -0
  70. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/__pycache__/utils.cpython-311.pyc +0 -0
  71. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/epi_multitype_results.py +0 -0
  72. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/epi_skyline_results.py +0 -0
  73. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/explain/__init__.py +0 -0
  74. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/explain/pdp.py +0 -0
  75. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/explain/shap.py +0 -0
  76. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/fbd_2traits_results.py +0 -0
  77. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/fbd_no_traits_results.py +0 -0
  78. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/scenarios.py +0 -0
  79. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/figures/utils.py +0 -0
  80. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/generate_data.py +0 -0
  81. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/generate_figures.py +0 -0
  82. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/metrics.py +0 -0
  83. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/run_beast.py +0 -0
  84. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__init__.py +0 -0
  85. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/__init__.cpython-310.pyc +0 -0
  86. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/__init__.cpython-311.pyc +0 -0
  87. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/common.cpython-310.pyc +0 -0
  88. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/common.cpython-311.pyc +0 -0
  89. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/epi_multitype.cpython-310.pyc +0 -0
  90. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/epi_multitype.cpython-311.pyc +0 -0
  91. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/epi_skyline.cpython-310.pyc +0 -0
  92. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/epi_skyline.cpython-311.pyc +0 -0
  93. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/fbd_2traits.cpython-310.pyc +0 -0
  94. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/fbd_2traits.cpython-311.pyc +0 -0
  95. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/fbd_no_traits.cpython-310.pyc +0 -0
  96. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/fbd_no_traits.cpython-311.pyc +0 -0
  97. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/scenario.cpython-310.pyc +0 -0
  98. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/scenario.cpython-311.pyc +0 -0
  99. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/__pycache__/utils.cpython-311.pyc +0 -0
  100. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/common.py +0 -0
  101. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/epi_multitype.py +0 -0
  102. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/epi_skyline.py +0 -0
  103. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/fbd_2traits.py +0 -0
  104. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/fbd_no_traits.py +0 -0
  105. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/scenarios/scenario.py +0 -0
  106. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/simulations/summarize_logs.py +0 -0
  107. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/utils/__init__.py +0 -0
  108. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/utils/beast.py +0 -0
  109. {bella_companion-0.0.24 → bella_companion-0.0.26}/bella_companion/utils/explain.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bella-companion
3
- Version: 0.0.24
3
+ Version: 0.0.26
4
4
  Summary:
5
5
  Author: gabriele-marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -0,0 +1,450 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <beast namespace="beast.base.inference
3
+ :beast.base.inference.parameter
4
+ :beast.base.evolution.branchratemodel
5
+ :beast.base.evolution.substitutionmodel
6
+ :beast.base.evolution.sitemodel
7
+ :beast.base.evolution.tree.coalescent
8
+ :beast.base.evolution.tree
9
+ :beast.base.evolution.likelihood
10
+ :beast.base.evolution.alignment
11
+ :beast.base.evolution.operator
12
+ :beast.base.evolution.operator.kernel
13
+ :beast.base.inference.operator.kernel
14
+ :beast.base.inference.operator
15
+ :beast.base.math.distributions
16
+ :beast.base.evolution
17
+ :bdmmprime.util.operators
18
+ :bdmmprime.util.priors
19
+ :bdmmprime.distribution
20
+ :bdmmprime.parameterization
21
+ :bdmmprime.mapping
22
+ :bdmmprime.util
23
+ :bdmmprime.trajectories
24
+ :feast
25
+ :feast.parameter
26
+ :feast.fileio
27
+ :feast.function
28
+ :feast.expressions
29
+ :glmprior.util"
30
+ required="BEAST.base v2.7.7:BDMM-Prime v2.2.2" version="2.7">
31
+
32
+
33
+ <!-- Map elements -->
34
+ <map name="Uniform" >beast.base.inference.distribution.Uniform</map>
35
+ <map name="Exponential" >beast.base.inference.distribution.Exponential</map>
36
+ <map name="LogNormal" >beast.base.inference.distribution.LogNormalDistributionModel</map>
37
+ <map name="Normal" >beast.base.inference.distribution.Normal</map>
38
+ <map name="Poisson" >beast.base.inference.distribution.Poisson</map>
39
+ <map name="prior" >beast.base.inference.distribution.Prior</map>
40
+
41
+ <!-- Adapted from https://github.com/SarahNadeau/cov-europe-bdmm/blob/master/analyses/with_hubei_migration_decrease/with_hubei_migration_decrease_scrubbed.xml -->
42
+ <!-- Sequence data loaded from GISAID with the gisaid EPI ISLs -->
43
+
44
+ <!-- Alignment -->
45
+ <alignment id="alignment" spec= "AlignmentFromFasta"
46
+ fileName = "$(aligned_fasta)"/>
47
+
48
+ <typeSet id="typeSetBDMMPrime" spec="TypeSet">
49
+ <typeTraitSet id="typeTraitSet" spec="TraitSetFromTaxonSet"
50
+ traitname="type"
51
+ delimiter="|"
52
+ takeGroup="1">
53
+ <taxa spec="TaxonSet" alignment="@alignment"/>
54
+ </typeTraitSet>
55
+ </typeSet>
56
+
57
+ <trait id="dateTrait" spec="TraitSetFromTaxonSet"
58
+ traitname="date"
59
+ dateFormat="yyyy-M-dd"
60
+ delimiter= "|"
61
+ everythingAfterLast="true">
62
+ <taxa spec="TaxonSet" alignment="@alignment"/>
63
+ </trait>
64
+
65
+ <!-- BDMMPrime Population Model -->
66
+
67
+ <processLength id="originBDMMPrime" spec="RealParameter">10.0</processLength>
68
+
69
+ <Re id="ReSV" spec="SkylineVectorParameter"
70
+ timesAreAges="true" processLength="@originBDMMPrime" typeSet="@typeSetBDMMPrime">
71
+ <skylineValues id="ReValues" spec="RealParameter">1.0 1.1 1.2 1.3 1.4 1.01 1.1 1.2 1.3 1.4</skylineValues>
72
+ <changeTimes id="ReRateChangeTimes" spec="RealParameter">0.123</changeTimes>
73
+ </Re>
74
+
75
+ <samplingProportion id="samplingProportionSV" spec="SkylineVectorParameter"
76
+ timesAreAges="true" processLength="@originBDMMPrime" typeSet="@typeSetBDMMPrime">
77
+ <skylineValues id="samplingProportionValues" spec="RealParameter" dimension="15" lower="0.0" upper="1.0">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</skylineValues>
78
+
79
+
80
+ <changeTimes id="samplingProportionChangeTimes" spec="RealParameter">0.123 0.205</changeTimes>
81
+ </samplingProportion>
82
+
83
+
84
+ <becomeUninfectiousRate id="becomeUninfectiousRateSV" spec="SkylineVectorParameter"
85
+ typeSet="@typeSetBDMMPrime">
86
+ <skylineValues id="becomeUninfectiousValues" spec="RealParameter">36.5</skylineValues>
87
+ </becomeUninfectiousRate>
88
+
89
+
90
+ <migrationRate id="migrationRateSM" spec="SkylineMatrixParameter"
91
+ timesAreAges="true" processLength="@originBDMMPrime" typeSet="@typeSetBDMMPrime">
92
+
93
+ <skylineValues id="migrationRateValues" spec="glmprior.util.GLMLogLinear" transform="false">
94
+ <plate var="predictor" range="$(GLMpredictor_files)">
95
+ <predictor spec="RealParameterFromXSV" id="$(predictor)" fileName="$(predictor)"/>
96
+ </plate>
97
+
98
+ <parameter id="coefficientsGLM" spec="RealParameter" name="coefficients" value="0.1"/>
99
+ <parameter id="scaleFactorGLM" spec="RealParameter" name="scaleFactor" value="1"/>
100
+ <parameter id="indicatorGLM" spec="BooleanParameter" name="indicators" value="1"/>
101
+ <!-- <parameter id="errorTermGLM" spec="RealParameter" name="error" value="0.01" dimension="30"/> -->
102
+
103
+ </skylineValues>
104
+
105
+ <changeTimes id="migrationRateChangeTimes" spec="RealParameterFromXSV"
106
+ fileName="$(GLMpredictor_changetimes)"/>
107
+ </migrationRate>
108
+
109
+
110
+
111
+ <removalProb id="removalProbSV" spec="SkylineVectorParameter" skylineValues="1.0"
112
+ processLength="@originBDMMPrime" typeSet="@typeSetBDMMPrime"/>
113
+
114
+ <startTypePriorProbs id="typeFrequencies" spec="RealParameter"
115
+ estimate="false" lower="0.0" upper="1.0">1.0 0.0 0.0 0.0 0.0</startTypePriorProbs>
116
+
117
+
118
+ <!-- Site Model -->
119
+ <siteModel id="siteModel" spec="SiteModel" gammaCategoryCount="4">
120
+ <parameter id="gammaShape" name="shape" value="1.0"/>
121
+ <parameter name="mutationRate" estimate="false" value="1.0"/>
122
+ <parameter name="proportionInvariant" estimate="false" value="0.0"/>
123
+
124
+ <substModel spec="HKY">
125
+ <kappa id="kappa" spec="RealParameter" value="2.0"/>
126
+ <frequencies id="empiricalFreqs" spec="Frequencies" data="@alignment"/>
127
+ </substModel>
128
+ </siteModel>
129
+
130
+
131
+ <!-- Branch rate Model -->
132
+ <branchRateModel id="branchRateModel" spec="StrictClockModel">
133
+ <parameter id="clockRate" name="clock.rate" estimate="false">8.0E-4</parameter>
134
+ </branchRateModel>
135
+
136
+
137
+ <!-- Population Model for Tree initialiser -->
138
+ <popFunc id="popFunc" spec="ConstantPopulation">
139
+ <popSize spec="RealParameter" value="0.1"/>
140
+ </popFunc>
141
+
142
+
143
+ <!-- MCMC -->
144
+ <run id="mcmc" spec="MCMC" chainLength="10000000" numInitializationAttempts="100">
145
+
146
+ <!-- State -->
147
+ <state id="state" spec="State">
148
+
149
+ <stateNode id="treeBDMMPrime" spec="RandomTree"
150
+ taxa="@alignment"
151
+ populationModel="@popFunc"
152
+ trait="@dateTrait">
153
+ </stateNode>
154
+
155
+ <stateNode idref="originBDMMPrime"/>
156
+ <stateNode idref="ReValues"/>
157
+ <stateNode idref="samplingProportionValues"/>
158
+ <stateNode idref="coefficientsGLM"/>
159
+ <stateNode idref="scaleFactorGLM"/>
160
+ <stateNode idref="indicatorGLM"/>
161
+
162
+ <stateNode idref="kappa"/>
163
+ <stateNode idref="gammaShape"/>
164
+
165
+ </state>
166
+
167
+
168
+ <!-- Posterior Distribution -->
169
+ <distribution id="posterior" spec="CompoundDistribution">
170
+
171
+ <!-- Tree Likelihood -->
172
+ <distribution id="likelihood" spec="CompoundDistribution" useThreads="true">
173
+
174
+ <distribution id="treeLikelihood" spec="ThreadedTreeLikelihood"
175
+ data="@alignment"
176
+ tree="@treeBDMMPrime"
177
+ siteModel="@siteModel"
178
+ branchRateModel="@branchRateModel"/>
179
+
180
+ </distribution>
181
+
182
+ <!-- Prior distribution -->
183
+ <distribution id="prior" spec="CompoundDistribution">
184
+
185
+ <!-- BDMM-Prime tree prior distribution -->
186
+ <distribution id="BDMMPrime" spec="BirthDeathMigrationDistribution"
187
+ tree="@treeBDMMPrime"
188
+ conditionOnSurvival="true"
189
+ finalSampleOffset="0.0"
190
+ typeTraitSet="@typeTraitSet"
191
+ startTypePriorProbs="@typeFrequencies">
192
+
193
+ <!-- Parameterization BDMM-Prime -->
194
+ <parameterization id="EpiBDMMPrimeParameterization" spec="EpiParameterization"
195
+ processLength="@originBDMMPrime"
196
+ Re="@ReSV"
197
+ samplingProportion="@samplingProportionSV"
198
+ becomeUninfectiousRate="@becomeUninfectiousRateSV"
199
+ migrationRate="@migrationRateSM"
200
+ removalProb="@removalProbSV"
201
+ typeSet="@typeSetBDMMPrime"/>
202
+
203
+ </distribution>
204
+
205
+
206
+ <!-- Priors on parameters -->
207
+ <!-- BDMMPrime parameters priors -->
208
+
209
+ <prior id="originBDMMPrimePrior" name="distribution" x="@originBDMMPrime">
210
+ <LogNormal name="distr" M="-1.0" S="0.2"/>
211
+ </prior>
212
+
213
+ <!-- Reproductive number Prior -->
214
+ <distribution id="RePrior" spec="SmartZeroExcludingPrior" x="@ReValues">
215
+ <LogNormal name="distr" M="0.8" S="0.5"/>
216
+ </distribution>
217
+
218
+ <!-- Prior for sampling proportion for China -->
219
+ <distribution id="spChinaE2Prior" spec="SmartZeroExcludingPrior" x="@samplingProportionValues"
220
+ classesToExclude="1.2E-5 1.3E-5 1.4E-5 1.5E-5">
221
+ <Uniform name="distr" lower="0" upper="0.15"/>
222
+ </distribution>
223
+ <!-- Prior for sampling proportion for France -->
224
+ <distribution id="spFranceE1Prior" spec="SmartZeroExcludingPrior" x="@samplingProportionValues"
225
+ classesToExclude="1.1E-5 1.3E-5 1.4E-5 1.5E-5">
226
+ <Uniform name="distr" lower="0" upper="0.093"/>
227
+ </distribution>
228
+ <!-- Prior for sampling proportion for Germany Epoch -->
229
+ <distribution id="spGermanyE1Prior" spec="SmartZeroExcludingPrior" x="@samplingProportionValues"
230
+ classesToExclude="1.1E-5 1.2E-5 1.4E-5 1.5E-5">
231
+ <Uniform name="distr" lower="0" upper="0.10"/>
232
+ </distribution>
233
+ <!-- Prior for sampling proportion for Italy -->
234
+ <distribution id="spItalyE1Prior" spec="SmartZeroExcludingPrior" x="@samplingProportionValues"
235
+ classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.5E-5">
236
+ <Uniform name="distr" lower="0" upper="0.005"/>
237
+ </distribution>
238
+ <!-- Prior for sampling proportion for OtherEuropean -->
239
+ <distribution id="spOEE1Prior" spec="SmartZeroExcludingPrior" x="@samplingProportionValues"
240
+ classesToExclude="1.1E-5 1.2E-5 1.3E-5 1.4E-5">
241
+ <Uniform name="distr" lower="0" upper="0.057"/>
242
+ </distribution>
243
+
244
+
245
+ <!-- Migration rate GLM Prior -->
246
+ <!-- <prior id="migRatePrior" name="distribution" x="@migrationRateValues">
247
+ <Uniform id="Uniform.migRate" name="distr" lower="0.0" upper="50.0"/>
248
+ </prior> -->
249
+
250
+ <!-- <prior id="migRatePrior" name="distribution" x="@migrationRateValues">
251
+ <LogNormal name="distr" M="0" S="1.5"/>
252
+ </prior> -->
253
+
254
+ <prior id="coefficientsPrior" name="distribution" x="@coefficientsGLM">
255
+ <Normal name="distr">
256
+ <parameter spec="RealParameter" estimate="false" name="mean">0.0</parameter>
257
+ <parameter spec="RealParameter" estimate="false" name="sigma">1.0</parameter>
258
+ </Normal>
259
+ </prior>
260
+
261
+ <prior id="scaleFactorPrior" name="distribution" x="@scaleFactorGLM">
262
+ <LogNormal name="distr">
263
+ <parameter spec="RealParameter" estimate="false" name="M">0.0</parameter>
264
+ <parameter spec="RealParameter" estimate="false" name="S">0.8</parameter>
265
+ </LogNormal>
266
+ </prior>
267
+
268
+ <!-- <prior id="nonZeroIndicatorGLMPrior" name="distribution">
269
+ <x id="indicatorSumGLM" spec="Sum" arg="@indicatorGLM"/>
270
+ <Poisson name="distr" lambda='0.693'/>
271
+ </prior> -->
272
+
273
+ <!-- Substitution model parameter priors -->
274
+ <prior id="GammaShapePrior" name="distribution" x="@gammaShape">
275
+ <Exponential name="distr">
276
+ <parameter spec="RealParameter" estimate="false" name="mean">0.5</parameter>
277
+ </Exponential>
278
+ </prior>
279
+
280
+ <prior id="KappaPrior" name="distribution" x="@kappa">
281
+ <LogNormal name="distr">
282
+ <parameter spec="RealParameter" estimate="false" name="M">1.0</parameter>
283
+ <parameter spec="RealParameter" estimate="false" name="S">1.25</parameter>
284
+ </LogNormal>
285
+ </prior>
286
+
287
+ </distribution>
288
+ </distribution>
289
+
290
+
291
+ <!-- Operators -->
292
+ <!-- Tree operators -->
293
+ <operator id="BDMMPrimeTreeRootScaler" spec="BactrianScaleOperator" tree="@treeBDMMPrime"
294
+ rootOnly="true" scaleFactor="0.25" weight="5.0"/>
295
+
296
+ <operator id="BDMMPrimeUniformOperator" spec="BactrianNodeOperator" tree="@treeBDMMPrime"
297
+ weight="30.0"/>
298
+
299
+ <operator id="BDMMPrimeSubtreeSlideScaler" spec="BactrianSubtreeSlide" tree="@treeBDMMPrime"
300
+ weight="15.0"/>
301
+
302
+ <operator id="BDMMPrimeNarrow" spec="Exchange" tree="@treeBDMMPrime"
303
+ weight="15.0"/>
304
+
305
+ <operator id="BDMMPrimeWide" spec="Exchange" tree="@treeBDMMPrime"
306
+ isNarrow="false" weight="3.0"/>
307
+
308
+ <operator id="BDMMPrimeWilsonBalding" spec="WilsonBalding" tree="@treeBDMMPrime"
309
+ weight="3.0"/>
310
+
311
+ <operator id="BDMMPrimeBICEPSEpochTop" spec="EpochFlexOperator" tree="@treeBDMMPrime"
312
+ scaleFactor="0.1" weight="2.0"/>
313
+
314
+ <operator id="BDMMPrimeBICEPSEpochAll" spec="EpochFlexOperator" tree="@treeBDMMPrime"
315
+ fromOldestTipOnly="false" scaleFactor="0.1" weight="2.0"/>
316
+
317
+ <operator id="BDMMPrimeBICEPSTreeFlex" spec="TreeStretchOperator" tree="@treeBDMMPrime"
318
+ scaleFactor="0.01" weight="2.0"/>
319
+
320
+
321
+ <!-- Population model operators -->
322
+
323
+ <operator id="originBDMMPrimeScaler" spec="BactrianScaleOperator" parameter="@originBDMMPrime"
324
+ scaleFactor="0.25" weight="3.0" />
325
+
326
+ <operator id="ReScaler" spec="SmartScaleOperator" parameter="@ReValues" scaleFactor="0.25"
327
+ weight="10.0" />
328
+ <!-- <operator id="ReScalerAll" spec="BactrianScaleOperator" parameter="@ReValues" scaleFactor="0.25"
329
+ weight="3.0" scaleAll="true" /> -->
330
+
331
+ <operator id="samplingProportionScaler" spec="SmartScaleOperator" parameter="@samplingProportionValues"
332
+ weight="3.0" />
333
+
334
+ <!-- <operator id="scaleFactorGLMScaler" spec="BactrianScaleOperator" parameter="@scaleFactorGLM" scaleFactor="0.25" weight="3.0" /> -->
335
+
336
+ <operator id="coefficientsGLMScaler" spec="BactrianRandomWalkOperator" parameter="@coefficientsGLM"
337
+ weight="5.0" scaleFactor="0.1"/>
338
+
339
+ <operator id="AVNMOperator" spec="beast.base.evolution.operator.kernel.AdaptableVarianceMultivariateNormalOperator" weight="5.0"
340
+ coefficient="1.0"
341
+ scaleFactor="0.5"
342
+ beta="0.05"
343
+ initial="800"
344
+ burnin="400"
345
+ every="1">
346
+ <transformations spec="beast.base.inference.operator.kernel.Transform$NoTransform">
347
+ <f idref="coefficientsGLM"/>
348
+ </transformations>
349
+ </operator>
350
+
351
+ <!-- <operator id="indicatorParamGLMFlip" spec="BitFlipOperator" parameter="@indicatorGLM"
352
+ weight="10.0" uniform="false" />
353
+
354
+ <operator id="indicatorSwap" spec="glmprior.operator.ExtendedSwapOperator" boolparameter="@indicatorGLM" weight="5.0" />
355
+
356
+ <operator id="indicatorParamGLMPick" spec="glmprior.operator.PickIndicatorOperator"
357
+ parameter="@indicatorGLM" weight="3.0" />
358
+
359
+ <operator id="BSSVSGLMoperator" spec="glmprior.operator.BitFlipBSSVSOperator" indicator="@indicatorGLM" mu="@scaleFactorGLM" weight="10"/>
360
+
361
+ <operator id="multiSwapOperator" spec="glmprior.operator.MultiSwapOperator" boolparameter="@indicatorGLM" parameter="@coefficientsGLM" weight="10.0" />
362
+
363
+ <operator id="JointSwapGLM1" spec="JointOperator" weight="3.0">
364
+ <operator idref="indicatorSwap"/>
365
+ <operator idref="AVNMOperator"/>
366
+ </operator>
367
+
368
+ <operator id="JointSwapGLM2" spec="JointOperator" weight="3.0">
369
+ <operator idref="coefficientsGLMScaler"/>
370
+ <operator idref="scaleFactorGLMScaler"/>
371
+ </operator>
372
+ -->
373
+ <!-- <operator id="errorTermGLMScaler" spec="BactrianScaleOperator" parameter="@errorTermGLM"
374
+ weight="5.0" upper="20.0"/> -->
375
+
376
+
377
+ <!-- Substitution model operators -->
378
+ <operator id="gammaShapeScaler" spec="BactrianScaleOperator" parameter="@gammaShape"
379
+ weight="1.0"/>
380
+
381
+ <operator id="KappaScaler" spec="BactrianScaleOperator" parameter="@kappa"
382
+ weight="1.0"/>
383
+
384
+
385
+ <!-- Loggers -->
386
+ <logger id="tracelog" spec="Logger" fileName="$(filebase).log" logEvery="1000" model="@posterior" sanitiseHeaders="true" sort="smart">
387
+ <log idref="posterior"/>
388
+ <log idref="likelihood"/>
389
+ <log idref="prior"/>
390
+ <log idref="treeLikelihood"/>
391
+ <log idref="gammaShape"/>
392
+ <log idref="kappa"/>
393
+ <log id="TreeHeight" spec="TreeStatLogger" tree="@treeBDMMPrime"/>
394
+ <log id="typedTreeStats" spec="TypedTreeStatsLogger" includeRootEdge="true"
395
+ typeLabel="type" typeSet="@typeSetBDMMPrime">
396
+ <typedTree id="typeMappedTree" spec="TypeMappedTree" bdmmDistrib="@BDMMPrime" startTypePriorProbs="@typeFrequencies" mapOnInit="false" remapOnLog="true" typeLabel="type" typeTraitSet="@typeTraitSet" untypedTree="@treeBDMMPrime"/>
397
+ </log>
398
+ <log idref="originBDMMPrime"/>
399
+ <log idref="ReSV"/>
400
+ <log idref="becomeUninfectiousRateSV"/>
401
+ <log idref="samplingProportionSV"/>
402
+ <log idref="migrationRateSM"/>
403
+ <log idref="coefficientsGLM"/>
404
+ <log idref="scaleFactorGLM"/>
405
+ <log idref="indicatorGLM"/>
406
+ <log id="coefbyindGLM" spec="ExpCalculator" value="coefficientsGLM*indicatorGLM" useCaching="false">
407
+ <arg idref="coefficientsGLM"/>
408
+ <arg idref="indicatorGLM"/>
409
+ </log>
410
+ <plate var="predictor" range="$(GLMpredictor_files)">
411
+ <log idref="$(predictor)"/>
412
+ </plate>
413
+ <!-- <log idref="errorTermGLM"/> -->
414
+ <log idref="removalProbSV"/>
415
+ <log idref="typeFrequencies"/>
416
+ </logger>
417
+
418
+ <logger id="screenlog" spec="Logger" logEvery="1000">
419
+ <log idref="posterior"/>
420
+ <log arg="@posterior" id="ESS_posterior" spec="util.ESS"/>
421
+ <log idref="likelihood"/>
422
+ <log arg="@likelihood" id="ESS_likelihood" spec="util.ESS"/>
423
+ <log idref="prior"/>
424
+ <log arg="@prior" id="ESS_prior" spec="util.ESS"/>
425
+ <log idref="BDMMPrime"/>
426
+ <log arg="@BDMMPrime" id="ESS_BDMMPrime" spec="util.ESS"/>
427
+ </logger>
428
+
429
+ <logger id="treelog" spec="Logger" fileName="$(filebase).trees" logEvery="1000" mode="tree">
430
+ <log id="TreeWithMetaDataLogger" spec="TreeWithMetaDataLogger" tree="@treeBDMMPrime"/>
431
+ </logger>
432
+
433
+ <logger id="typedTreeLogger" spec="OptionalLogger" enableLogger="true"
434
+ fileName="$(filebase).typed.trees" logEvery="10000" mode="tree">
435
+ <log idref="typeMappedTree"/>
436
+ </logger>
437
+ <logger id="nodeTypedTreeLogger.t:eubdmm_alignment" spec="OptionalLogger" enableLogger="true"
438
+ fileName="$(filebase).typed.node.trees" logEvery="10000" mode="tree">
439
+ <log id="nodeTypedTree" spec="TypedNodeTreeLogger" typedTree="@typeMappedTree"/>
440
+ </logger>
441
+ <logger id="trajLogger" spec="OptionalLogger" enableLogger="true" fileName="$(filebase).traj" logEvery="10000">
442
+ <log id="typedTraj" spec="SampledTrajectory" bdmmDistrib="@BDMMPrime"
443
+ startTypePriorProbs="@typeFrequencies" typeMappedTree="@typeMappedTree" useTauLeaping="true"/>
444
+ </logger>
445
+
446
+ <operatorschedule id="OperatorSchedule" spec="OperatorSchedule"/>
447
+
448
+ </run>
449
+
450
+ </beast>