diff --git a/java/src/org/broadinstitute/sting/oneoffprojects/walkers/association/RAWSampleStats.java b/java/src/org/broadinstitute/sting/oneoffprojects/walkers/association/RAWSampleStats.java index 3d16bd1dd..3a4047c5a 100755 --- a/java/src/org/broadinstitute/sting/oneoffprojects/walkers/association/RAWSampleStats.java +++ b/java/src/org/broadinstitute/sting/oneoffprojects/walkers/association/RAWSampleStats.java @@ -51,19 +51,23 @@ public class RAWSampleStats extends LocusWalker entry : handler.getExtender().getContext().entrySet() ) { - if ( ! first ) { - contextBuf.append(";"); - } else { - contextBuf.append("\t"); - first = false; - } - contextBuf.append(entry.getKey().getId()); - contextBuf.append("="); - contextBuf.append(handleMap(context.map(entry.getValue().getBasePileup()))); + StringBuffer toAppend = entry.getKey().getProperty("cohort").equals("case") ? caseBuf : controlBuf; + toAppend.append(entry.getKey().getId()); + toAppend.append("="); + toAppend.append(handleMap(context.map(entry.getValue().getBasePileup()))); + toAppend.append(";"); } + caseBuf.deleteCharAt(caseBuf.length()-1); + controlBuf.deleteCharAt(controlBuf.length()-1); contextBuf.append("\t"); + contextBuf.append("Case:\t"); + contextBuf.append(caseBuf); + contextBuf.append("\tControl:\t"); + contextBuf.append(controlBuf); } out.printf("%s%n",contextBuf.toString()); diff --git a/scala/qscript/oneoffs/chartl/ScatterGatherAssociation.q b/scala/qscript/oneoffs/chartl/ScatterGatherAssociation.q index d015d9b1a..7c896fd4a 100755 --- a/scala/qscript/oneoffs/chartl/ScatterGatherAssociation.q +++ b/scala/qscript/oneoffs/chartl/ScatterGatherAssociation.q @@ -41,6 +41,7 @@ class ScatterGatherAssociation extends QScript { @Output(doc="bqs") @Gather(classOf[SimpleTextGatherFunction]) var bqs : File = new File(String.format("%s.%s.%s", base, "BaseQualityScore", ext)) + /* @Output(doc="isd") @Gather(classOf[SimpleTextGatherFunction]) var isd : File = new File(String.format("%s.%s.%s",base,"InsertSizeDistribution",ext)) @@ -56,7 +57,7 @@ class ScatterGatherAssociation extends QScript { @Output(doc="mss") @Gather(classOf[SimpleTextGatherFunction]) var mss : File = new File(String.format("%s.%s.%s",base,"MateSameStrand",ext)) - @Output(doc="mu") + /@Output(doc="mu") @Gather(classOf[SimpleTextGatherFunction]) var mu : File = new File(String.format("%s.%s.%s",base,"MateUnmapped",ext)) @Output(doc="mmr") @@ -86,6 +87,7 @@ class ScatterGatherAssociation extends QScript { @Output(doc="rwi") @Gather(classOf[SimpleTextGatherFunction]) var rwi : File = new File(String.format("%s.%s.%s",base,"ReadsWithIndels",ext)) + */ override def commandLine = { var bedStr : String = ""