-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.h
More file actions
executable file
·75 lines (56 loc) · 2.06 KB
/
test.h
File metadata and controls
executable file
·75 lines (56 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* test.h
*
* Created on: 05.12.2012
* Author: AlexanderDilthey
*/
#ifndef TEST_H_
#define TEST_H_
#include <string>
#include <vector>
class readPair
{
public:
std::string r1;
std::string r2;
int distance;
};
class debugGenomeInfo {
public:
std::string genomeString;
std::vector<int> startingReadsPerPosition;
int maxNoStartingReads;
int readLength;
};
class test {
public:
test();
static void testComplements();
static void testdeBruijnGraph();
static void testEdgeFunctions();
static void testdeBruijnWalker();
static void testSupernodeFunctions();
static void testkMerDistance();
static void testPairedBasicFunctions();
static void testEntwirrung();
static void testArcValidation();
static void testArcCoverage();
static void testArcPathSearch();
static void testRefGenomePresence();
static std::string generateRandomSequence(int length);
static char randomNucleotide();
static void pgfSimulation();
static void testPairedMSSA476();
static std::vector<readPair> simulateReadsFromString(std::string baseString, int readLength, int coverage, debugGenomeInfo* dbgInfo = 0, bool perfectCoverage = false, bool displaySummary = false);
static void evaluateContigsAgainstBase(std::string baseString, std::vector<std::string> contigs);
static void testContigEvaluationOnPGF();
static void testContigEvaluation(std::string baseString);
static std::vector<std::string> generateRandomContigs(std::string baseString, double poissonStartPerPosition, double lengthWeibullAlpha, double lengthWeibullBeta, double errorRate);
static void testRandomWalk();
static std::string generateRepetitiveSequence(unsigned int numberOfSegments, unsigned int repetitiveElementLength, unsigned int interspersedSequenceLength = 800, unsigned int mediumRepetitiveNumber = 3);
static void testStraightenAndCompress();
void testAll();
static int selectRandomNumber (int min, int max);
static std::vector<std::string> findCaps(std::string existingSequence, int number, int k);
};
#endif /* TEST_H_ */