// -*- 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 /// #include "blt_common/snp_pos_info.hh" #include #include std::ostream& operator<<(std::ostream& os, const base_call& bc){ const char strand(bc.is_fwd_strand ? 'F' : 'R'); os << "base: " << id_to_base(bc.base_id) << " P(error) " << std::setw(14) << std::setprecision(8) << std::left << bc.error_prob() << " strand: " << strand #ifdef BC_DEBUG << " read_pos: " << (bc.read_pos+1) << " read_size: " << bc.read_size #endif << " is_call_filter: " << bc.is_call_filter; return os; } std::ostream& operator<<(std::ostream& os, const snp_pos_info& pci){ os << "ref: " << pci.ref_base; const unsigned bs(pci.calls.size()); for(unsigned i(0);i