From a69a4dda2fcf14ef3f7e8c6e97b92645fdf62e6d Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Fri, 30 Sep 2011 09:56:23 -0400 Subject: [PATCH] SamplesDB no longer has null sample -- Updated getSamples().size() == 2 test in CallableLociWalker that really ensured there was one sample in the system --- .../sting/gatk/samples/SampleDataSource.java | 2 +- .../walkers/coverage/CallableLociWalker.java | 3 +-- .../gatk/walkers/qc/CountMalesWalker.java | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDataSource.java b/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDataSource.java index 9543c834a..d5285271b 100644 --- a/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDataSource.java +++ b/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDataSource.java @@ -35,7 +35,7 @@ public class SampleDataSource { * Constructor takes both a SAM header and sample files because the two must be integrated. */ public SampleDataSource() { - samples.put(null, new Sample(null, this)); + } public SampleDataSource(final SAMFileHeader header, final List sampleFiles) { diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/coverage/CallableLociWalker.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/coverage/CallableLociWalker.java index 1e2d40271..1dfc6fea0 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/coverage/CallableLociWalker.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/coverage/CallableLociWalker.java @@ -227,8 +227,7 @@ public class CallableLociWalker extends LocusWalker