moved R minrep funcs into separate file
needed for HGMD project