-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally extract all fingerprint snps #1989
base: master
Are you sure you want to change the base?
Changes from all commits
98f7727
7770030
d54015b
0b38737
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,11 +375,12 @@ void testCanHandleDeepData(final HaplotypeProbabilitiesFromSequence hp, final in | |
final File fasta = new File(TEST_DATA_DIR, "reference.fasta"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you want a test to show outputting multiple values? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd love to, but it would involve building a bam...and I need to find time for that... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when I find a project that actually uses this, I'll make time to write a test... OK? |
||
|
||
try (final ReferenceSequenceFile ref = ReferenceSequenceFileFactory.getReferenceSequenceFile(fasta)) { | ||
final VariantContext vc = FingerprintUtils.getVariantContext(ref, "test", hp); | ||
final VariantContext vc = FingerprintUtils.getVariantContext(ref, "test", hp, true).iterator().next(); | ||
Assert.assertTrue(MathUtil.max(MathUtil.promote(vc.getGenotype(0).getPL())) > 0); | ||
} | ||
} | ||
|
||
|
||
@DataProvider() | ||
Object[][] mergeIsSafeProvider() { | ||
final HaplotypeProbabilitiesFromSequence hp1 = new HaplotypeProbabilitiesFromSequence(hb); | ||
|
@@ -551,7 +552,7 @@ public void testWriteFingerprint() throws IOException { | |
final Fingerprint fp = fpchecker.fingerprintVcf(vcfInput.toPath()).values().iterator().next(); | ||
|
||
final File vcfOutput = File.createTempFile("fingerprint", ".vcf"); | ||
FingerprintUtils.writeFingerPrint(fp, vcfOutput, fasta, "Dummy", "Testing"); | ||
FingerprintUtils.writeFingerPrint(fp, vcfOutput, fasta, "Dummy", "Testing", true); | ||
|
||
VcfTestUtils.assertVcfFilesAreEqual(vcfOutput, vcfExpected); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flatMap!