From 177d6d00b8ed778b4d1d07c1a24a6ab1422cdaec Mon Sep 17 00:00:00 2001 From: asivache Date: Tue, 30 Jun 2009 17:40:37 +0000 Subject: [PATCH] added setContigIndex(). NOTE: both setContig() and setContigIndex are UNSAFE as one does not automatically involve updating the other, and there's also no validation git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1130 348d0f76-0448-11de-a6fe-93d51630548a --- .../org/broadinstitute/sting/utils/GenomeLoc.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/java/src/org/broadinstitute/sting/utils/GenomeLoc.java b/java/src/org/broadinstitute/sting/utils/GenomeLoc.java index 140d860df..a10e631a2 100644 --- a/java/src/org/broadinstitute/sting/utils/GenomeLoc.java +++ b/java/src/org/broadinstitute/sting/utils/GenomeLoc.java @@ -146,10 +146,22 @@ public class GenomeLoc implements Comparable, Cloneable { public final boolean throughEndOfContigP() { return this.stop == Integer.MAX_VALUE; } public final boolean atBeginningOfContigP() { return this.start == 1; } + /** Sets contig name. UNSAFE since it 1) does NOT update contig index; 2) does not validate the name + * + * @param contig + */ public void setContig(String contig) { this.contigName = contig; } + /** Sets contig index. UNSAFE since it 1) does NOT update contig name; 2) does not validate the index + * + * @param contig + */ + public void setContigIndex(int contig) { + this.contigIndex = contig; + } + public void setStart(long start) { this.start = start; } @@ -296,6 +308,4 @@ public class GenomeLoc implements Comparable, Cloneable { - - }