NCBI C++ ToolKit
|
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbiargs.hpp>
#include <corelib/ncbienv.hpp>
#include <corelib/ncbifile.hpp>
#include <serial/iterator.hpp>
#include <serial/objistr.hpp>
#include <serial/objostr.hpp>
#include <serial/serial.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/bioseq_handle.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/general/Date.hpp>
#include <objects/submit/Seq_submit.hpp>
#include <objects/submit/Submit_block.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/seqset/Seq_entry.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seq/Seq_inst.hpp>
#include <objects/seq/Seq_annot.hpp>
#include <objects/seq/Annotdesc.hpp>
#include <objects/seq/Annot_descr.hpp>
#include <objects/seq/Seq_descr.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objects/seqfeat/Seq_feat.hpp>
#include <objects/seqfeat/SeqFeatData.hpp>
#include <objects/seqfeat/RNA_ref.hpp>
#include <objects/seqfeat/Trna_ext.hpp>
#include <objects/seqfeat/Imp_feat.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_interval.hpp>
#include <objects/seqalign/Score.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <string>
#include <algorithm>
#include "tbl.hpp"
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | TGenfo |
struct | distanceReportStr |
struct | problemStr |
struct | diagStr |
struct | TProblem_loc |
struct | hitStr |
struct | blastStr |
struct | perfectHitStr |
struct | TExtRNA |
struct | TSimplePair |
struct | TSimpleSeq |
class | CReadBlastApp |
Typedefs | |
typedef map< CSeq_id::EAccessionInfo, TGenfo > | TranStr3 |
typedef map< string, TranStr3 > | TranStrMap3 |
typedef map< string, TProblem_loc > | TProblem_locs |
typedef map< string, diagStr > | diagMap |
typedef map< long, long > | parent_map |
typedef map< string, CRef< CSeq_feat > > | LocMap |
typedef vector< TSimplePair > | TSimplePairs |
typedef list< TSimpleSeq > | TSimpleSeqs |
typedef vector< TExtRNA > | TExtRNAtable |
Enumerations | |
enum | ECoreDataType { eUndefined = 0 , eSubmit , eEntry , eTbl } |
enum | EProblem { eOverlap = (1<<0) , eCompleteOverlap = (1<<1) , ePartial = (1<<2) , eFrameShift = (1<<3) , eMayBeNotFrameShift = (1<<4) , eRnaOverlap = (1<<5) , eTRNAMissing = (1<<6) , eTRNABadStrand = (1<<7) , eTRNAComMismatch = (1<<8) , eTRNAMismatch = (1<<9) , eTRNAAbsent = (1<<10) , eRemoveOverlap = (1<<11) , eTRNAUndefStrand = (1<<12) , eShortProtein = (1<<13) , eRelFrameShift = eFrameShift | eMayBeNotFrameShift , eTRNAProblems , eAllProblems } |
enum | EMyFeatureType { eMyFeatureType_unknown = 0 , eMyFeatureType_pseudo_tRNA , eMyFeatureType_atypical_tRNA , eMyFeatureType_normal_tRNA , eMyFeatureType_rRNA , eMyFeatureType_miscRNA , eMyFeatureType_hypo_CDS , eMyFeatureType_normal_CDS } |
Definition at line 239 of file read_blast_result.hpp.
typedef map<long,long> parent_map |
Definition at line 237 of file read_blast_result.hpp.
typedef vector<TExtRNA> TExtRNAtable |
Definition at line 274 of file read_blast_result.hpp.
typedef map<string, TProblem_loc> TProblem_locs |
Definition at line 204 of file read_blast_result.hpp.
typedef map<CSeq_id::EAccessionInfo, TGenfo > TranStr3 |
Definition at line 103 of file read_blast_result.hpp.
typedef map<string, TranStr3> TranStrMap3 |
Definition at line 104 of file read_blast_result.hpp.
typedef vector<TSimplePair> TSimplePairs |
Definition at line 257 of file read_blast_result.hpp.
typedef list<TSimpleSeq> TSimpleSeqs |
Definition at line 272 of file read_blast_result.hpp.
enum ECoreDataType |
Enumerator | |
---|---|
eUndefined | |
eSubmit | |
eEntry | |
eTbl |
Definition at line 127 of file read_blast_result.hpp.
enum EMyFeatureType |
Definition at line 168 of file read_blast_result.hpp.
enum EProblem |
Definition at line 135 of file read_blast_result.hpp.
int addProblems | ( | list< problemStr > & | dest, |
const list< problemStr > & | src | ||
) |
Definition at line 844 of file problems.cpp.
Referenced by CReadBlastApp::fit_blast().
Definition at line 839 of file problems.cpp.
References rapidjson::value.
Referenced by CReadBlastApp::match_na().
Definition at line 115 of file shortcuts.cpp.
References CTrna_ext_Base::C_Aa::e_Iupacaa, CTrna_ext_Base::C_Aa::e_Ncbi8aa, CTrna_ext_Base::C_Aa::e_Ncbieaa, CTrna_ext_Base::C_Aa::e_Ncbistdaa, ERR_POST, Error(), let1_2_let3(), MSerial_AsnText, NCBI_USER_THROW, NcbiCerr, NcbiEndl, rna, and type.
Referenced by CReadBlastApp::CollectSimpleSeqs(), and CReadBlastApp::overlaps_na().
EMyFeatureType get_my_feat_type | ( | const CSeq_feat & | feat, |
const LocMap & | loc_map | ||
) |
Definition at line 246 of file shortcuts.cpp.
References CTrna_ext_Base::CanGetAa(), CRNA_ref_Base::CanGetExt(), CRNA_ref_Base::CanGetPseudo(), CRNA_ref_Base::CanGetType(), eMyFeatureType_atypical_tRNA, eMyFeatureType_miscRNA, eMyFeatureType_normal_tRNA, eMyFeatureType_pseudo_tRNA, eMyFeatureType_rRNA, eMyFeatureType_unknown, CRNA_ref_Base::eType_miscRNA, CRNA_ref_Base::eType_rRNA, CRNA_ref_Base::eType_tRNA, CTrna_ext_Base::GetAa(), CSeq_feat_Base::GetData(), CRNA_ref_Base::GetExt(), GetLocusTag(), CTrna_ext_Base::C_Aa::GetNcbieaa(), CRNA_ref_Base::GetPseudo(), CSeqFeatData_Base::GetRna(), CRNA_ref_Base::C_Ext::GetTRNA(), CRNA_ref_Base::GetType(), CTrna_ext_Base::C_Aa::IsNcbieaa(), CSeqFeatData_Base::IsRna(), CRNA_ref_Base::C_Ext::IsTRNA(), NcbiCerr, NcbiEndl, and CReadBlastApp::PrintDetails().
Referenced by CReadBlastApp::overlaps_prot_na().
EMyFeatureType get_my_seq_type | ( | const CBioseq & | seq | ) |
Definition at line 176 of file shortcuts.cpp.
References eMyFeatureType_hypo_CDS, eMyFeatureType_normal_CDS, eMyFeatureType_unknown, get_title(), GetStringDescr(), NcbiCerr, NcbiEndl, CReadBlastApp::PrintDetails(), and type.
Referenced by CReadBlastApp::overlaps_prot_na().
CBioseq_set::TSeq_set* get_parent_seqset | ( | const CBioseq & | seq | ) |
Definition at line 379 of file read_blast_result_lib.cpp.
References CBioseq_set_Base::CanGetSeq_set(), CBioseq::GetParentEntry(), CSeq_entry::GetParentEntry(), CSeq_entry_Base::GetSet(), GetStringDescr(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), NcbiCerr, NULL, CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().
Referenced by CReadBlastApp::get_nucleotide_seq(), CReadBlastApp::overlaps(), CReadBlastApp::overlaps_prot_na(), and CReadBlastApp::short_proteins().
Definition at line 159 of file shortcuts.cpp.
References CBioseq_Base::CanGetDescr(), CSeq_descr_Base::Get(), CBioseq_Base::GetDescr(), and ITERATE.
Referenced by get_my_seq_type(), and CReadBlastApp::overlaps_prot_na().
Definition at line 197 of file shortcuts.cpp.
References CTrna_ext_Base::CanGetAa(), CRNA_ref_Base::CanGetExt(), CRNA_ref_Base::CanGetPseudo(), CRNA_ref_Base::CanGetType(), CRNA_ref_Base::eType_tRNA, CTrna_ext_Base::GetAa(), CSeq_feat_Base::GetData(), CRNA_ref_Base::GetExt(), CTrna_ext_Base::C_Aa::GetNcbieaa(), CRNA_ref_Base::GetPseudo(), CSeqFeatData_Base::GetRna(), CRNA_ref_Base::C_Ext::GetTRNA(), CRNA_ref_Base::GetType(), CTrna_ext_Base::C_Aa::IsNcbieaa(), CSeqFeatData_Base::IsRna(), and CRNA_ref_Base::C_Ext::IsTRNA().
Referenced by CReadBlastApp::overlaps_prot_na().
Definition at line 228 of file locations.cpp.
References f(), and GetLocationString().
Referenced by GetLocationString(), CReadBlastApp::GetLocMap(), GetLocusTag(), CReadBlastApp::GetRNAfeats(), and CReadBlastApp::RemoveProblems().
Definition at line 232 of file locations.cpp.
References eNa_strand_plus, CReadBlastApp::getFromTo(), and label.
Definition at line 328 of file read_blast_result_lib.cpp.
References map_checker< Container >::end(), f(), map_checker< Container >::find(), GetLocationString(), CGene_ref_Base::GetLocus_tag(), CGene_ref_Base::IsSetLocus_tag(), NcbiCerr, NcbiEndl, and CReadBlastApp::PrintDetails().
Referenced by get_my_feat_type(), CReadBlastApp::overlaps_prot_na(), and CReadBlastApp::RemoveProblems().
Definition at line 229 of file shortcuts.cpp.
References CRNA_ref_Base::CanGetExt(), CRNA_ref_Base::CanGetType(), CSeq_feat_Base::GetData(), CRNA_ref_Base::GetExt(), CRNA_ref_Base::C_Ext::GetName(), CSeqFeatData_Base::GetRna(), CRNA_ref_Base::C_Ext::IsName(), and CSeqFeatData_Base::IsRna().
Referenced by CReadBlastApp::overlaps_prot_na().
Definition at line 101 of file shortcuts.cpp.
Referenced by CReadBlastApp::CheckMissingRibosomalRNA(), CReadBlastApp::CollectSimpleSeqs(), and CReadBlastApp::overlaps_na().
Definition at line 309 of file shortcuts.cpp.
References CSeq_id::eFormat_FastA, CReadBlastApp::getLocusTag(), CSeq_id::GetStringDescr(), and result.
Referenced by CReadBlastApp::addLocation(), CReadBlastApp::AnalyzeSeqs(), CReadBlastApp::AnalyzeSeqsViaBioseqs(), CReadBlastApp::CollectSimpleSeqs(), CReadBlastApp::CopyInfoFromGenesToProteins(), CReadBlastApp::fit_blast(), get_my_seq_type(), get_parent_seqset(), CReadBlastApp::getGenomicInterval(), CReadBlastApp::getGenomicLocation(), CReadBlastApp::hasGenomicInterval(), CReadBlastApp::hasGenomicLocation(), CReadBlastApp::hasProblems(), CReadBlastApp::overlaps(), CReadBlastApp::overlaps_prot_na(), CReadBlastApp::ReadBlast(), CReadBlastApp::RemoveProblems(), CReadBlastApp::reportProblems(), CReadBlastApp::skip_to_valid_seq_cand(), and CReadBlastApp::skip_toprot().
string let1_2_let3 | ( | char | let1 | ) |
Definition at line 409 of file read_blast_result_lib.cpp.
References int, NcbiCerr, and NcbiEndl.
Referenced by Get3type().
Definition at line 367 of file shortcuts.cpp.
References CReadBlastApp::getGenomicLocation(), and printed_range().
Definition at line 328 of file shortcuts.cpp.
References CSeq_feat_Base::GetLocation(), and printed_range().
Definition at line 333 of file shortcuts.cpp.
References eExtreme_Positional, CSeq_loc::GetStart(), CSeq_loc::GetStop(), and printed_range().
Definition at line 320 of file shortcuts.cpp.
References r().
Referenced by CReadBlastApp::addLoctoSimpleSeq(), CReadBlastApp::CollectRNAFeatures(), CReadBlastApp::CollectSimpleSeqs(), CReadBlastApp::find_overlap(), CReadBlastApp::FixStrands(), CReadBlastApp::get_neighboring_sequences(), printed_range(), printed_ranges(), CReadBlastApp::printOverlapReport(), CReadBlastApp::ReadRRNA2(), CReadBlastApp::short_proteins(), CReadBlastApp::simple_overlaps(), and CReadBlastApp::ugly_simple_overlaps_call().
string printed_range | ( | const TSimplePair & | apair | ) |
Definition at line 384 of file shortcuts.cpp.
References TSimplePair::from, printed_range(), and TSimplePair::to.
string printed_range | ( | const TSimpleSeq & | ext_rna | ) |
Definition at line 391 of file shortcuts.cpp.
References eNa_strand_plus, TSimpleSeq::exons, and printed_range().
Definition at line 372 of file shortcuts.cpp.
References printed_range().
Definition at line 408 of file shortcuts.cpp.
References printed_range().
string printed_range | ( | const TSimpleSeqs::iterator & | ext_rna, |
TSimpleSeqs & | seqs | ||
) |
Definition at line 414 of file shortcuts.cpp.
References printed_range().
Definition at line 341 of file shortcuts.cpp.
References ConstBegin(), CReadBlastApp::less_pair(), NON_CONST_ITERATE, and printed_range().
Referenced by CReadBlastApp::printOverlapReport().
ESerialDataFormat s_GetFormat | ( | const string & | name | ) |
Definition at line 337 of file bss_info.cpp.
References eSerial_AsnBinary, eSerial_AsnText, eSerial_Xml, and THROW1_TRACE.
Referenced by CReadBlastApp::Run().
USING_SCOPE | ( | ncbi | ) |
USING_SCOPE | ( | objects | ) |