From e9ffce2e93e354aac3d5b0e8ca02675da79b3c76 Mon Sep 17 00:00:00 2001 From: Magnus Dehli Vigeland Date: Thu, 25 May 2023 12:06:44 +0200 Subject: [PATCH] Increment version to 2.2.0; update NEWS --- DESCRIPTION | 2 +- NEWS.md | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4b261c4..a1c29f0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: pedtools Title: Creating and Working with Pedigrees and Marker Data -Version: 2.1.1.9001 +Version: 2.2.0 Authors@R: person("Magnus Dehli", "Vigeland", , "m.d.vigeland@medisin.uio.no", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9134-4962")) diff --git a/NEWS.md b/NEWS.md index b5b9b38..241c12e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,26 @@ +# pedtools 2.2.0 + +## New features + +* The **pedprobr** function `setMutationModel()` has been moved to **pedtools** and renamed to `setMutmod()`. Unlike its predecessor, this has a new argument `update`, allowing to update existing models (i.e., leaving unspecified parameters unchanged) instead of creating new models from scratch. + +* In `swapSex()` and `setSex()`, the `ids` parameter may now be the name of a selector function operating on the input pedigree. This is convenient when piping; for example, `x |> setSex(ids = leaves, sex = 0)` sets unknown sex for all leaves of `x`. + +* `print.ped()` now returns the `ped` object (not the data frame, as before) invisibly. + +* `plot.ped()` gains new arguments `fill`, `lty`, `lwd` and `hatchDensity`. + +* `generations()` have been rewritten, with new parameter `what`. + +* `addMarker()` gains argument `locusAttr`. + +## Bug fixes + +* Fixed a bug in `randomPed()`, which caused the function to run out of mating options sometimes. + +* The pedigree plot alignment fails in some cases (see https://github.com/mayoverse/kinship2/issues/13). When this happens the plot method reverts to DAG mode and gives a warning. + + # pedtools 2.1.1 ## New features