src/hg/inc/bamFile.h 1.11
1.11 2009/10/08 06:38:22 angie
Added support for bam as a custom track type.
Index: src/hg/inc/bamFile.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/bamFile.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/inc/bamFile.h 24 Sep 2009 04:33:50 -0000 1.10
+++ src/hg/inc/bamFile.h 8 Oct 2009 06:38:22 -0000 1.11
@@ -16,8 +16,11 @@
/* Return file name from table. If table has a seqName column, then grab the
* row associated with bamSeqName (which is not nec. in chromInfo, e.g.
* bam file might have '1' not 'chr1'). */
+boolean bamFileExists(char *bamFileName);
+/* Return TRUE if we can successfully open the bam file and its index file. */
+
void bamFetch(char *bamFileName, char *position, bam_fetch_f callbackFunc, void *callbackData);
/* Open the .bam file, fetch items in the seq:start-end position range,
* and call callbackFunc on each bam item retrieved from the file plus callbackData.
* Note: if sequences in .bam file don't begin with "chr" but cart position does, pass in