NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <objtools/readers/fasta.hpp>
#include "fasta_aln_builder.hpp"
#include <objtools/readers/fasta_exception.hpp>
#include <objtools/readers/reader_exception.hpp>
#include <objtools/readers/source_mod_parser.hpp>
#include <objtools/error_codes.hpp>
#include <corelib/ncbiutil.hpp>
#include <util/format_guess.hpp>
#include <util/sequtil/sequtil_convert.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/User_object.hpp>
#include <objects/misc/sequence_macros.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seq/Delta_ext.hpp>
#include <objects/seq/Delta_seq.hpp>
#include <objects/seq/NCBIeaa.hpp>
#include <objects/seq/IUPACaa.hpp>
#include <objects/seq/IUPACna.hpp>
#include <objects/seq/Seg_ext.hpp>
#include <objects/seq/Seq_annot.hpp>
#include <objects/seq/Seq_descr.hpp>
#include <objects/seq/Seq_ext.hpp>
#include <objects/seq/Seq_hist.hpp>
#include <objects/seq/Seq_inst.hpp>
#include <objects/seq/Seq_literal.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objects/seq/seqport_util.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqloc/Seq_interval.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_loc_mix.hpp>
#include <objects/seqloc/Seq_point.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/seqset/Seq_entry.hpp>
#include <objtools/readers/message_listener.hpp>
#include <objtools/readers/line_error.hpp>
#include <objtools/readers/fasta_reader_utils.hpp>
#include <objtools/readers/mod_reader.hpp>
#include <ctype.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CTempPusher< TStack > |
class | CTempRefSwap< TObject > |
class | CFastaMapper |
Macros | |
#define | FASTA_LINE_EXPT(_eSeverity, _uLineNum, _MessageStrmOps, _eErrCode, _eProblem, _sFeature, _sQualName, _sQualValue) |
#define | FASTA_PROGRESS(_MessageStrmOps) |
#define | FASTA_WARNING(_uLineNum, _MessageStrmOps, _eProblem, _Feature) FASTA_LINE_EXPT(eDiag_Warning, _uLineNum, _MessageStrmOps, CObjReaderParseException::eFormat, _eProblem, _Feature, kEmptyStr, kEmptyStr) |
#define | FASTA_WARNING_EX(_uLineNum, _MessageStrmOps, _eProblem, _Feature, _sQualName, _sQualValue) FASTA_LINE_EXPT(eDiag_Warning, _uLineNum, _MessageStrmOps, CObjReaderParseException::eFormat, _eProblem, _Feature, _sQualName, _sQualValue) |
#define | FASTA_ERROR(_uLineNum, _MessageStrmOps, _eErrCode) FASTA_LINE_EXPT(eDiag_Error, _uLineNum, _MessageStrmOps, _eErrCode, ILineError::eProblem_GeneralParsingError, kEmptyStr, kEmptyStr, kEmptyStr) |
#define | NCBI_USE_ERRCODE_X Objtools_Rd_Fasta |
Typedefs | |
typedef CTempPusher< stack< CFastaReader::TFlags > > | CFlagGuard |
Functions | |
bool | s_ASCII_IsUpper (unsigned char c) |
bool | s_ASCII_IsLower (unsigned char c) |
bool | s_ASCII_IsAlpha (unsigned char c) |
unsigned char | s_ASCII_MustBeLowerToUpper (unsigned char c) |
bool | s_ASCII_IsAmbigNuc (unsigned char c) |
static bool | s_ASCII_IsUnAmbigNuc (unsigned char c) |
static void | s_AddBiomol (CMolInfo::EBiomol biomol, CBioseq &bioseq) |
static bool | sRefineNaMol (const char *beginSeqData, const char *endSeqData, CBioseq &bioseq) |
CRef< CSeq_entry > | ReadFasta (CNcbiIstream &in, CFastaReader::TFlags flags, int *counter, CFastaReader::TMasks *lcv, ILineErrorListener *pMessageListener) |
A const-correct replacement for the deprecated ReadFasta function. More... | |
void | ReadFastaFileMap (SFastaFileMap *fasta_map, CNcbiIfstream &input) |
Function reads input stream (assumed that it is FASTA format) one molecule entry after another filling the map structure describing and pointing on molecule entries. More... | |
void | ScanFastaFile (IFastaEntryScan *scanner, CNcbiIfstream &input, CFastaReader::TFlags fread_flags) |
Scan FASTA files, call IFastaEntryScan::EntryFound (payload function) More... | |
static void | s_AppendMods (const CModHandler::TModList &mods, string &title) |
#define FASTA_ERROR | ( | _uLineNum, | |
_MessageStrmOps, | |||
_eErrCode | |||
) | FASTA_LINE_EXPT(eDiag_Error, _uLineNum, _MessageStrmOps, _eErrCode, ILineError::eProblem_GeneralParsingError, kEmptyStr, kEmptyStr, kEmptyStr) |
#define FASTA_LINE_EXPT | ( | _eSeverity, | |
_uLineNum, | |||
_MessageStrmOps, | |||
_eErrCode, | |||
_eProblem, | |||
_sFeature, | |||
_sQualName, | |||
_sQualValue | |||
) |
#define FASTA_PROGRESS | ( | _MessageStrmOps | ) |
#define FASTA_WARNING | ( | _uLineNum, | |
_MessageStrmOps, | |||
_eProblem, | |||
_Feature | |||
) | FASTA_LINE_EXPT(eDiag_Warning, _uLineNum, _MessageStrmOps, CObjReaderParseException::eFormat, _eProblem, _Feature, kEmptyStr, kEmptyStr) |
#define FASTA_WARNING_EX | ( | _uLineNum, | |
_MessageStrmOps, | |||
_eProblem, | |||
_Feature, | |||
_sQualName, | |||
_sQualValue | |||
) | FASTA_LINE_EXPT(eDiag_Warning, _uLineNum, _MessageStrmOps, CObjReaderParseException::eFormat, _eProblem, _Feature, _sQualName, _sQualValue) |
typedef CTempPusher<stack<CFastaReader::TFlags> > CFlagGuard |
|
static |
Definition at line 1518 of file fasta.cpp.
References Ref(), and CBioseq_Base::SetDescr().
Referenced by sRefineNaMol().
|
static |
Definition at line 1975 of file fasta.cpp.
References mod().
Referenced by CFastaReader::x_AddMods().
|
inline |
Definition at line 178 of file fasta.cpp.
References s_ASCII_IsLower(), and s_ASCII_IsUpper().
Referenced by CFastaReader::CheckDataLine().
|
inline |
Definition at line 189 of file fasta.cpp.
Referenced by CFastaReader::CheckDataLine().
|
inline |
Definition at line 173 of file fasta.cpp.
Referenced by s_ASCII_IsAlpha().
Definition at line 210 of file fasta.cpp.
Referenced by CFastaReader::CreateWarningsForSeqDataInTitle().
|
inline |
Definition at line 168 of file fasta.cpp.
Referenced by s_ASCII_IsAlpha().
|
inline |
Definition at line 184 of file fasta.cpp.
Referenced by CFastaReader::ParseDataLine().
|
static |
Definition at line 1525 of file fasta.cpp.
References CMolInfo_Base::eBiomol_genomic, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eMol_rna, s_AddBiomol(), and CBioseq_Base::SetInst().
Referenced by CFastaReader::AssignMolType().