From 14944b5d730c52d73765c9de41d8d157be2e6418 Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Thu, 20 Dec 2012 14:53:58 -0500 Subject: [PATCH] Incorporating clover into build.xml -- See http://gatkforums.broadinstitute.org/discussion/2002/clover-coverage-analysis-with-ant for use docs -- Fix for artificial reads not having proper read groups, causing NPE in some tests -- Added clover itself to private/resources --- build.xml | 50 +++++++++++++------ .../sting/gatk/phonehome/GATKRunReport.java | 4 +- .../sting/utils/sam/ArtificialSAMUtils.java | 1 + 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/build.xml b/build.xml index 49efd616d..0cfc1a8cd 100644 --- a/build.xml +++ b/build.xml @@ -107,7 +107,7 @@ - + @@ -267,19 +267,19 @@ - - + + + + + + - - + + + + + + @@ -596,6 +596,7 @@ + + @@ -1090,7 +1092,6 @@ - @@ -1119,8 +1120,12 @@ + + + + @@ -1128,6 +1133,17 @@ + + + + + + + + + + + @@ -1207,6 +1223,7 @@ + @@ -1220,10 +1237,11 @@ listeners="org.testng.reporters.FailedReporter,org.testng.reporters.JUnitXMLReporter,org.broadinstitute.sting.TestNGTestTransformer,org.broadinstitute.sting.StingTextReporter,org.uncommons.reportng.HTMLReporter"> + - + @@ -1262,6 +1280,7 @@ + @@ -1374,6 +1393,7 @@ + diff --git a/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java b/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java index 51fed470f..2bc14aa69 100644 --- a/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java +++ b/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java @@ -131,7 +131,7 @@ public class GATKRunReport { private String hostName; @Element(required = true, name = "java") - private String java; + private String javaVersion; @Element(required = true, name = "machine") private String machine; @@ -212,7 +212,7 @@ public class GATKRunReport { hostName = Utils.resolveHostname(); // basic java information - java = Utils.join("-", Arrays.asList(System.getProperty("java.vendor"), System.getProperty("java.version"))); + javaVersion = Utils.join("-", Arrays.asList(System.getProperty("java.vendor"), System.getProperty("java.version"))); machine = Utils.join("-", Arrays.asList(System.getProperty("os.name"), System.getProperty("os.arch"))); // if there was an exception, capture it diff --git a/public/java/src/org/broadinstitute/sting/utils/sam/ArtificialSAMUtils.java b/public/java/src/org/broadinstitute/sting/utils/sam/ArtificialSAMUtils.java index 0859957a3..77cf500f2 100755 --- a/public/java/src/org/broadinstitute/sting/utils/sam/ArtificialSAMUtils.java +++ b/public/java/src/org/broadinstitute/sting/utils/sam/ArtificialSAMUtils.java @@ -188,6 +188,7 @@ public class ArtificialSAMUtils { GATKSAMRecord rec = createArtificialRead(header, name, refIndex, alignmentStart, bases.length); rec.setReadBases(bases); rec.setBaseQualities(qual); + rec.setReadGroup(new GATKSAMReadGroupRecord("x")); if (refIndex == -1) { rec.setReadUnmappedFlag(true); }