src/hg/hgc/hgc.c 1.1559

1.1559 2009/07/10 22:17:04 angie
In printSnpAlleleRows, don't reverse-complement refUCSC if it is like '(1000bp insertion)'.
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1558
retrieving revision 1.1559
diff -b -B -U 4 -r1.1558 -r1.1559
--- src/hg/hgc/hgc.c	26 Jun 2009 22:18:57 -0000	1.1558
+++ src/hg/hgc/hgc.c	10 Jul 2009 22:17:04 -0000	1.1559
@@ -14362,9 +14362,10 @@
 void printSnpAlleleRows(struct snp125 *snp, int version)
 /* Print the UCSC ref allele (and dbSNP if it differs), as row(s) of a
  * 6-column table. */
 {
-if (sameString(snp->strand,"+"))
+if (sameString(snp->strand,"+") ||
+    strchr(snp->refUCSC, '(')) // don't try to revComp refUCSC if it is "(N bp insertion)" etc.
     {
     printf("<TR><TD><B>Reference allele:&nbsp;</B></TD>"
 	   "<TD align=center>%s</TD>"FOURBLANKCELLS"</TR>\n", snp->refUCSC);
     if (!sameString(snp->refUCSC, snp->refNCBI))