62149181ef13d25a5b89f630bbb1acf2ec2d4713
angie
Fri Aug 12 19:33:28 2011 -0700
MLQ #4908 (genomicSuperDups strand): genomicSuperDups' strand column isalready displayed in hgc output as "Other Position Relative Orientation"
which is its real meaning (not the usual sense of the strand column).
So don't tell bedPrintPos that we have bed 6, because then it prints out
a confusing redundant "Strand:".
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 36c755c..05ff487 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -18412,31 +18412,31 @@
alignUrl = "http://humanparalogy.gs.washington.edu/jab/der_oo33";
rowOffset = hOffsetPastBin(database, seqName, tdb->table);
parseSuperDupsChromPointPos(dupName, oChrom, &oStart, &dupId);
dyStringPrintf(query, "select * from %s where chrom = '%s' and ",
tdb->table, seqName);
if (rowOffset > 0)
hAddBinToQuery(start, end, query);
if (dupId >= 0)
dyStringPrintf(query, "uid = %d and ", dupId);
dyStringPrintf(query, "chromStart = %d and otherStart = %d",
start, oStart);
sr = sqlGetResult(conn, query->string);
while ((row = sqlNextRow(sr)))
{
genomicSuperDupsStaticLoad(row+rowOffset, &dup);
- bedPrintPos((struct bed *)(&dup), 6, tdb);
+ bedPrintPos((struct bed *)(&dup), 4, tdb);
printf("Other Position: "
""
"%s:%d-%d \n",
hgTracksPathAndSettings(), database,
dup.otherChrom, dup.otherStart+1, dup.otherEnd,
dup.otherChrom, dup.otherStart+1, dup.otherEnd);
printf(""
"View DNA for other position
\n",
hgcPathAndSettings(), dup.otherStart, dup.otherEnd, "",
dup.otherChrom, dup.otherStart, dup.otherEnd, dup.strand,
database, tdb->track);
printf("Other Position Relative Orientation:%s
\n",
dup.strand);
printf("Filter Verdict: %s
\n", dup.verdict);
printf(" testResult:%s
\n", dup.testResult);