~ubuntu-branches/ubuntu/wily/samtools/wily

« back to all changes in this revision

Viewing changes to bam_color.c

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-09-14 21:58:36 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090914215836-27bfc2lrtr0xfnhz
Tags: 0.1.6~dfsg-1
* New upstream release.
* Upstream sources repackaged to remove the win32 directory:
  - The removal was done with git-import-orig in a parallel Git repository,
    and the corresponding debian/gbp.conf file was added to this package.
  - Mangled the ~dfsg string of the Debian version in debian/watch.
  - Added a debian/README.source file and explanations in debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
                cs_i = strlen(cs) - 1 - i;
101
101
                // get current color
102
102
                cur_color = cs[cs_i];
103
 
                // get previous base
104
 
                prev_b = (0 == cs_i) ? cs[0] : bam_nt16_rev_table[bam1_seqi(bam1_seq(b), i+1)];
 
103
                // get previous base.  Note: must rc adaptor
 
104
                prev_b = (cs_i == 1) ? "TGCAN"[(int)bam_aux_nt2int(cs[0])] : bam_nt16_rev_table[bam1_seqi(bam1_seq(b), i+1)];
105
105
                // get current base
106
106
                cur_b = bam_nt16_rev_table[bam1_seqi(bam1_seq(b), i)]; 
107
107
        }