Changeset 2985


Ignore:
Timestamp:
Feb 18, 2013, 8:36:14 AM (9 years ago)
Author:
Peter
Message:

refs #746. added function to modify one element in sequence

Location:
trunk/yat/omic
Files:
2 edited

Legend:

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

    r2943 r2985  
    11// $Id$
    22//
    3 // Copyright (C) 2012 Peter Johansson
     3// Copyright (C) 2012, 2013 Peter Johansson
    44//
    55// This program is free software; you can redistribute it and/or modify
     
    157157
    158158
     159  void BamRead::sequence(size_t i, uint8_t seq)
     160  {
     161    assert(bam_);
     162    assert(seq < 16);
     163    bam1_seq_seti(bam1_seq(bam_), i, seq);
     164  }
     165
     166
    159167  uint8_t BamRead::sequence(size_t index) const
    160168  {
  • trunk/yat/omic/BamRead.h

    r2949 r2985  
    44// $Id$
    55//
    6 // Copyright (C) 2012 Peter Johansson
     6// Copyright (C) 2012, 2013 Peter Johansson
    77//
    88// This program is free software; you can redistribute it and/or modify
     
    219219
    220220    /**
     221       \brief modify a base in sequence
     222
     223       Set i-th base in sequence to \a x, where seq is a 4-bit integer.
     224
     225       \see bam_nt16_table
     226     */
     227    void sequence(size_t i, uint8_t x);
     228
     229    /**
    221230       \see core().l_qseq
    222231     */
Note: See TracChangeset for help on using the changeset viewer.