Ignore:
Timestamp:
Apr 21, 2013, 2:37:31 AM (10 years ago)
Author:
Peter
Message:

functions to access, append, and remove aux field. refs #746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamRead.cc

    r3026 r3028  
    1 
    21// $Id$
    32
     
    7069  const uint8_t* BamRead::aux(void) const
    7170  {
     71    assert(bam_);
    7272    return bam1_aux(bam_);
     73  }
     74
     75
     76  const uint8_t* BamRead::aux(const char tag[2]) const
     77  {
     78    assert(bam_);
     79    return bam_aux_get(bam_, tag);
     80  }
     81
     82
     83  void BamRead::aux_append(const char tag[2], char type,int len,uint8_t* data)
     84  {
     85    assert(bam_);
     86    bam_aux_append(bam_, tag, type, len, data);
     87  }
     88
     89
     90  void BamRead::aux_del(const char tag[2])
     91  {
     92    assert(bam_);
     93    bam_aux_del(bam_, bam_aux_get(bam_, tag));
     94  }
     95
     96
     97  int BamRead::aux_size(void) const
     98  {
     99    assert(bam_);
     100    return bam_->l_aux;
    73101  }
    74102
Note: See TracChangeset for help on using the changeset viewer.