embl_gather.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
- /*
- * ===========================================================================
- * PRODUCTION $Log: embl_gather.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 19:44:10 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.10
- * PRODUCTION
- * ===========================================================================
- */
- /* $Id: embl_gather.cpp,v 1000.1 2004/06/01 19:44:10 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: Aaron Ucko, NCBI
- *
- * File Description:
- *
- *
- * ===========================================================================
- */
- #include <ncbi_pch.hpp>
- #include <corelib/ncbistd.hpp>
- #include <objtools/format/item_ostream.hpp>
- #include <objtools/format/flat_expt.hpp>
- #include <objtools/format/items/locus_item.hpp>
- #include <objtools/format/items/defline_item.hpp>
- #include <objtools/format/items/accession_item.hpp>
- #include <objtools/format/items/version_item.hpp>
- #include <objtools/format/items/date_item.hpp>
- #include <objtools/format/items/segment_item.hpp>
- #include <objtools/format/items/keywords_item.hpp>
- #include <objtools/format/items/source_item.hpp>
- #include <objtools/format/items/reference_item.hpp>
- #include <objtools/format/items/comment_item.hpp>
- #include <objtools/format/items/basecount_item.hpp>
- #include <objtools/format/items/sequence_item.hpp>
- #include <objtools/format/items/ctrl_items.hpp>
- #include <objtools/format/items/feature_item.hpp>
- #include <objtools/format/gather_items.hpp>
- #include <objtools/format/embl_gather.hpp>
- #include <objtools/format/context.hpp>
- BEGIN_NCBI_SCOPE
- BEGIN_SCOPE(objects)
- CEmblGatherer::CEmblGatherer(void)
- {
- }
- void CEmblGatherer::x_DoSingleSection(CBioseqContext& ctx) const
- {
- const CFlatFileConfig& cfg = ctx.Config();
- ItemOS() << new CStartSectionItem(ctx);
- // The ID Line
- ItemOS() << new CLocusItem(ctx);
- // The AC Line
- ItemOS() << new CAccessionItem(ctx);
- // The SV Line
- if ( ctx.IsNuc() ) {
- ItemOS() << new CVersionItem(ctx);
- }
- // The DT Line
- ItemOS() << new CDateItem(ctx);
- // The DE Line
- ItemOS() << new CDeflineItem(ctx);
- // The KW Line
- ItemOS() << new CKeywordsItem(ctx);
- // The OS, OC, OG Lines
- ItemOS() << new CSourceItem(ctx);
- // The Reference (RN, RC, RP, RX, RG, RA, RT, RL) lines
- x_GatherReferences();
- x_GatherComments();
- // Features
- ItemOS() << new CFeatHeaderItem(ctx);
- if ( !cfg.HideSourceFeats() ) {
- x_GatherSourceFeatures();
- }
- x_GatherFeatures();
- // Base count
- if ( ctx.IsNuc() && (cfg.IsModeGBench() || cfg.IsModeDump()) ) {
- ItemOS() << new CBaseCountItem(ctx);
- }
- // Sequenece
- x_GatherSequence();
-
- ItemOS() << new CEndSectionItem(ctx);
- }
- END_SCOPE(objects)
- END_NCBI_SCOPE
- /*
- * ===========================================================================
- *
- * $Log: embl_gather.cpp,v $
- * Revision 1000.1 2004/06/01 19:44:10 gouriano
- * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.10
- *
- * Revision 1.10 2004/05/21 21:42:54 gorelenk
- * Added PCH ncbi_pch.hpp
- *
- * Revision 1.9 2004/04/22 15:55:26 shomrat
- * Changes in context
- *
- * Revision 1.8 2004/03/31 17:17:04 shomrat
- * Active bioseq set outside method
- *
- * Revision 1.7 2004/03/25 20:36:56 shomrat
- * Use handles
- *
- * Revision 1.6 2004/02/19 18:06:42 shomrat
- * Skip source-features if flag is set
- *
- * Revision 1.5 2004/02/11 22:50:01 shomrat
- * using types in flag file
- *
- * Revision 1.4 2004/02/11 16:50:31 shomrat
- * gather source features separately
- *
- * Revision 1.3 2004/01/14 16:11:48 shomrat
- * using ctrl_items
- *
- * Revision 1.2 2003/12/18 17:43:33 shomrat
- * context.hpp moved
- *
- * Revision 1.1 2003/12/17 20:20:15 shomrat
- * Initial Revision (adapted from flat lib)
- *
- *
- * ===========================================================================
- */