📄 blast_seqalign.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: blast_seqalign.hpp,v $ * PRODUCTION Revision 1000.3 2004/04/12 17:49:23 gouriano * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.20 * PRODUCTION * =========================================================================== *//* $Id: blast_seqalign.hpp,v 1000.3 2004/04/12 17:49:23 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: Christiam Camacho**//// @file blast_seqalign.hpp/// Utility function to convert internal BLAST result structures into/// objects::CSeq_align_set objects.#ifndef ALGO_BLAST_API___BLAST_SEQALIGN__HPP#define ALGO_BLAST_API___BLAST_SEQALIGN__HPP#include <corelib/ncbistd.hpp>#include <algo/blast/api/blast_options.hpp>#include <algo/blast/core/blast_hits.h>#include <algo/blast/core/gapinfo.h>/** @addtogroup AlgoBlast * * @{ */BEGIN_NCBI_SCOPEBEGIN_SCOPE(objects) class CSeq_align_set;END_SCOPE(objects)BEGIN_SCOPE(blast)/** Converts BlastHSPResults structure into a vector of CSeq_align_set classes * Returns one vector element per query sequence; all subject matches form a * list of discontinuous CSeq_align's. * @param results results from running the BLAST algorithm [in] * @param prog type of BLAST program [in] * @param query All query sequences [in] * @param seq_src handle to BLAST Sequence Source ADT [in] * @param score_options contains scoring options [in] * @param sbp scoring and statistical information [in] * @return Vector of seqalign sets (one set per query sequence). */TSeqAlignVectorBLAST_Results2CSeqAlign(const BlastHSPResults* results, EProgram prog, TSeqLocVector &query, const BlastSeqSrc* seq_src, const BlastScoringOptions* score_options, const BlastScoreBlk* sbp);/** Extracts from the BlastHSPResults structure results for only one subject * sequence, identified by its index, and converts them into a vector of * CSeq_align_set classes. Returns one vector element per query sequence; * The CSeq_align_set (list of CSeq_align's) consists of exactly one * discontinuous CSeq_align for each vector element. * @param results results from running the BLAST algorithm [in] * @param prog type of BLAST program [in] * @param query All query sequences [in] * @param seq_src handle to BLAST Sequence Source ADT [in] * @param index Index of the desired subject in the sequence source [in] * @param score_options contains scoring options [in] * @param sbp scoring and statistical information [in] * @return Vector of seqalign sets (one set per query sequence). */TSeqAlignVectorBLAST_OneSubjectResults2CSeqAlign(const BlastHSPResults* results, EProgram prog, TSeqLocVector &query, const BlastSeqSrc* seq_src, Int4 index, const BlastScoringOptions* score_options, const BlastScoreBlk* sbp);END_SCOPE(blast)END_NCBI_SCOPE/* @} *//** ===========================================================================** $Log: blast_seqalign.hpp,v $* Revision 1000.3 2004/04/12 17:49:23 gouriano* PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.20** Revision 1.20 2004/03/19 19:22:55 camacho* Move to doxygen group AlgoBlast, add missing CVS logs at EOF** Revision 1.19 2004/03/15 19:58:55 dondosha* Added BLAST_OneSubjectResults2CSeqalign function to retrieve single subject results from BlastHSPResults** Revision 1.18 2003/12/03 16:43:47 dondosha* Renamed BlastMask to BlastMaskLoc, BlastResults to BlastHSPResults** Revision 1.17 2003/11/26 18:36:45 camacho* Renaming blast_option*pp -> blast_options*pp** Revision 1.16 2003/10/30 21:40:36 dondosha* Removed unneeded extra argument from BLAST_Results2CSeqAlign** Revision 1.15 2003/08/19 20:24:17 dondosha* Added TSeqAlignVector type as a return type for results-to-seqalign functions and input for formatting** Revision 1.14 2003/08/19 13:45:21 dicuccio* Removed 'USING_SCOPE(objects)'. Changed #include guards to be standards* compliant. Added 'objects::' where necessary.** Revision 1.13 2003/08/18 20:58:56 camacho* Added blast namespace, removed *__.hpp includes** Revision 1.12 2003/08/18 17:07:41 camacho* Introduce new SSeqLoc structure (replaces pair<CSeq_loc, CScope>).* Change in function to read seqlocs from files.** Revision 1.11 2003/08/15 15:54:55 dondosha* Pass seqloc-scope pairs to results2seqalign conversion functions** Revision 1.10 2003/08/12 19:18:45 dondosha* Use TSeqLocVector type in functions** Revision 1.9 2003/08/11 19:55:04 camacho* Early commit to support query concatenation and the use of multiple scopes.* Compiles, but still needs work.** Revision 1.8 2003/08/11 15:18:50 dondosha* Added algo/blast/core to all #included headers** Revision 1.7 2003/08/11 13:58:51 dicuccio* Added export specifiers. Fixed problem with unimplemented private copy ctor* (truly make unimplemented)** Revision 1.6 2003/08/08 19:42:14 dicuccio* Compilation fixes: #include file relocation; fixed use of 'list' and 'vector'* as variable names** Revision 1.5 2003/08/01 17:40:56 dondosha* Use renamed functions and structures from local blastkar.h** Revision 1.4 2003/07/31 19:45:33 camacho* Eliminate Ptr notation** Revision 1.3 2003/07/25 22:12:46 camacho* Use BLAST Sequence Source to retrieve sequence identifier** Revision 1.2 2003/07/23 21:28:23 camacho* Use new local gapinfo structures** Revision 1.1 2003/07/10 18:34:19 camacho* Initial revision*** ===========================================================================*/#endif /* ALGO_BLAST_API___BLAST_SEQALIGN__HPP */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -