Changeset 3802


Ignore:
Timestamp:
May 12, 2019, 6:31:06 AM (6 weeks ago)
Author:
Peter
Message:

closes #918. implement function Pileup::size

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/pileup.cc

    r3801 r3802  
    158158  Pileup<BamReadIterator>::const_reverse_iterator rend = pileup.rend();
    159159  std::distance(pileup.rbegin(), rend);
     160  pileup.size();
    160161}
    161162
  • trunk/yat/omic/Pileup.h

    r3801 r3802  
    210210     */
    211211    void increment(void);
     212
     213    /**
     214       \return number of reads in pileup. Reads with a deletion of the
     215       current position is also counted.
     216
     217       \since new in yat 0.17
     218     */
     219    size_t size(void) const;
    212220
    213221    /**
     
    380388
    381389  template<typename Iterator>
     390  size_t Pileup<Iterator>::size(void) const
     391  {
     392    return data_.size();
     393  }
     394
     395
     396  template<typename Iterator>
    382397  Pileup<Iterator>::Entry::Entry(const BamRead& b)
    383398    : bam_(new BamRead(b)), qpos_(0), cigar_(bam_->cigar()), skip_(0)
Note: See TracChangeset for help on using the changeset viewer.