Nous avons procédé ce jeudi matin 08 avril 2021 à une MAJ de sécurité urgente. Nous sommes passé de la version 13.9.3 à la version 13.9.5 les releases notes correspondantes sont ici:
https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/
https://about.gitlab.com/releases/2021/03/31/security-release-gitlab-13-10-1-released/

Commit 0f43398e authored by Mikaël Salson's avatar Mikaël Salson

algo/tests/testRepresentative: More reproducible test

Reset the seed to have the same conditions. Otherwise depending on the number of tests and the number of times
the pseudo-random generator has been used the test may fail or succeed (we are using a RandomScore now)
parent 693e521e
Pipeline #140859 passed with stages
in 40 minutes and 24 seconds
......@@ -57,6 +57,7 @@ void testRepresentative() {
void testRevcompRepresentative() {
list<Sequence> reads = BioReader("data/representative_revcomp.fq").getAll();
srand(1);
KmerRepresentativeComputer krc(reads, "##############");
krc.setOptions(false, 3, 0.5);
krc.setCoverageReferenceLength(50);
......@@ -69,6 +70,7 @@ void testRevcompRepresentative() {
it->sequence = revcomp(it->sequence);
}
srand(1);
KmerRepresentativeComputer krc2(reads, "##############");
krc2.setOptions(false, 3, 0.5);
krc2.setCoverageReferenceLength(50);
......
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