CFormatGuessHints;
71eFlatFileSequence = 13,
72eFiveColFeatureTable = 14,
119ePeptideMapping = 60,
126eFlatFileGenbank = 65,
128eFlatFileUniProt = 67,
185 voidRemoveFormat(TFormat fmt);
190 boolIsEmpty(
void)
const;
192 boolIsPreferred(TFormat fmt)
const;
194 boolIsDisabled(TFormat fmt)
const;
197 typedefbitset<CFormatGuess::eFormat_max>
THints;
271 boolEnsureTestBuffer();
273 boolEnsureSplitLines();
277 boolTestFormatRepeatMasker(EMode);
278 boolTestFormatPhrapAce(EMode);
279 boolTestFormatGtf(EMode);
280 boolTestFormatGvf(EMode);
281 boolTestFormatGff3(EMode);
282 boolTestFormatGff2(EMode);
283 boolTestFormatGlimmer3(EMode);
284 boolTestFormatAgp(EMode);
285 boolTestFormatNewick(EMode);
286 boolTestFormatXml(EMode);
287 boolTestFormatAlignment(EMode);
288 boolTestFormatCLUSTAL(
void);
289 boolTestFormatBinaryAsn(EMode);
290 boolTestFormatDistanceMatrix(EMode);
291 boolTestFormatTaxplot(EMode);
292 boolTestFormatFlatFileSequence(EMode);
293 boolTestFormatFiveColFeatureTable(EMode);
294 boolTestFormatTable(EMode);
295 boolTestFormatFasta(EMode);
296 boolTestFormatTextAsn(EMode);
297 boolTestFormatSnpMarkers(EMode);
298 boolTestFormatBed(EMode);
299 boolTestFormatBed15(EMode);
300 boolTestFormatWiggle(EMode);
301 boolTestFormatHgvs(EMode);
302 boolTestFormatZip(EMode);
303 boolTestFormatGZip(EMode);
304 boolTestFormatZstd(EMode);
305 boolTestFormatBZip2(EMode);
306 boolTestFormatLzo(EMode);
307 boolTestFormatSra(EMode);
308 boolTestFormatBam(EMode);
309 boolTestFormatVcf(EMode);
310 boolTestFormatAugustus(EMode);
311 boolTestFormatJson(EMode);
312 boolTestFormatPsl(EMode);
314 boolTestFormatFlatFileGenbank(EMode);
315 boolTestFormatFlatFileEna(EMode);
316 boolTestFormatFlatFileUniProt(EMode);
318 boolIsInputRepeatMaskerWithoutHeader();
319 boolIsInputRepeatMaskerWithHeader();
321 static boolIsLineFlatFileSequence(
const std::string&);
333 static boolIsAsnComment(
constvector<string>&);
335 static boolIsLinePsl(
const std::string&,
boolignoreFirstColumn);
344 boolx_TestTableDelimiter(
const string& delims);
347 boolx_CheckJsonStart(
const string& testString)
const;
350 voidx_StripJsonStrings(
string& testString)
const;
356 voidx_FindJsonStringLimits(
const string& testString, list<size_t>&
limits)
const;
359 boolx_CheckStripJsonPunctuation(
string& testString)
const;
363 size_tx_StripJsonPunctuation(
string& testString)
const;
366 voidx_StripJsonKeywords(
string& testString)
const;
368 boolx_CheckStripJsonNumbers(
string& testString)
const;
370 boolx_IsTruncatedJsonNumber(
const string& testString)
const;
373 boolx_IsTruncatedJsonKeyword(
const string& testString)
const;
375 boolx_IsNumber(
const string& testString)
const;
378 boolx_IsBlankOrNumbers(
const string& testString)
const;
380 boolx_TryProcessCLUSTALSeqData(
const string& line,
string&
id,
size_t& seg_length)
const;
381 boolx_LooksLikeCLUSTALConservedInfo(
const string& line)
const;
414m_Preferred.reset(fmt);
422m_Disabled = ~m_Preferred;
428m_Disabled.reset(fmt);
429m_Preferred.reset(fmt);
442 returnm_Preferred.count() == 0 && m_Disabled.count() == 0;
447 returnm_Preferred.test(fmt);
452 returnm_Disabled.test(fmt);
Hints for guessing formats.
CFormatHints & AddDisabledFormat(TFormat fmt)
Mark the format as disabled.
void RemoveFormat(TFormat fmt)
Remove format hint.
bitset< CFormatGuess::eFormat_max > THints
bool IsEmpty(void) const
Check if there are any hints are set at all.
CFormatHints & Reset(void)
Remove all hints.
CFormatGuess::EFormat TFormat
bool IsPreferred(TFormat fmt) const
Check if the format is listed as preferred.
CFormatHints & AddPreferredFormat(TFormat fmt)
Mark the format as preferred.
CFormatHints & DisableAllNonpreferred(void)
Disable all formats not marked as preferred.
bool IsDisabled(TFormat fmt) const
Check if the format is listed as disabled.
Class implements different ad-hoc unreliable file format identifications.
unsigned int m_iStatsCountBraces
CFormatHints & GetFormatHints(void)
Get format hints.
unsigned int m_iStatsCountData
size_t x_FindNextJsonStringStop(const string &input, const size_t from_pos) const
bool IsEnabled(EFormat format) const
Check whether testing is enabled for given format.
EFormat
The formats are checked in the same order as declared here.
unsigned int m_iStatsCountAaChars
streamsize m_iTestBufferSize
unsigned int m_iStatsCountAlNumChars
std::list< std::string > m_TestLines
streamsize m_iTestDataSize
unsigned int m_iStatsCountDnaChars
@ eThrowOnBadSource
Throw an exception if the data source (stream, file) can't be read.
@ eST_Lax
Implement historic behavior, risking false positives.
@ eST_Default
Be relatively strict, but still allow for typos.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
static const TDS_WORD limits[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
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
static bool IsSupportedFormat(CFormatGuess::EFormat format)
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
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