@@ -0,0 +1,1048 @@
+package org.ensembl.healthcheck.testcase.eg_core;%0A%0Aimport java.util.List;%0A%0Aimport org.ensembl.healthcheck.DatabaseRegistryEntry;%0Aimport org.ensembl.healthcheck.ReportManager;%0A%0Apublic class NoRepeatFeatures extends AbstractEgCoreTestCase %7B%0A%0A%09@Override%0A%09protected String getEgDescription() %7B%0A%09%09return %22Check that some kind of repeat masker has been run on the species.%22;%0A%09%7D%0A%0A%09@Override%0A%09protected boolean runTest(DatabaseRegistryEntry dbre) %7B%0A%0A%09%09List%3CInteger%3E numRepeatFeaturesList = getTemplate(dbre).queryForDefaultObjectList(%0A%09%09%09%09%22select count(*) from repeat_feature;%22, Integer.class%0A%09%09);%0A%09%09%0A%09%09Integer numRepeatFeatures = numRepeatFeaturesList.get(0);%0A%09%09%0A%09%09if (numRepeatFeatures==0) %7B%0A%09%09%09%0A%09%09%09ReportManager.problem(%0A%09%09%09%09this, %0A%09%09%09%09dbre.getConnection(), %0A%09%09%09%09%22No repeat features found!%22%0A%09%09%09);%0A%09%09%09%0A%09%09%09return false;%0A%09%09%7D%0A%09%09if (numRepeatFeatures%3C100) %7B%0A%09%09%09%0A%09%09%09ReportManager.problem(%0A%09%09%09%09this, %0A%09%09%09%09dbre.getConnection(), %0A%09%09%09%09%22Number of repeat features (%22+numRepeatFeatures+%22) is suspiciously low!%22%0A%09%09%09);%0A%09%09%09%0A%09%09%09return false;%0A%09%09%7D%0A%09%09%0A%09%09return true;%0A%09%7D%0A%0A%7D%0A

Check that repeat features are present