-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MANTA-1361 Create unit test utility library
Take existing unit test support code to create an IndelBuffer, already shared between multiple tests, and use this to seed a new unit test utility library following the same pattern as for manta.
- Loading branch information
Showing
10 changed files
with
133 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Libraries | ||
|
||
- alignment | ||
- sequence alignment utilities | ||
|
||
- applications/X: | ||
- code specific to command-line application X | ||
|
||
- appstats | ||
- shared performance tracking code between applications | ||
|
||
- assembly | ||
- local sequence assembly utilities | ||
|
||
- blt\_common | ||
- shared snv-calling logic (from old 'blt' snp-caller) | ||
|
||
- blt\_util | ||
- general utility functions from manta/starling/strelka/gvcftools | ||
|
||
- calibration | ||
- empirical variant scoring logic | ||
|
||
- common | ||
- general utility functions from CASAVA/Grouper/Isaac | ||
|
||
- errorAnalysis | ||
- shared libraries for utilities that estimate sequence artifact rates from data, used for various forms of model parameter estimation | ||
|
||
- htsapi | ||
- various c++ wrapper objects built on top of samtools/htslib and other utilities for standard genomic indexed file formats like bam/cram,bed,vcf, etc... | ||
|
||
- options | ||
- command-line options objects which are shared between applications | ||
|
||
- starling\_common | ||
- shared small variant calling logic | ||
|
||
- strelka\_common | ||
- shared comparitive small variant calling logic | ||
|
||
- test | ||
- Logic used only for unit testing other libraries. These are linked into the unit tests but not production binaries |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Manta - Structural Variant and Indel Caller | ||
# Copyright (c) 2013-2018 Illumina, Inc. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# | ||
|
||
include(${THIS_CXX_LIBRARY_CMAKE}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Strelka - Small Variant Caller | ||
// Copyright (c) 2009-2018 Illumina, Inc. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
// | ||
|
||
#include "testIndelBuffer.hh" | ||
|
||
|
||
|
||
TestIndelBuffer:: | ||
TestIndelBuffer( | ||
const reference_contig_segment& ref) | ||
{ | ||
_opt.is_candidate_indel_signal_test = false; | ||
|
||
const double maxDepth = 100.0; | ||
_doptPtr.reset(new starling_base_deriv_options(_opt)); | ||
|
||
_IndelBufferPtr.reset(new IndelBuffer(_opt, *_doptPtr, ref)); | ||
|
||
_IndelBufferPtr->registerSample(depth_buffer(), depth_buffer(), maxDepth); | ||
_IndelBufferPtr->finalizeSamples(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters