-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ulysseherbach/update-docs
Update docs
- Loading branch information
Showing
12 changed files
with
136 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# FluffyClone | ||
|
||
[![GitHub Release](https://img.shields.io/github/v/release/ulysseherbach/fluffyclone?logo=github)](https://github.com/ulysseherbach/fluffyclone) | ||
[![GitHub Pages status](https://img.shields.io/github/actions/workflow/status/ulysseherbach/fluffyclone/github-pages.yml?label=docs)](https://ulysseherbach.github.io/fluffyclone/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Clonal trees | ||
|
||
:::{warning} | ||
This documentation is still a draft. | ||
::: | ||
|
||
## Define clonal trees | ||
|
||
```python | ||
from fluffyclone import ClonalTree | ||
``` | ||
|
||
### Parent sequence encoding | ||
|
||
```python | ||
# Option 1: pass the parent sequence directly | ||
tree = ClonalTree(0, 0, 0, 2, 5) | ||
|
||
# Option 2: define parent sequence first | ||
p = (0, 0, 0, 2, 5) | ||
tree = ClonalTree(p) | ||
|
||
# Option 3: add root explicitly (node 0 with no parent) | ||
p = (None, 0, 0, 0, 2, 5) | ||
tree = ClonalTree(p) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Distributions | ||
|
||
:::{warning} | ||
This documentation is still a draft. | ||
::: | ||
|
||
## Definition | ||
|
||
```python | ||
from fluffyclone import WeightedUniform, WeightedUniformGibbs | ||
|
||
# Number of clones | ||
n_clones = 5 | ||
|
||
# General form | ||
model1 = WeightedUniform(n_clones) | ||
|
||
# Gibbs form | ||
model2 = WeightedUniformGibbs(n_clones) | ||
|
||
# Using just-in-time-compilation | ||
model3 = WeightedUniform(n_clones, jit=True) | ||
model4 = WeightedUniformGibbs(n_clones, jit=True) | ||
``` | ||
|
||
## Usage | ||
|
||
```python | ||
# Sampling trees from the model | ||
tree = model1.sample() | ||
tree_list = model1.sample(size=10) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Models | ||
|
||
:::{warning} | ||
This documentation is still a draft. | ||
::: | ||
|
||
:::{toctree} | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
model1 | ||
model2 | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Model 1 | ||
|
||
:::{warning} | ||
This documentation is still a draft. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Model 2 | ||
|
||
:::{warning} | ||
This documentation is still a draft. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Quickstart | ||
|
||
## Define a clonal tree | ||
|
||
```python | ||
from fluffyclone import ClonalTree | ||
``` | ||
|
||
### Parent sequence encoding | ||
|
||
```python | ||
# Option 1: pass the parent sequence directly | ||
tree = ClonalTree(0, 0, 0, 2, 5) | ||
|
||
# Option 2: define parent sequence first | ||
p = (0, 0, 0, 2, 5) | ||
tree = ClonalTree(p) | ||
|
||
# Option 3: add root explicitly (node 0 with no parent) | ||
p = (None, 0, 0, 0, 2, 5) | ||
tree = ClonalTree(p) | ||
``` |
This file was deleted.
Oops, something went wrong.