src/inc/psl.h 1.40
1.40 2009/03/05 00:41:20 markd
added functions to get block ends
Index: src/inc/psl.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/psl.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -b -B -U 4 -r1.39 -r1.40
--- src/inc/psl.h 18 May 2008 04:11:53 -0000 1.39
+++ src/inc/psl.h 5 Mar 2009 00:41:20 -0000 1.40
@@ -304,6 +304,18 @@
float pslQueryAligned(struct psl *psl);
/* compute fraction of query that was aligned */
+INLINE unsigned pslQEnd(struct psl *psl, int blkIdx)
+/* return query target end for the given block */
+{
+return psl->qStarts[blkIdx] + psl->blockSizes[blkIdx];
+}
+
+INLINE unsigned pslTEnd(struct psl *psl, int blkIdx)
+/* return target end for the given block */
+{
+return psl->tStarts[blkIdx] + psl->blockSizes[blkIdx];
+}
+
#endif /* PSL_H */