// -*- 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 __POSITION_SNP_CALL_PPROB_DIGT_HH #define __POSITION_SNP_CALL_PPROB_DIGT_HH #include "blt_common/blt_shared.hh" #include "blt_common/snp_pos_info.hh" #include "blt_util/digt.hh" #include "blt_util/qscore.hh" #include #include struct diploid_genotype : private boost::noncopyable { diploid_genotype() : is_snp(false), ref_gt(0), max_gt(0), max2_gt(0), max_gt_poly(0) { static const double p(1./static_cast(DIGT::SIZE)); static const int qp(error_prob_to_qphred((1.-p))); snp_qphred=qp; max_gt_qphred=qp; max_gt_poly_qphred=qp; for(unsigned i(0);i& dependent_eprob, diploid_genotype& dgt, const bool is_always_test = false); #endif