Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit e889c2ff authored by Mathieu Giraud's avatar Mathieu Giraud

tests: new test, check that average IGHV filtering is <2.5%

see #4660
parent 0e810387
Pipeline #211728 passed with stages
in 35 minutes and 42 seconds
......@@ -353,6 +353,8 @@ void testGetNSignicativeKmers(){
FilterWithACAutomaton *f = new FilterWithACAutomaton(seqV, "########");
int total_filtered = 0;
// Check filter behaviour for each IGHV gene
for(int i = 0; i < seqV.size(); ++i){
Sequence seq = seqV.read(i);
......@@ -366,8 +368,14 @@ void testGetNSignicativeKmers(){
}
TAP_TEST(j < filtered.size(), TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, GENE_NOT_FOUND);
TAP_TEST(filtered.size() < seqV.size() / 10, TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, SIZE_ERROR + ", " + seq.label + ", " + string_of_int(filtered.size()) + "/" + string_of_int(seqV.size()));
total_filtered += filtered.size();
}
delete f;
float ratio = ((float) total_filtered) / (seqV.size()*seqV.size());
TAP_TEST_APPROX(ratio, 0.02, 0.005, TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, "Average filtering ratio on IGHV");
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment