From a264b163586c4e090f4a3fb5eab010d61f48b12b Mon Sep 17 00:00:00 2001 From: hanna Date: Thu, 27 Jan 2011 21:46:13 +0000 Subject: [PATCH] Patch from Brett (with minor tweaking by me) to expose all the relationships of a particular sample in hash format. Thanks, Brett! git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5100 348d0f76-0448-11de-a6fe-93d51630548a --- .../broadinstitute/sting/gatk/datasources/sample/Sample.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/org/broadinstitute/sting/gatk/datasources/sample/Sample.java b/java/src/org/broadinstitute/sting/gatk/datasources/sample/Sample.java index 6a38350e9..ca8756684 100644 --- a/java/src/org/broadinstitute/sting/gatk/datasources/sample/Sample.java +++ b/java/src/org/broadinstitute/sting/gatk/datasources/sample/Sample.java @@ -3,6 +3,7 @@ package org.broadinstitute.sting.gatk.datasources.sample; import org.broadinstitute.sting.utils.exceptions.StingException; +import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -49,6 +50,9 @@ public class Sample implements java.io.Serializable { this.properties = (HashMap) properties; } + public Map getRelationships() { + return Collections.unmodifiableMap(this.relationships); + } public void setSampleFileEntry(boolean value) { this.hasSampleFileEntry = value;