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 bd553aff authored by Mathieu Giraud's avatar Mathieu Giraud

tests: testFilter.cpp, create only once the filtered automaton for all IGHV tests

parent 557382e3
......@@ -351,11 +351,12 @@ void testGetNSignicativeKmers(){
string SIZE_ERROR = "Filtered BioReader should be 10x smaller";
string GENE_NOT_FOUND = "Filtering sequence not found after filter";
FilterWithACAutomaton *f = new FilterWithACAutomaton(seqV, "########");
// Check filter behaviour for each IGHV gene
for(int i = 0; i < seqV.size(); ++i){
Sequence seq = seqV.read(i);
FilterWithACAutomaton *f = new FilterWithACAutomaton(seqV, "########");
filtered = f->filterBioReaderWithACAutomaton(seq.sequence, 1);
delete f;
int j = 0;
while(j < filtered.size()){
if(extractGeneName(filtered.label(j)) == extractGeneName(seq.label)){
......@@ -366,6 +367,7 @@ 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()));
}
delete f;
}
/*
......
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