Skip to content

Commit

Permalink
v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fraterenz committed Jun 20, 2022
1 parent 91f3cb3 commit ee91a99
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ strategy implies that the tumour growth restart from the subsample.

### Fixed
- Tarballs with relative paths

## 0.3.0
- Merged `preprocess` into `ecdna` whihc has now three commands: `simulate`, `abc` and `preprocess`.

## 0.3.3
### Added
- When plotting abc results, the flag `--export` can save the runs that been filtered based on the thresholds (to for instance make the plots in Mathematica)

### Fixed
- Remove the `CONFIG` options from `preprocess` subcommand.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ codegen-units = 1

[workspace.metadata]
name = "ecdna"
version = "0.3.2"
version = "0.3.3"

21 changes: 5 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,14 @@ path to the ecdna binaries.
`./target/release/ecdna simulate --help`):
```shell
# simulate tumour growth
./target/release/ecdna simulate \
--cells 10000 --runs 10 --rho1 1 \
--dynamics nplus nminus \
--patient example
./target/release/ecdna simulate --cells 10000 --runs 10 --rho1 1 --dynamics nplus nminus --patient example
```

2. Optional step is to plot the dynamics
```shell
# activate your python env
source /path/to/my/env/bin/activate
python3 -m ecdna-plot.dynamics \
--nplus results/example/10000samples10000cells/nplus.tar.gz \
--nminus results/example/10000samples10000cells/nminus.tar.gz \
--save results/example/10000samples10000cells/
python3 -m ecdna-plot.dynamics --nplus results/example/10000samples10000cells/nplus.tar.gz --nminus results/example/10000samples10000cells/nminus.tar.gz --save results/example/10000samples10000cells
```

3. Prepare the data for the abc inference, add to the patient `example` one sample
Expand All @@ -112,8 +106,7 @@ python3 -m ecdna-plot.dynamics \
estimated population of 10000 tumour cells (see
`./target/release/preproces --help`):
```shell
./target/release/ecdna preprocess example sample1 10000 \
--distribution results/example/10000samples10000cells/0/ecdna/0.json
./target/release/ecdna preprocess example sample1 10000 --distribution results/example/10000samples10000cells/0/ecdna/0.json
```

4. Now perform the bayesian inference.
Expand All @@ -122,9 +115,7 @@ accurate results, but will also take more time.
Infer the proliferation advantage and the initial copy number using 1000 runs
for the patient `example` (see `./target/release/ecdna abc --help`):
```shell
./target/release/ecdna abc --runs 1000 --rho1-range 1 3 --rho2-range 1 \
--delta1-range 0 --delta2-range 0 --copies-range 1 20 \
--patient results/preprocessed/example.json
./target/release/ecdna abc --runs 1000 --rho1-range 1 3 --rho2-range 1 --delta1-range 0 --delta2-range 0 --copies-range 1 20 --patient results/preprocessed/example.json
```

5. Finally, plot the posterior distributions by keeping runs with distance metrics
Expand All @@ -133,9 +124,7 @@ smaller than 0.1 (see `ecdna-plot.abc --help`)
# activate your python env
source /path/to/my/env/bin/activate
# plot with thresholds 0.1 0.1 0.1 0.1
python3 -m ecdna-plot.abc --theta f1 copies \
--abc results/example/abc.tar.gz \
10 10 10 0.1
python3 -m ecdna-plot.abc --theta f1 copies --abc results/example/abc.tar.gz 10 10 10 0.1
```

## Input and output
Expand Down
2 changes: 1 addition & 1 deletion ecdna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ecdna"
version = "0.3.2"
version = "0.3.3"
edition = "2021"
authors = ["Francesco Terenzi"]
description = "Evolutionary Models of extrachromosomal DNAs"
Expand Down

0 comments on commit ee91a99

Please sign in to comment.