Skip to content

Commit

Permalink
Merge pull request #81 from daikitag/doc-api
Browse files Browse the repository at this point in the history
DOC: Update API
  • Loading branch information
jeromekelleher authored Aug 25, 2023
2 parents e3d5d07 + c3e8377 commit 7b93e13
Showing 1 changed file with 83 additions and 20 deletions.
103 changes: 83 additions & 20 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,105 @@

This page provides a detailed explanation of all public tstrait objects and functions.

## Simulation functions
## Summary

### Simulation functions

```{eval-rst}
.. autosummary::
:toctree: _api
sim_phenotype
sim_trait
sim_genetic
sim_env
sim_phenotype
sim_trait
sim_genetic
sim_env
```

(effect_size_distribution)=

## Effect size distributions
### Effect size distributions

```{eval-rst}
.. autosummary::
:toctree: _api
trait_model
TraitModel
TraitModelNormal
TraitModelT
TraitModelFixed
TraitModelExponential
TraitModelGamma
TraitModelMultivariateNormal
trait_model
TraitModel
TraitModelNormal
TraitModelT
TraitModelFixed
TraitModelExponential
TraitModelGamma
TraitModelMultivariateNormal
```

## Result data classes
### Result data classes

```{eval-rst}
.. autosummary::
:toctree: _api
PhenotypeResult
GeneticResult
PhenotypeResult
GeneticResult
```

## Reference documentation

### Simulation functions

```{eval-rst}
.. autofunction:: tstrait.sim_phenotype
```

```{eval-rst}
.. autofunction:: tstrait.sim_trait
```

```{eval-rst}
.. autofunction:: tstrait.sim_genetic
```

```{eval-rst}
.. autofunction:: tstrait.sim_env
```

### Effect size distributions

```{eval-rst}
.. autofunction:: tstrait.trait_model
```

```{eval-rst}
.. autoclass:: tstrait.TraitModel
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelNormal
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelT
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelFixed
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelExponential
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelGamma
```

```{eval-rst}
.. autoclass:: tstrait.TraitModelMultivariateNormal
```

### Result data classes

```{eval-rst}
.. autoclass:: tstrait.PhenotypeResult
```

```{eval-rst}
.. autoclass:: tstrait.GeneticResult
```

0 comments on commit 7b93e13

Please sign in to comment.