cdb062c333ee1200f4a744fd0736d9a27933629c angie Mon Apr 27 15:01:01 2020 -0700 Use lineFileUdc instead of just lineFile, so URLs work. Now I can make a custom track with hapClusterMethod treeFile . diff --git src/lib/phyloTree.c src/lib/phyloTree.c index d2004be..6796a15 100644 --- src/lib/phyloTree.c +++ src/lib/phyloTree.c @@ -10,31 +10,33 @@ struct phyloTree *phyloReadTree(struct lineFile *lf) /* reads a phyloTree from lineFile (first line only) */ { struct phyloTree *tree = NULL; char *ptr; int len; if (lineFileNext(lf, &ptr, &len) && (len > 0)) tree = phyloParseString(ptr); return tree; } struct phyloTree *phyloOpenTree(char *fileName) { -struct lineFile *lf = lineFileOpen(fileName, TRUE); +struct lineFile *lf = lineFileUdcMayOpen(fileName, TRUE); +if (lf == NULL) + errAbort("phyloOpenTree: Can't open '%s'", fileName); struct phyloTree *tree = phyloReadTree(lf); lineFileClose(&lf); return tree; } static char *unescapeNewark(char *s) /* unescape backslashed Newark punctuation chars */ { char out[strlen(s)+1]; char *o = out; boolean escaped = FALSE; while(TRUE) {