CRAN release: improved available memory estimation on Linux, added functions `avg_kinship_subpops` and `plot_admix`
popkin 1.3.13.9000 (2021-11-02)
- Added function
avg_kinship_subpops. - Function
popkin_A_min_subpops:- Now uses
avg_kinship_subpopsinternally to perform the bulk of the calculations - When
subpops = NULL, calculation now returns minimumAamong off-diagonal elements only (excluding diagonal) rather than the overall minimum ofA. There's no difference whenAis calculated from genotypes (diagonal values are much greater than off-diagonal values), but made the change for consistency when it might differ for arbitrary inputs.
- Now uses
READMEupdated github install instructions for building vignettes.
popkin 1.3.14.9000 (2021-11-05)
- Function
plot_popkinfixed a bug whennull_panel_data = TRUEin which titles that went over panels withNULLkinship were incorrectly omitted.
popkin 1.3.15.9000 (2021-12-02)
- Improved estimation of available memory on linux, fixing a bug where popkin incorrectly believes there is not enough memory.
- Old: retrieved
MemFree(from/proc/meminfo). This could underestimate available memory whenBuffersandCachedmemory are large (these count as available memory!), and in some cases cause this error:Error in solve_m_mem_lim : The resulting `m_chunk` was negative! This is because either `mat_n_n` or `vec_n` are non-zero and `n` alone is too large for the available memory (even for `m_chunk == 0`). The solution is to free more memory (ideal) or to reduce `n` if possible. - New: retrieve
MemAvailable(still from/proc/meminfo), which is ideal but is absent in older linux kernels (<3.14), otherwise fallback into retrieving and returning the sum ofMemFree,Buffers, andCached. Either way available memory is greater thanMemFreealone and is also more accurate. - Under the hood, cleaned parser considerably and check for several trouble scenarios that were previously taken for granted.
- Old: retrieved
popkin 1.3.16.9000 (2022-01-15)
- Added function
plot_admixfor making admixture/structure plots with most of the same options asplot_popkin!- Includes plotting examples in vignette.
- Cleaned up and extended internal function
print_labels_multi,print_labels.
popkin 1.3.17 (2022-01-26)
- 8th CRAN submission.
- Fixed some typos.