pedtools 2.2.0
New features
-
plot.ped()
gains new argumentsfill
,lty
,lwd
andhatchDensity
. -
The pedprobr function
setMutationModel()
has been moved to pedtools and renamed tosetMutmod()
. Unlike its predecessor, this has a new argumentupdate
, allowing to update existing models (i.e., leaving unspecified parameters unchanged) instead of creating new models from scratch. -
generations()
have been rewritten, with a new parameterwhat
controlling what the function computes: Possible values ofwhat
are "max" (default; return only the number of generations in the pedigree), "compMax" (if pedigree has several components, return the generation number of each), "indiv" (individual generation numbering as in the plot) or "depth" (individual generation numbering defined by length of the longest chain up to a founder). -
In
swapSex()
andsetSex()
, theids
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 ofx
. -
print.ped()
is more pipe-friendly, returning theped
object invisibly (not the data frame, as before). -
addMarker()
gains argumentlocusAttr
.
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 mayoverse/kinship2#13). When this happens the plot method reverts to DAG mode and gives a warning.