FormatProteinId(
string&
str,
const CSeq_id& seq_id,
const string& prot_id)
const override;
104 voidFormatTranscriptId(
string&
str,
const CSeq_id& seq_id,
const string& nuc_id)
const override;
105 voidFormatNucSearch(ostream& os,
const string&
id)
const override;
106 voidFormatNucId(
string&
str,
const CSeq_id& seq_id,
TIntIdgi,
const string& acc_id)
const override;
107 voidFormatTaxid(
string&
str,
const TTaxIdtaxid,
const string& taxname)
const override;
108 voidFormatLocation(
string&
str,
const CSeq_loc& loc,
TIntIdgi,
const string& visible_text)
const override;
109 voidFormatModelEvidence(
string&
str,
const SModelEvidance& me)
const override;
110 voidFormatTranscript(
string&
str,
const string& name)
const override;
111 voidFormatGeneralId(ostream& os,
const string&
id)
const override;
112 voidFormatGapLink(ostream& os,
TSeqPosgap_size,
const string&
id,
boolis_prot)
const override;
113 voidFormatUniProtId(
string&
str,
const string& prot_id)
const override;
154fShowContigFeatures = 1 << 1,
155fShowContigSources = 1 << 2,
156fShowFarTranslations = 1 << 3,
157fTranslateIfNoProduct = 1 << 4,
158fAlwaysTranslateCDS = 1 << 5,
159fOnlyNearFeatures = 1 << 6,
160fFavorFarFeatures = 1 << 7,
161fCopyCDSFromCDNA = 1 << 8,
162fCopyGeneToCDNA = 1 << 9,
163fShowContigInMaster = 1 << 10,
164fHideImpFeatures = 1 << 11,
165fHideRemoteImpFeatures = 1 << 12,
166fHideSNPFeatures = 1 << 13,
167fHideExonFeatures = 1 << 14,
168fHideIntronFeatures = 1 << 15,
169fHideMiscFeatures = 1 << 16,
170fHideCDSProdFeatures = 1 << 17,
171fHideCDDFeatures = 1 << 18,
172fShowTranscript = 1 << 19,
173fShowPeptides = 1 << 20,
174fHideGeneRIFs = 1 << 21,
175fOnlyGeneRIFs = 1 << 22,
176fLatestGeneRIFs = 1 << 23,
177fShowContigAndSeq = 1 << 24,
178fHideSourceFeatures = 1 << 25,
179fShowFtableRefs = 1 << 26,
180fOldFeaturesOrder = 1 << 27,
181fHideGapFeatures = 1 << 28,
182fNeverTranslateCDS = 1 << 29,
183fShowSeqSpans = 1 << 30
190fLongLocusNames = 1 << 2,
191fExpandGaps = 1 << 3,
192fShowSNPFeatures = 1 << 6,
193fShowCDDFeatures = 1 << 7,
194fShowDebugTiming = 1 << 8,
195fFasterReleaseSets = 1 << 9,
196fDisableAnnotRefs = 1 << 10,
197fUseSeqEntryIndexer = 1 << 11,
198fUseAutoDef = 1 << 12,
199fIgnoreExistingTitle = 1 << 13,
200fGeneRNACDSFeatures = 1 << 14,
201fShowFtablePeptides = 1 << 15,
202fDisableReferenceCache = 1 << 16,
203fShowDeflineModifiers = 1 << 17,
204fDoNotUseAutoDef = 1 << 18,
205fOldTpaDisplay = 1 << 19,
206fDisableDefaultIndex = 1 << 20,
207fGeoLocNameCountry = 1 << 21,
208fLeavePrefixSuffix = 1 << 22
213fViewNucleotides = 0x1,
215fViewAll = (fViewNucleotides | fViewProteins),
221ePolicy_Adaptive = 0,
222ePolicy_Internal = 1,
223ePolicy_External = 2,
224ePolicy_Exhaustive = 3,
233fGenbankBlocks_All = (~0u),
234fGenbankBlocks_None = 0,
243fGenbankBlocks_Head = (1u << 0),
244fGenbankBlocks_Locus = (1u << 1),
245fGenbankBlocks_Defline = (1u << 2),
246fGenbankBlocks_Accession = (1u << 3),
247fGenbankBlocks_Version = (1u << 4),
248fGenbankBlocks_Project = (1u << 5),
249fGenbankBlocks_Dbsource = (1u << 6),
250fGenbankBlocks_Keywords = (1u << 7),
251fGenbankBlocks_Segment = (1u << 8),
252fGenbankBlocks_Source = (1u << 9),
253fGenbankBlocks_Reference = (1u << 10),
254fGenbankBlocks_Comment = (1u << 11),
255fGenbankBlocks_Primary = (1u << 12),
256fGenbankBlocks_Featheader = (1u << 13),
257fGenbankBlocks_Sourcefeat = (1u << 14),
258fGenbankBlocks_FeatAndGap = (1u << 15),
259fGenbankBlocks_Basecount = (1u << 16),
260fGenbankBlocks_Origin = (1u << 17),
261fGenbankBlocks_Sequence = (1u << 18),
262fGenbankBlocks_Contig = (1u << 19),
263fGenbankBlocks_Wgs = (1u << 20),
264fGenbankBlocks_Tsa = (1u << 21),
265fGenbankBlocks_Slash = (1u << 22),
266fGenbankBlocks_Cache = (1u << 23)
288eAction_HaltFlatfileGeneration
303 virtualEAction notify(
string& block_text,
306 virtualEAction notify(
string& block_text,
309 virtualEAction notify(
string& block_text,
312 virtualEAction notify(
string& block_text,
315 virtualEAction notify(
string& block_text,
318 virtualEAction notify(
string& block_text,
321 virtualEAction notify(
string& block_text,
324 virtualEAction notify(
string& block_text,
327 virtualEAction notify(
string& block_text,
330 virtualEAction notify(
string& block_text,
333 virtualEAction notify(
string& block_text,
336 virtualEAction notify(
string& block_text,
339 virtualEAction notify(
string& block_text,
342 virtualEAction notify(
string& block_text,
345 virtualEAction notify(
string& block_text,
348 virtualEAction notify(
string& block_text,
351 virtualEAction notify(
string& block_text,
354 virtualEAction notify(
string& block_text,
357 virtualEAction notify(
string& block_text,
360 virtualEAction notify(
string& block_text,
363 virtualEAction notify(
string& block_text,
366 virtualEAction notify(
string& block_text,
369 virtualEAction notify(
string& block_text,
372 virtualEAction notify(
string& block_text,
375 virtualEAction notify(
string& block_text,
378 virtualEAction notify(
string& block_text,
397TMode
mode= eMode_GBench,
398TStyle style = eStyle_Normal,
400TView view = fViewNucleotides,
401TPolicy policy = ePolicy_Adaptive,
409m_html_formatter = html_fmt;
413 return*m_html_formatter;
425 bool IsFormatAGP(
void)
const{
returnm_Format == eFormat_AGP; }
445 bool IsModeDump(
void)
const{
returnm_Mode == eMode_Dump; }
470 bool IsViewNuc(
void)
const{
return(m_View & fViewNucleotides) != 0; }
471 bool IsViewProt(
void)
const{
return(m_View & fViewProteins) != 0; }
472 bool IsViewAll(
void)
const{
returnIsViewNuc() && IsViewProt(); }
473 bool IsViewFirst(
void)
const{
return(m_View & fViewFirst) != 0; }
478m_View = (m_View & ~fViewAll) | fViewNucleotides;
482m_View = (m_View & ~fViewAll) | fViewProteins;
491m_View |= fViewFirst;
493m_View &= ~fViewFirst;
504 bool IsPolicyFtp(
void)
const{
returnm_Policy == ePolicy_Ftp; }
505 bool IsPolicyWeb(
void)
const{
returnm_Policy == ePolicy_Web; }
521 boolDoHTML (
void)
const;
522 boolHideImpFeatures (
void)
const;
523 boolHideSNPFeatures (
void)
const;
524 boolHideExonFeatures (
void)
const;
525 boolHideIntronFeatures (
void)
const;
526 boolHideMiscFeatures (
void)
const;
527 boolHideRemoteImpFeatures (
void)
const;
528 boolHideGeneRIFs (
void)
const;
529 boolOnlyGeneRIFs (
void)
const;
530 boolHideCDSProdFeatures (
void)
const;
531 boolHideCDDFeatures (
void)
const;
532 boolLatestGeneRIFs (
void)
const;
533 boolShowContigFeatures (
void)
const;
534 boolShowContigSources (
void)
const;
535 boolShowContigAndSeq (
void)
const;
536 boolCopyGeneToCDNA (
void)
const;
537 boolShowContigInMaster (
void)
const;
538 boolCopyCDSFromCDNA (
void)
const;
539 boolHideSourceFeatures (
void)
const;
540 boolAlwaysTranslateCDS (
void)
const;
541 boolOnlyNearFeatures (
void)
const;
542 boolFavorFarFeatures (
void)
const;
543 boolShowFarTranslations (
void)
const;
544 boolTranslateIfNoProduct (
void)
const;
545 boolShowTranscript (
void)
const;
546 boolShowPeptides (
void)
const;
547 boolShowFtableRefs (
void)
const;
548 boolOldFeaturesOrder (
void)
const;
549 boolHideGapFeatures (
void)
const;
550 boolNeverTranslateCDS (
void)
const;
551 boolShowSeqSpans (
void)
const;
553 boolSuppressLocalId (
void)
const;
554 boolValidateFeatures (
void)
const;
555 boolIgnorePatPubs (
void)
const;
556 boolDropShortAA (
void)
const;
557 boolAvoidLocusColl (
void)
const;
558 boolIupacaaOnly (
void)
const;
559 boolDropBadCitGens (
void)
const;
560 boolNoAffilOnUnpub (
void)
const;
561 boolDropIllegalQuals (
void)
const;
562 boolCheckQualSyntax (
void)
const;
563 boolNeedRequiredQuals (
void)
const;
564 boolNeedOrganismQual (
void)
const;
565 boolNeedAtLeastOneRef (
void)
const;
566 boolCitArtIsoJta (
void)
const;
567 boolDropBadDbxref (
void)
const;
568 boolUseEmblMolType (
void)
const;
569 boolHideBankItComment (
void)
const;
570 boolCheckCDSProductId (
void)
const;
571 boolFrequencyToNote (
void)
const;
572 boolSrcQualsToNote (
void)
const;
573 boolHideEmptySource (
void)
const;
574 boolGoQualsToNote (
void)
const;
575 boolSelenocysteineToNote(
void)
const;
576 boolForGBRelease (
void)
const;
577 boolHideUnclassPartial (
void)
const;
578 boolCodonRecognizedToNote(
void)
const;
579 boolGoQualsEachMerge (
void)
const;
580 boolShowOutOfBoundsFeats(
void)
const;
581 boolHideSpecificGeneMaps(
void)
const;
620 boolHideProteinID (
void)
const;
621 boolHideGI (
void)
const;
622 boolLongLocusNames (
void)
const;
623 boolExpandGaps (
void)
const;
624 boolShowSNPFeatures (
void)
const;
625 boolShowCDDFeatures (
void)
const;
626 boolShowDebugTiming (
void)
const;
627 boolFasterReleaseSets (
void)
const;
628 boolDisableAnnotRefs (
void)
const;
629 boolUseSeqEntryIndexer (
void)
const;
630 boolUseAutoDef (
void)
const;
631 boolIgnoreExistingTitle (
void)
const;
632 boolGeneRNACDSFeatures (
void)
const;
633 boolShowFtablePeptides (
void)
const;
634 boolDisableReferenceCache (
void)
const;
635 boolShowDeflineModifiers (
void)
const;
636 boolDoNotUseAutoDef (
void)
const;
637 boolOldTpaDisplay (
void)
const;
638 boolDisableDefaultIndex (
void)
const;
639 boolGeoLocNameCountry (
void)
const;
640 boolLeavePrefixSuffix (
void)
const;
667 voidSetRefSeqConventions(
void);
682m_fGenbankBlocks = genbank_blocks;
688 returnm_fGenbankBlocks & fTGenbankBlocksMask;
694m_fGenbankBlocks |= (fTGenbankBlocksMask);
701m_fGenbankBlocks &= (~fTGenbankBlocksMask);
705 staticFGenbankBlocks StringToGenbankBlock(
const string&
str);
708 static constvector<string> & GetAllGenbankStrings(
void);
712 returnm_GenbankBlockCallback; }
714m_GenbankBlockCallback = pGenbankBlockCallback;
718 returnm_pCanceledCallback;
721m_pCanceledCallback = pCallback;
733 if( m_pCanceledCallback && m_pCanceledCallback->IsCanceled() ) {
741 voidFromArguments(
const CArgs& args);
744 static const size_tSMARTFEATLIMIT = 1000000;
748 static const boolsm_ModeFlags[4][32];
750 voidx_ThrowHaltNow(
void)
const;
776 #define FLAG_ARG_GET(x) \ 778 bool CFlatFileConfig::x(void) const \ 780 return (m_Flags & f##x) != 0; \ 783 #define FLAG_ARG_SET(x) inline \ 784 CFlatFileConfig& CFlatFileConfig::Set##x(bool val) \ 794 #define FLAG_ARG_IMP(x) \ 831 #define CUSTOM_ARG_GET(x) \ 833 bool CFlatFileConfig::x(void) const \ 835 return (m_Custom & f##x) != 0; \ 838 #define CUSTOM_ARG_SET(x) inline \ 839 CFlatFileConfig& CFlatFileConfig::Set##x(bool val) \ 849 #define CUSTOM_ARG_IMP(x) \ 879 #undef CUSTOM_ARG_IMP 880 #undef CUSTOM_ARG_GET 881 #undef CUSTOM_ARG_SET@ eAction_Default
the normal case
@ eAction_Skip
skip this block (i.e. don't print it)
virtual EAction unified_notify(string &, const CBioseqContext &, const IFlatItem &, FGenbankBlocks)
virtual ~CGenbankBlockCallback(void)
bool IsFormatDDBJ(void) const
void SetFormatGenbank(void)
void SetFlags(const TFlags &flags)
const TCustom & GetCustom(void) const
void SetSingleAccession(const string &accn)
void SetStyleMaster(void)
void SkipGenbankBlock(FGenbankBlocks fTGenbankBlocksMask)
bool IsModeGBench(void) const
const TFormat & GetFormat(void) const
const TStyle & GetStyle(void) const
const IHTMLFormatter & GetHTMLFormatter() const
bool IsPolicyInternal(void) const
bool IsFormatGBSeq(void) const
const ICanceled * GetCanceledCallback(void) const
bool IsStyleSegment(void) const
bool IsPolicyExhaustive(void) const
bool IsPolicyExternal(void) const
void SetViewFirst(bool enabled)
void SetRefSeqConventions(void)
void SetPolicyGenomes(void)
void SetFeatDepth(const int featDepth)
const TMode & GetMode(void) const
void SetFormat(const TFormat &format)
void SetHTMLFormatter(CRef< IHTMLFormatter > html_fmt)
void BasicCleanup(bool clean)
bool IsPolicyAdaptive(void) const
void SetStyleNormal(void)
void SetCustom(const TCustom &custom)
void SetGapDepth(const int gapDepth)
void ShowGenbankBlock(FGenbankBlocks fTGenbankBlocksMask)
void SetGenbankBlocks(const TGenbankBlocks &genbank_blocks)
bool IsPolicyFtp(void) const
bool IsPolicyWeb(void) const
void SetPolicyInternal(void)
int GetGapDepth(void) const
void SetPolicyExternal(void)
bool IsViewNuc(void) const
bool IsViewFirst(void) const
bool IsStyleMaster(void) const
const ICanceled * m_pCanceledCallback
void SetPolicy(const TPolicy &Policy)
bool IsFormatINSDSeq(void) const
bool IsPolicyGenomes(void) const
bool IsFormatGenbank(void) const
void SetMode(const TMode &mode)
bool IsFormatFTable(void) const
const TPolicy & GetPolicy(void) const
void SetStyle(const TStyle &style)
int GetFeatDepth(void) const
void SetFormatINSDSeq(void)
void SetCanceledCallback(ICanceled *pCallback)
void SetGenbankBlockCallback(CGenbankBlockCallback *pGenbankBlockCallback)
TGenbankBlocks m_fGenbankBlocks
CRef< CGenbankBlockCallback > GetGenbankBlockCallback(void) const
void SetView(const TView &view)
bool IsViewAll(void) const
const string & GetSingleAccession(void) const
bool IsViewProt(void) const
void SetPolicyExhaustive(void)
CRef< CGenbankBlockCallback > m_GenbankBlockCallback
void SetStyleContig(void)
CRef< IHTMLFormatter > m_html_formatter
void ThrowIfCanceled(void) const
This throws a CFlatException if flatfile generation cancellation has been requested via ICanceled.
unsigned int TGenbankBlocks
const TFlags & GetFlags(void) const
bool IsModeRelease(void) const
bool BasicCleanup(void) const
bool IsFormatEMBL(void) const
bool IsModeDump(void) const
bool IsModeEntrez(void) const
bool IsFormatLite(void) const
bool IsShownGenbankBlock(FGenbankBlocks fTGenbankBlocksMask) const
void SetPolicyAdaptive(void)
const TView & GetView(void) const
bool IsStyleNormal(void) const
bool IsStyleContig(void) const
bool IsFormatAGP(void) const
void SetModeRelease(void)
void SetStyleSegment(void)
void SetFormatFTable(void)
void SetFormatGBSeq(void)
~CHTMLEmptyFormatter() override
Interface for testing cancellation request in a long lasting operation.
virtual void FormatProteinId(string &str, const CSeq_id &seq_id, const string &prot_id) const =0
virtual void FormatModelEvidence(string &str, const SModelEvidance &me) const =0
virtual void FormatNucId(string &str, const CSeq_id &seq_id, TIntId gi, const string &acc_id) const =0
virtual void FormatGeneralId(ostream &os, const string &id) const =0
virtual void FormatTranscriptId(string &str, const CSeq_id &seq_id, const string &nuc_id) const =0
virtual void FormatLocation(string &str, const CSeq_loc &loc, TIntId gi, const string &visible_text) const =0
virtual void FormatUniProtId(string &str, const string &prot_id) const =0
virtual void FormatTranscript(string &str, const string &name) const =0
virtual void FormatNucSearch(ostream &os, const string &id) const =0
virtual void FormatGapLink(ostream &os, TSeqPos gap_size, const string &id, bool is_prot) const =0
virtual void FormatTaxid(string &str, const TTaxId taxid, const string &taxname) const =0
virtual ~IHTMLFormatter()
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define CUSTOM_ARG_IMP(x)
static const char * str(char *buf, int n)
unsigned int TSeqPos
Type for sequence locations and lengths.
SStrictId_Tax::TId TTaxId
Taxon id type.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_FORMAT_EXPORT
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4