When using the BWA bindings, you have to explicitly call close() to get the

bindings to release memory.
It may or may not be possible to implicitly close triggered by the GC; I'll add a JIRA.
This commit is contained in:
Matt Hanna 2011-07-21 12:13:29 -04:00
parent 15610ce0c3
commit 7054c5342f
2 changed files with 5 additions and 2 deletions

View File

@ -228,6 +228,9 @@ public class ValidationAmplicons extends RodWalker<Integer,Integer> {
}
public void onTraversalDone(Integer fin ) {
if(aligner != null)
aligner.close();
validateSequence();
if ( doNotUseBWA ) {
lowerRepeats();

View File

@ -14,7 +14,7 @@ import java.util.Arrays;
*/
public class ValidationAmpliconsIntegrationTest extends WalkerTest {
@Test(enabled=false)
@Test(enabled=true)
public void testWikiExample() {
String siteVCF = validationDataLocation + "sites_to_validate.vcf";
String maskVCF = validationDataLocation + "amplicon_mask_sites.vcf";
@ -40,7 +40,7 @@ public class ValidationAmpliconsIntegrationTest extends WalkerTest {
executeTest("Test probes", spec);
}
@Test(enabled=false)
@Test(enabled=true)
public void testWikiExampleMonoFilter() {
String siteVCF = validationDataLocation + "sites_to_validate.vcf";
String maskVCF = validationDataLocation + "amplicon_mask_sites.vcf";