Skip to content

Commit b086fa7

Browse files
committed
Bump to v0.5.0
1 parent 640b3a3 commit b086fa7

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

‎Cargo.lock‎

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.4.0"
2+
version = "0.5.0"
33
authors = ["Maël Lefeuvre <mael.lefeuvre@mnhn.fr>"]
44
description = "GRUPS-rs: Get Relatedness Using Pedigree Simulations"
55
edition = "2021"

‎README.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,21 @@ grups-rs fst \
257257
258258
#### Using FSA-encoded files with `grups-rs`
259259
260-
Once the indexation is completed, `.fst` and `.fst.frq` files can be used seamlessly when performing pedigree simulations. The user merely has to specify the input type using the [`--mode`](#i--mode) argument. Specifying a target directory is performed in the same way, using [`--data-dir`](#f--data-dir).
260+
Once the indexation is completed, `.fst` and `.fst.frq` files can be used seamlessly when performing pedigree simulations. The user merely has to specify the input type using the [`--mode`](#i--mode) argument. Specifying a target directory is performed in the same way, using [`--data-dir`](#f--data-dir). Starting at [`grups-rs v0.5.0`](https://github.com/MaelLefeuvre/grups-rs/tree/v0.5.0), an additional benefit of using FSA-encoded files, is that `grups-rs` will greatly benefit from multithreading.
261+
Note that multithreading is here performed across all pairwise comparisons, and is parametrized using the [`--threads`](#---threads) argument.
261262
262263
```Bash
263264
grups-rs pedigree-sims --pileup ./tests/test-data/pileup/parents-offspring.pileup \
265+
--threads 3 \
266+
--mode fst-mmap \
264267
--data-dir ./test-fst-index \
265268
--recomb-dir ./tests/test-data/recombination-map/ \
266269
--pedigree ./tests/test-data/pedigree/tiny_pedigree.txt \
267270
--samples 0-2 \
268271
--sample-names MDH1 MDH2 MDH3 \
269272
--reps 1000 \
270273
--quiet \
271-
--mode fst-mmap
274+
--mode fst-mmap
272275
```
273276
274277
##### A note on the `--mode` argument:
@@ -912,6 +915,11 @@ Path to input pedigree definition file. Examples of such definition files may be
912915
913916
#### Optional arguments
914917
918+
###### `-@`|`--threads`
919+
Number of parallel CPU processes when performing FST-Indexation
920+
921+
Note that parallelization is dispatched according to the number of investigated pairwise comparisons. Thus, there is no point in invoking more than $n\cdot(n-1)/2$ threads, where $n$ is the number of samples being compared within the pileup. When [`--self-comparison`](#s--self-comparison) is applied, the sofware can benefit from as much as $n^{2}/2$ thread, provided your computer has enough CPU resources..
922+
915923
###### `-d`|`--af-downsampling-rate`
916924
Allele frequency downsampling rate, i.e. the proportion of SNPs to keep at true frequency (in percentage).
917925
@@ -1047,7 +1055,7 @@ Note that parallelization is dispatched according to the number of separate `.vc
10471055
###### `--decompression-threads`
10481056
Number of additional parallel decompression threads when decompressing BGZF-compressed VCF files. (This parameter has no effect when working with uncompressed `.vcf` files.)
10491057
1050-
Also note that decompression threads have a multiplicative effect when combined with '--threads'. Thus, setting `--decompression-threads 2` and `--threads 22`, will in fact consume up to 44 worker threads.
1058+
Also note that decompression threads have a multiplicative effect when combined with [`--threads`](#---threads-1). Thus, setting `--decompression-threads 2` and `--threads 22`, will in fact consume up to 44 worker threads.
10511059
10521060
#### Optional flags
10531061
###### `-F`|`--compute-pop-afs`

‎src/parser/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ pub struct PedigreeSims {
547547
/// Number of parallel CPU processes when performing Pedigree simulations
548548
///
549549
/// Parallelization is dispatched according to the number of pairwise comparisons. Thus, there is no point in
550-
/// invoking more threads than (n*n-1)/2 samples (or n^2/2, when allowing self-comparisons)
550+
/// invoking more threads than (n*n-1)/2 samples (or n^2/2, when allowing --self-comparisons)
551551
///
552552
#[clap(short='@', long, default_value("1"))]
553553
pub threads: usize,

0 commit comments

Comments
 (0)