Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
3c138657
Commit
3c138657
authored
Sep 15, 2015
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: test best_overlap_split
Currently, this test is not passing.
parent
5e6bc91f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
algo/tests/testSegment.cpp
algo/tests/testSegment.cpp
+24
-0
No files found.
algo/tests/testSegment.cpp
View file @
3c138657
...
...
@@ -11,6 +11,29 @@
using
namespace
std
;
void
testDynprog
()
{
// aaaaaaaTaa
// cGcccccccc
string
refA
=
"AAAAAAAAAA"
;
string
refC
=
"CCCCCCCCCC"
;
// here seqA and seqC do not actullay overlap, but the goal is to find the good split point
string
seqA
=
"AAAAAAATAA"
;
string
seqC
=
"CGCCCCCCCC"
;
int
trimA
,
trimC
;
best_overlap_split
(
5
,
seqA
,
seqC
,
refA
,
refC
,
&
trimA
,
&
trimC
,
VDJ
);
cout
<<
trimA
<<
" / "
<<
trimC
<<
endl
;
TAP_TEST
(
trimA
==
3
,
TEST_FINE_SEGMENT_OVERLAP
,
"number of trim nucleotides"
);
TAP_TEST
(
trimC
==
2
,
TEST_FINE_SEGMENT_OVERLAP
,
"number of trim nucleotides"
);
}
void
testFineSegment
()
{
Fasta
seqV
(
"../../germline/IGHV.fa"
,
2
);
...
...
@@ -322,5 +345,6 @@ void testSegment() {
testSegmentationCause
();
testExtractor
();
testProbability
();
testDynprog
();
testFineSegment
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment