bba4180a9f6831e160113325be6f1cae380f522a
jcasper
Tue Jun 26 11:17:34 2018 -0700
Fixing dumb indexing mistake for decipher SNVs data, refs #21104
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index bf9d761..33521b7 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -10004,39 +10004,39 @@
{
printf("Transcript: %s\n
\n",
hgsidString, row[3], row[3]);
}
if (isNotEmpty(row[4]))
{
printf("Gene: %s\n
\n",
hgsidString, row[4], row[4]);
}
if (isNotEmpty(row[5]))
{
printf("Genotype: %s\n
\n", row[5]);
}
if (isNotEmpty(row[6]))
{
- printf("Inheritance: %s\n
\n", row[5]);
+ printf("Inheritance: %s\n
\n", row[6]);
}
if (isNotEmpty(row[7]))
{
- printf("Pathogenicity: %s\n
\n", row[5]);
+ printf("Pathogenicity: %s\n
\n", row[7]);
}
if (isNotEmpty(row[8]))
{
- printf("Contribution: %s\n
\n", row[5]);
+ printf("Contribution: %s\n
\n", row[8]);
}
}
sqlFreeResult(&sr);
}
else
{
sqlSafef(query, sizeof(query),
"select distinct phenotype from decipherSnvsRaw where id ='%s' order by phenotype", itemName);
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if ((row != NULL) && strlen(row[0]) >= 1)
{
printf("Phenotype: