Skip to content

Commit 54a5ccb

Browse files
committed
Update requirements
1 parent 74d0f33 commit 54a5ccb

File tree

8 files changed

+25
-27
lines changed

8 files changed

+25
-27
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-python@v5.3.0
3131
with:
32-
python-version: "3.10"
32+
python-version: "3.12"
3333

3434
- uses: actions/cache@v4.2.0
3535
id: venv-cache

docs/effect-size.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The following effect size distributions are supported in tstrait, and please ref
144144

145145
Effect sizes can be simulated in tstrait by using {py:func}`tstrait.sim_trait`. In the example below,
146146
we will be simulating effect sizes of 5 causal sites from a simulated tree sequence data in
147-
[msprime](msprime:sec_intro).
147+
{ref}`msprime<msprime:sec_intro>`.
148148

149149
```{code-cell}
150150
@@ -203,8 +203,7 @@ The below code is used to extract information of site with ID 0 from `ts` tree s
203203
# Extract information of site with ID 0
204204
ts.site(0)
205205
```
206-
207-
The details of sites in tree sequences can be found [here](tskit:sec_site_table_definition).
206+
The details of sites in tree sequences can be found {ref}`here<tskit:sec_site_table_definition>`.
208207

209208

210209
(trait_frequency_dependence)=

docs/environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ We will be showing an example of environmental noise simulating by using a simul
6767
sequence data with 10,000 individuals. The narrow-sense heritability is set to be 0.3.
6868

6969
:::{seealso}
70-
- [msprime](msprime:sec_intro) for simulating whole genome in tree sequence data.
70+
- {ref}`msprime:sec_intro` for simulating whole genome in tree sequence data.
7171
- [](sim_trait_doc) for simulating trait dataframe in tstrait.
72-
- [](genetic_value_doc) for simulating the genetic value dataframe in tstrait.
72+
- {ref}`genetic_value_doc` for simulating the genetic value dataframe in tstrait.
7373
:::
7474

7575
```{code-cell}

docs/genetic.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ below.
5757
In this example, we will be showing how to compute genetic values by using the simulated trait dataframe
5858
in {py:func}`genetic_value`.
5959

60-
We will be simulating a sample tree sequence data with 5 individuals by using [msprime](msprime:sec_intro),
60+
We will be simulating a sample tree sequence data with 5 individuals by using {ref}`msprime<msprime:sec_intro>`,
6161
and we will simulate a trait dataframe with 3 causal sites. The dataframe output of {py:func}`sim_trait`
6262
can be automatically used as an input of {py:func}`genetic_value`, so there is no need to worry about input
6363
data requirements.
64+
data requirements.
6465

6566
:::{seealso}
66-
- [msprime](msprime:sec_intro) for simulating whole genome in tree sequence data.
67-
- [](sim_trait_doc) for simulating trait dataframe in tstrait.
67+
- {ref}`msprime<msprime:sec_intro>` for simulating whole genome in tree sequence data.
68+
- {ref}`sim_trait_doc` for simulating trait dataframe in tstrait.
6869
:::
6970

7071
```{code-cell}

docs/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Quantitative trait simulation in tstrait is transparent, and users can control e
2222
it is possible for the users to simulate their own environmental noise on top of simulated genetic values,
2323
or even use their own defined effect sizes and causal sites. The tree sequence data structure is widely used in
2424
various population genetic simulation packages, including [SLiM](https://messerlab.org/slim/),
25-
[msprime](msprime:sec_intro), and [stdpopsim](stdpopsim:sec_introduction); it is therefore easy for
25+
{ref}`msprime<msprime:sec_intro>`, and {ref}`stdpopsim<stdpopsim:sec_introduction>`; it is therefore easy for
2626
users of these packages to add quantitative traits to their results using tstrait.
2727

2828
## Tree Sequence resources
@@ -31,9 +31,9 @@ To learn more about tree sequences:
3131

3232
- The [tskit website](https://tskit.dev/) provides [learning materials](https://tskit.dev/learn/) explaining
3333
what tree sequences are, and includes tutorials, publications and videos.
34-
- The [PySLiM manual](pyslim:sec_introduction) explains how forward genetic simulation can be create
34+
- The {ref}`PySLiM manual<pyslim:sec_introduction>` explains how forward genetic simulation can be create
3535
tree sequences.
36-
- The [msprime manual](msprime:sec_intro) details an efficient backward-time genetic simulator that outputs
36+
- The {ref}`msprime manual<msprime:sec_intro>` details an efficient backward-time genetic simulator that outputs
3737
tree sequences.
38-
- The [tskit tutorials](tskit-tutorials:sec_intro) explain how to analyze succinct tree sequences
38+
- The {ref}`tskit tutorials<tskit-tutorials:sec_intro>` explain how to analyze succinct tree sequences
3939
by using [tskit](https://tskit.dev/).

docs/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This page provides a quick overview of tstrait. We will be using {func}`sim_phen
2222
demonstrate how quantitative traits can be simulated in tstrait.
2323

2424
To work with the examples, you will need to install
25-
[msprime](msprime:sec_intro) and {mod}`matplotlib <matplotlib>` in
25+
{ref}`msprime<msprime:sec_intro>` and {ref}`matplotlib <matplotlib>` in
2626
addition to tstrait.
2727

2828
**Learning Objectives**
@@ -71,7 +71,7 @@ ts = msprime.sim_mutations(ts, rate=1e-8, random_seed=101)
7171
ts.num_individuals
7272
```
7373

74-
Here, we have simulated a sample tree sequence with 10,000 individuals in [msprime](msprime:sec_intro).
74+
Here, we have simulated a sample tree sequence with 10,000 individuals in {ref}`msprime<msprime:sec_intro>`.
7575
We will be using it in {func}`sim_phenotype` to simulate quantitative traits.
7676

7777
```{code-cell}

requirements/CI-complete/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ msprime
22
numba
33
numpy
44
pandas
5-
pytest==6.2.5
6-
pytest-cov==3.0.0
5+
pytest==8.3.5
6+
pytest-cov==6.0.0
77
tskit>=0.5.5
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
jupyter-book==0.15.1
2-
matplotlib==3.7.2
3-
msprime==1.2.0
4-
numba==0.57.1
5-
numpy==1.21.6 # for numba
6-
numpydoc==1.5.0
7-
pandas==2.0.3
8-
sphinx==5.0.2
9-
sphinx-issues==3.0.1
10-
tskit==0.5.5
1+
jupyter-book==1.0.4.post1
2+
matplotlib==3.10.1
3+
msprime==1.3.3
4+
numba==0.61.0
5+
numpydoc==1.8.0
6+
pandas==2.2.3
7+
sphinx-issues==5.0.0
8+
tskit==0.6.0

0 commit comments

Comments
 (0)