ibdsim2 2.0.0
Breaking changes
-
As of version 2.0.0, the main data structure for IBD segments includes both megabase (MB) and centiMorgan (CM) coordinates. This allows the user to choose length unit in all downstream analyses. However, the new format is not compatible with previous versions of the package.
-
ibdsim()
has a new argumentsimplify1
, by default TRUE. This means thatibdsim(..., N = 1)
now simply returns a matrix, without the outer list layer. This typically the desired behaviour in interactive use, especially when piping. To enforce a list output, addsimplify1 = FALSE
.
New features
-
All downstream functions depending on segment lengths (e.g.
segmentStats()
andplotSegmentDistribution()
) have a new argumentunit
, allowing the user to choose between "cm" (centiMorgan) and "mb" (megabases). -
haploDraw()
has nicer default colours and automatically produces sensible margins. -
New (experimental) function
karyoHaploid()
for visualising IBD segments in karyogram plots. -
convertPos()
has been rewritten using Rcpp, making it much more efficient. -
General overhaul of documentation, examples and README.