public void should_have_imported_the_covariates() { var genotypeCovariate = _results.AllCovariateValuesFor("Genotype"); genotypeCovariate.Count.ShouldBeEqualTo(50); genotypeCovariate.Distinct().ShouldOnlyContain("A", "B", "C"); }
private void addCovariates(IndividualValuesCache population, DataTable dataTable) { //and one column for each individual in the population foreach (var covariateName in population.AllCovariatesNames()) { addColumnValues(dataTable, covariateName, population.AllCovariateValuesFor(covariateName)); } }