-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now one can specify the expected insert size distribution as supposed… (
#19) * Now one can specify the expected insert size distribution as supposed to allow BWA to infer it on the fly. This might have some value when re-aligning a small number of reads (inference may fail) or when one knows that there is a heterozygous variant and we actually now the expected insert size distribution; the input data would have a mixture of gaussians rather than the expected single gaussian.
- Loading branch information
Valentin Ruano Rubio
authored
May 3, 2018
1 parent
b047bc2
commit 272143f
Showing
10 changed files
with
338 additions
and
15 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,30 @@ | ||
#include "init.h" | ||
|
||
jfieldID peStatClass_failedID; | ||
jfieldID peStatClass_lowID; | ||
jfieldID peStatClass_highID; | ||
jfieldID peStatClass_averageID; | ||
jfieldID peStatClass_stdID; | ||
|
||
|
||
#define FAIL_IF_NULL(x) if (!(x)) return JNI_ERR; | ||
|
||
jint JNI_OnLoad(JavaVM* vm, void* reserved) { | ||
|
||
JNIEnv* env; | ||
jclass peStatClass; | ||
if ((*vm)->GetEnv(vm, &env, JNI_VERSION_1_8) != JNI_OK) { | ||
return JNI_ERR; | ||
} | ||
|
||
FAIL_IF_NULL(peStatClass = (*env)->FindClass(env, "org/broadinstitute/hellbender/utils/bwa/BwaMemPairEndStats")); | ||
FAIL_IF_NULL(peStatClass_failedID = (*env)->GetFieldID(env, peStatClass, "failed", "Z")); | ||
FAIL_IF_NULL(peStatClass_lowID = (*env)->GetFieldID(env, peStatClass, "low", "I")); | ||
FAIL_IF_NULL(peStatClass_highID = (*env)->GetFieldID(env, peStatClass, "high", "I")); | ||
FAIL_IF_NULL(peStatClass_averageID = (*env)->GetFieldID(env, peStatClass, "average", "D")); | ||
FAIL_IF_NULL(peStatClass_stdID = (*env)->GetFieldID(env, peStatClass, "std", "D")); | ||
(*env)->DeleteLocalRef(env, peStatClass); | ||
|
||
return JNI_VERSION_1_8; | ||
} | ||
|
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,15 @@ | ||
#include <jni.h> | ||
|
||
#ifndef INIT_H | ||
#define INIT_H | ||
|
||
extern jfieldID peStatClass_failedID; | ||
extern jfieldID peStatClass_lowID; | ||
extern jfieldID peStatClass_highID; | ||
extern jfieldID peStatClass_averageID; | ||
extern jfieldID peStatClass_stdID; | ||
|
||
|
||
jint JNI_OnLoad(JavaVM* vm, void* reserved); | ||
|
||
#endif |
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
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
Oops, something went wrong.