famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

Reduce dependencies #74

Open famuvie opened 8 years ago

famuvie commented 8 years ago

We currently have the dependency structure shown below.

Most dependencies are actually via ggplot2. Should we produce the default plots using base graphics only? Maybe we could simply suggest ggplot2.

Another source of heavy dependencies is pedigreemm, which in particular requires nloptr which in turn requires an external library that needs to be compiled and is often problematic. This looks too problematic, given that we only leverage the pedigree class in pedigreemm and the functions getA() and getAinv().

dependencies

famuvie commented 8 years ago

For getting rid of pedigreemm we should:

  1. Use another class for representing pedigrees
  2. Use alternative functions for computing the relationship matrix A and its inverse

For 1, we could get away with a simple data.frame (as other packages like pedigree or nadiv do) or create a custom class. Then we should adapt the usage of the pedigree throughout the code.

For 2, there are several options: