36f39e904ea59703ae48ff8a690cf25675dd6af1
angie
Mon Aug 1 09:47:06 2011 -0700
Feature #2823 (VCF track handler): in hgc, let the user know when wecan't access the file (instead of just displaying nothing) and include
custom url.
diff --git src/hg/hgc/vcfClick.c src/hg/hgc/vcfClick.c
index 4339481..00fa4b0 100644
--- src/hg/hgc/vcfClick.c
+++ src/hg/hgc/vcfClick.c
@@ -216,30 +216,31 @@
if (hTableExists(database, "knownGene"))
{
struct pgSnp *pgs = pgSnpFromVcfRecord(rec);
if (!sameString(rec->chrom, seqName))
// rec->chrom might be missing "chr" prefix:
pgs->chrom = seqName;
printSeqCodDisplay(database, pgs);
}
}
static void vcfRecordDetails(struct trackDb *tdb, struct vcfRecord *rec)
/* Display the contents of a single line of VCF, assumed to be from seqName
* (using seqName instead of rec->chrom because rec->chrom might lack "chr"). */
{
printf("Name: %s
\n", rec->name);
+printCustomUrl(tdb, rec->name, TRUE);
static char *formName = "vcfCfgHapCenter";
printf("