Skip to content

Commit

Permalink
Atlanta latino (#239) (#241)
Browse files Browse the repository at this point in the history
* feat: create new setting for atlanta with latinos
* upgrade python version in github actions
  • Loading branch information
s-bessey authored May 30, 2024
1 parent 21e0681 commit 4817712
Show file tree
Hide file tree
Showing 10 changed files with 758 additions and 348 deletions.
729 changes: 382 additions & 347 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers = ["Operating System :: OS Independent"]
packages = [{ include = "titan" }]

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.8"
paraml= "^0.1"
networkx = "^2.4"
nanoid = "^2.0"
Expand Down
26 changes: 26 additions & 0 deletions titan/settings/atlanta-latino/assort_mix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
assort_mix:
assort_white:
attribute: race
agent_value: white
partner_values:
white: 0.722
__other__: 0.278
assort_black:
attribute: race
agent_value: black
partner_values:
black: 0.765
__other__: 0.235
assort_receptive:
attribute: sex_role
agent_value: receptive
partner_values:
receptive: 0.00
__other__: 1.00
assort_insertive:
attribute: sex_role
agent_value: insertive
partner_values:
insertive: 0.0
__other__: 1.00

8 changes: 8 additions & 0 deletions titan/settings/atlanta-latino/calibration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
calibration:
sex:
act: 1.0
partner: 1.0
test_frequency: 1.00
haart:
coverage: 0.50
acquisition: 0.50
146 changes: 146 additions & 0 deletions titan/settings/atlanta-latino/demographics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
demographics:
black:
ppl: 0.38235
hiv:
transmission: 3.75
sex_type:
MSM:
ppl: 1.0
sex_role:
init:
versatile: 0.437
insertive: 0.242
receptive: 0.321
safe_sex:
Sex:
prob: 0.688
prep:
discontinue: 0.0
adherence: 0.568
cap: 0.0
init: 0.0
drug_type:
None:
ppl: 1.0
num_partners:
Sex:
dist_type: poisson
vars:
1:
value: 7.0
value_type: float
hiv:
init: 0.434
dx:
init: 0.655
prob: 0.0256
aids:
init: 0.232
exit:
death:
base: 8.6
hiv: 17.2
aids: 34.4
haart:
init: 0.625
cap: 0.35
adherence:
init: 0.885
prob: 0.885
discontinue: 0.10
latino:
ppl: 0.14388
hiv:
transmission: 3.75
sex_type:
MSM:
ppl: 1.0
sex_role:
init:
versatile: 0.437
insertive: 0.242
receptive: 0.321
safe_sex:
Sex:
prob: 0.811
prep:
discontinue: 0.048
adherence: 0.568
cap: 0.01210742
init: 0.01210742
drug_type:
None:
ppl: 1.0
num_partners:
Sex:
dist_type: poisson
vars:
1:
value: 2.8
value_type: float
hiv:
init: 0.175
dx:
init: 0.818
prob: 0.0256
aids:
init: 0.167
exit:
death:
base: 8.6
hiv: 17.2
aids: 34.4
haart:
init: 0.585
cap: 0.65
adherence:
init: 0.851
prob: 0.851
discontinue: 0.062
white:
ppl: 0.47377
sex_type:
MSM:
ppl: 1.0
sex_role:
init:
versatile: 0.544
insertive: 0.228
receptive: 0.228
safe_sex:
Sex:
prob: 0.528
prep:
adherence: 0.911
cap: 0.02833104
discontinue: 0.0
init: 0.02833104
drug_type:
None:
ppl: 1.0
hiv:
init: 0.132
dx:
init: 0.818
prob: 0.0256
aids:
init: 0.07
exit:
death:
base: 8.6
hiv: 17.2
aids: 34.4
haart:
init: 0.585
cap: 0.20
adherence:
init: 0.817
prob: 0.817
discontinue: 0.07
num_partners:
Sex:
dist_type: poisson
vars:
1:
value: 7.0
value_type: float
53 changes: 53 additions & 0 deletions titan/settings/atlanta-latino/model.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
model:
seed:
ppl: 0
run: 0
num_pop: 26937
time:
num_steps: 70
steps_per_year: 12
burn_steps: 0
network:
type: scale_free

features:
incar: false
prep: true
high_risk: false
haart: true
exit_enter: true
static_network: false
agent_zero: false
assort_mix: true
vaccine: false
partner_tracing: false
timeline_scaling: true

prep:
target_model:
- Racial

hiv:
aids:
prob: 0.05

classes:
bond_types:
Sex:
acts_allowed:
- sex
sex_types:
MSM:
gender: M
cis_trans: cis
sleeps_with:
- MSM
drug_types:
- None
races:
white:
hispanic: false
black:
hispanic: false
latino:
hispanic: false
3 changes: 3 additions & 0 deletions titan/settings/atlanta-latino/outputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
outputs:
reports:
- basicReport
44 changes: 44 additions & 0 deletions titan/settings/atlanta-latino/partnership.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
partnership:
duration:
Sex:
white: &partnership_duration
type: bins
bins:
1:
prob: 0.456
min: 1
max: 3
2:
prob: 0.756
min: 3
max: 12
3:
prob: 1.0
min: 13
max: 24
black: *partnership_duration
sex:
frequency:
Sex:
bins:
1:
prob: 0.244
min: 1
max: 2
2:
prob: 0.737
min: 3
max: 4
3:
prob: 0.86
min: 5
max: 12
4:
prob: 1.0
min: 13
max: 20
acquisition:
MSM:
insertive: 0.0011
receptive: 0.0138
versatile: 0.00745
3 changes: 3 additions & 0 deletions titan/settings/atlanta-latino/prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
prep:
target_model:
- Racial
92 changes: 92 additions & 0 deletions titan/settings/atlanta-latino/timeline_scaling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
timeline_scaling:
timeline:
white_1:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 12
stop_time: 24
scalar: 2.397
white_2:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 24
stop_time: 36
scalar: 3.648
white_3:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 36
stop_time: 48
scalar: 4.912
white_4:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 48
stop_time: 60
scalar: 5.514
white_5:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 60
stop_time: 72
scalar: 5.802
white_6:
parameter: demographics|white|sex_type|MSM|prep|cap
start_time: 72
stop_time: 999
scalar: 5.939
black_1:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 12
stop_time: 24
scalar: 2.393
black_2:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 24
stop_time: 36
scalar: 3.562
black_3:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 36
stop_time: 48
scalar: 4.755
black_4:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 48
stop_time: 60
scalar: 5.291
black_5:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 60
stop_time: 72
scalar: 5.528
black_6:
parameter: demographics|black|sex_type|MSM|prep|cap
start_time: 72
stop_time: 999
scalar: 5.631
latino_1:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 12
stop_time: 24
scalar: 2.405
latino_2:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 24
stop_time: 36
scalar: 3.660
latino_3:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 36
stop_time: 48
scalar: 4.957
latino_4:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 48
stop_time: 60
scalar: 5.593
latino_5:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 60
stop_time: 72
scalar: 5.905
latino_6:
parameter: demographics|latino|sex_type|MSM|prep|cap
start_time: 72
stop_time: 999
scalar: 6.057

0 comments on commit 4817712

Please sign in to comment.