📄 nw_spliced_aligner32.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: nw_spliced_aligner32.hpp,v $ * PRODUCTION Revision 1000.2 2004/06/01 18:02:33 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8 * PRODUCTION * =========================================================================== */#ifndef ALGO_ALIGN_SPLICEDALIGNER32__HPP#define ALGO_ALIGN_SPLICEDALIGNER32__HPP/* $Id: nw_spliced_aligner32.hpp,v 1000.2 2004/06/01 18:02:33 gouriano Exp $* ===========================================================================** PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information* * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular* purpose. * * Please cite the author in any work or product based on this material. ** ===========================================================================** Author: Yuri Kapustin**/#include "nw_spliced_aligner.hpp"/** @addtogroup AlgoAlignSpliced * * @{ */BEGIN_NCBI_SCOPEconst size_t splice_type_count_32 = 3;class NCBI_XALGOALIGN_EXPORT CSplicedAligner32: public CSplicedAligner{public: CSplicedAligner32(void); CSplicedAligner32( const char* seq1, size_t len1, const char* seq2, size_t len2); // Getters static TScore GetDefaultWi (unsigned char splice_type); static TScore GetDefaultWd1 (void) { return -3; } static TScore GetDefaultWd2 (void) { return -5; } // returns the size of a single backtrace matrix element virtual size_t GetElemSize(void) const { return 4; } virtual size_t GetSpliceTypeCount(void) { return splice_type_count_32; }protected: TScore m_Wi [splice_type_count_32]; TScore m_Wd1; // applies if only one donor/acceptor char damaged TScore m_Wd2; // applies if both chars damaged virtual TScore* x_GetSpliceScores(void) { return m_Wi; } virtual TScore x_Align ( const char* seg1, size_t len1, const char* seg2, size_t len2, vector<ETranscriptSymbol>* transcript ); // backtrace void x_DoBackTrace( const Uint4* backtrace_matrix, size_t N1, size_t N2, vector<ETranscriptSymbol>* transcript ); // included primarily for test purpose virtual TScore x_ScoreByTranscript(void) const;};END_NCBI_SCOPE/* @} *//* * =========================================================================== * $Log: nw_spliced_aligner32.hpp,v $ * Revision 1000.2 2004/06/01 18:02:33 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8 * * Revision 1.8 2004/04/23 14:39:22 kapustin * Add Splign librry and other changes * * Revision 1.4 2003/12/29 13:02:03 kapustin * Make x_GetElemSize() public and rename. * * Revision 1.3 2003/09/26 14:43:01 kapustin * Remove exception specifications * * Revision 1.2 2003/09/10 20:12:47 kapustin * Update Doxygen tags * * Revision 1.1 2003/09/02 22:27:44 kapustin * Initial revision * * =========================================================================== */#endif /* ALGO_ALIGN_SPLICEDALIGNER32__HPP */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -