]> git.donarmstrong.com Git - samtools.git/blobdiff - bam.h
* This revision is SERIOUSLY BUGGY. Please NOT use it.
[samtools.git] / bam.h
diff --git a/bam.h b/bam.h
index a7e0f086b546b9e35d4bd14c1f0e693e21cd6f97..4d30dcc2e494a3bf1477751b1176afc682e47282 100644 (file)
--- a/bam.h
+++ b/bam.h
@@ -73,6 +73,7 @@ typedef gzFile bamFile;
   @field n_targets   number of reference sequences
   @field target_name names of the reference sequences
   @field target_len  lengths of the referene sequences
+  @field dict        header dictionary
   @field hash        hash table for fast name lookup
   @field rg2lib      hash table for @RG-ID -> LB lookup
   @field l_text      length of the plain text in the header
@@ -85,7 +86,7 @@ typedef struct {
        int32_t n_targets;
        char **target_name;
        uint32_t *target_len;
-       void *hash, *rg2lib;
+       void *dict, *hash, *rg2lib;
        int l_text;
        char *text;
 } bam_header_t;
@@ -437,6 +438,8 @@ extern "C" {
 
        char *bam_format1_core(const bam_header_t *header, const bam1_t *b, int of);
 
+       const char *bam_get_library(const bam_header_t *header, const bam1_t *b);
+
        /*! @typedef
          @abstract Structure for one alignment covering the pileup position.
          @field  b      pointer to the alignment