tstrait is a Python package to simulate quantitative traits from a given tree sequence.

model = tstrait.trait_model(
  distribution="normal", mean=0, var=1
)
sim_result = tstrait.sim_phenotype(
    ts=ts, num_causal=100, model=model,
    h2=0.3, random_seed=1
)