// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright 2009 Illumina, Inc. // // This software is covered by the "Illumina Genome Analyzer Software // License Agreement" and the "Illumina Source Code License Agreement", // and certain third party copyright/licenses, and any user of this // source file is bound by the terms therein (see accompanying files // Illumina_Genome_Analyzer_Software_License_Agreement.pdf and // Illumina_Source_Code_License_Agreement.pdf and third party // copyright/license notices). // // /// \file /// /// \author Chris Saunders /// #ifndef __ALIGN_PATH_BAM_UTIL_HH #define __ALIGN_PATH_BAM_UTIL_HH #include "starling/align_path.hh" #include "blt_util/bam_util.hh" // convert internal BAM cigar representation directly into a path: // void bam_cigar_to_apath(const uint32_t* bam_cigar, const unsigned n_cigar, ALIGNPATH::path_t& apath); // convert apath to internal BAM cigar representation: // // bam_cigar should already be set to apath.size() capacity // void apath_to_bam_cigar(const ALIGNPATH::path_t& apath, uint32_t* bam_cigar); // convert apath into a CIGAR string and replace CIGAR in BAM record // void edit_bam_cigar(const ALIGNPATH::path_t& apath, bam1_t& br); #endif