a8bd54420b2e3d50e2fd67bfd9dda3c012f76633 markd Fri Nov 5 00:36:31 2010 -0700 renamed cigar converter to make it clear that this is the GFF3 cigar format, not the ENSEMBL cigar diff --git src/inc/psl.h src/inc/psl.h index a7b60f7..5e01ab2 100644 --- src/inc/psl.h +++ src/inc/psl.h @@ -284,34 +284,34 @@ char *tName, bioSeq *tSeq, int tStart, int tEnd, int exnStarts[], int exnEnds[], int exnCnt, FILE *f); /* Show protein/DNA alignment or translated DNA alignment in HTML format. */ struct psl* pslNew(char *qName, unsigned qSize, int qStart, int qEnd, char *tName, unsigned tSize, int tStart, int tEnd, char *strand, unsigned blockSpace, unsigned opts); /* create a new psl with space for the specified number of blocks allocated. * pslGrow maybe used to expand this space if needed. Valid options are * PSL_XA_FORMAT. */ void pslGrow(struct psl *psl, int *blockSpacePtr); /* Increase memory allocated to a psl to hold more blocks. blockSpacePtr * should point the the current maximum number of blocks and will be * updated to with the new amount of space. */ -struct psl* pslFromCigar(char *qName, int qSize, int qStart, int qEnd, +struct psl* pslFromGff3Cigar(char *qName, int qSize, int qStart, int qEnd, char *tName, int tSize, int tStart, int tEnd, char* strand, char *cigar); -/* create a PSL from a cigar formatted alignment */ +/* create a PSL from a GFF3-style cigar formatted alignment */ int pslRangeTreeOverlap(struct psl *psl, struct rbTree *rangeTree); /* Return amount that psl overlaps (on target side) with rangeTree. */ float pslIdent(struct psl *psl); /* computer fraction identity */ float pslQueryAligned(struct psl *psl); /* compute fraction of query that was aligned */ INLINE unsigned pslQEnd(struct psl *psl, int blkIdx) /* return query end for the given block */ { return psl->qStarts[blkIdx] + psl->blockSizes[blkIdx]; }