1e2e00c67a11edf9693b019c75596e2158723ba0
braney
  Mon May 2 15:40:57 2016 -0700
add a mode to bedOrBlocks to cluster based on name, use this mode to
build the pFam track on the new hg38 knownGene

diff --git src/inc/basicBed.h src/inc/basicBed.h
index 28fb8ef..cf9fe9f 100644
--- src/inc/basicBed.h
+++ src/inc/basicBed.h
@@ -124,30 +124,33 @@
 int bedCmpEnd(const void *va, const void *vb);
 /* Compare to sort based on chrom,chromEnd. */
 
 int bedCmpScore(const void *va, const void *vb);
 /* Compare to sort based on score - lowest first. */
 
 int bedCmpPlusScore(const void *va, const void *vb);
 /* Compare to sort based on chrom, chromStart and score - lowest first. */
 
 int bedCmpSize(const void *va, const void *vb);
 /* Compare to sort based on size of element (end-start == size) */
 
 int bedCmpChromStrandStart(const void *va, const void *vb);
 /* Compare to sort based on chrom,strand,chromStart. */
 
+int bedCmpChromStrandStartName(const void *va, const void *vb);
+/* Compare to sort based on name, chrom,strand,chromStart. */
+
 struct bedLine
 /* A line in a bed file with chromosome, start position parsed out. */
     {
     struct bedLine *next;	/* Next in list. */
     char *chrom;                /* Chromosome parsed out. */
     int chromStart;             /* Start position (still in rest of line). */
     char *line;                 /* Rest of line. */
     };
 
 struct bedLine *bedLineNew(char *line);
 /* Create a new bedLine based on tab-separated string s. */
 
 void bedLineFree(struct bedLine **pBl);
 /* Free up memory associated with bedLine. */