61183752129e58c44ddfad7126cbb908c01f3965 braney Sat Feb 11 09:06:32 2017 -0800 remove some duplicated code diff --git src/inc/psl.h src/inc/psl.h index cd82044..5504b31 100644 --- src/inc/psl.h +++ src/inc/psl.h @@ -145,30 +145,36 @@ void pslxFileOpenWithMeta(char *fileName, enum gfType *retQueryType, enum gfType *retTargetType, struct lineFile **retLf, FILE *f); /* Read header part of psl and make sure it's right. Return * sequence types and file handle and send meta data to output file f */ void pslxFileOpenWithUniqueMeta(char *fileName, enum gfType *retQueryType, enum gfType *retTargetType, struct lineFile **retLf, FILE *f); /* Read header part of psl and make sure it's right. Return * sequence types and file handle and send only unique meta data to output f */ int pslCmpQuery(const void *va, const void *vb); /* Compare to sort based on query. */ int pslCmpTarget(const void *va, const void *vb); /* Compare to sort based on target. */ +int pslCmpTargetStart(const void *va, const void *vb); +/* Compare to sort based on target start. */ + +int pslCmpTargetScore(const void *va, const void *vb); +/* Compare to sort based on target then score. */ + int pslCmpTargetAndStrand(const void *va, const void *vb); /* Compare to sort based on target, strand, tStart. */ int pslCmpScore(const void *va, const void *vb); /* Compare to sort based on score (descending). */ int pslCmpQueryScore(const void *va, const void *vb); /* Compare to sort based on query then score (descending). */ int pslCalcMilliBad(struct psl *psl, boolean isMrna); /* Calculate badness in parts per thousand. */ int pslCmpScoreDesc(const void *va, const void *vb); /* Compare to sort based on score descending. */