1 #ifndef FORMATGUESS__HPP
2 #define FORMATGUESS__HPP
41 class CFormatGuessHints;
71 eFlatFileSequence = 13,
72 eFiveColFeatureTable = 14,
119 ePeptideMapping = 60,
126 eFlatFileGenbank = 65,
128 eFlatFileUniProt = 67,
185 void RemoveFormat(TFormat fmt);
190 bool IsEmpty(
void)
const;
192 bool IsPreferred(TFormat fmt)
const;
194 bool IsDisabled(TFormat fmt)
const;
197 typedef bitset<CFormatGuess::eFormat_max>
THints;
271 bool EnsureTestBuffer();
273 bool EnsureSplitLines();
277 bool TestFormatRepeatMasker(EMode);
278 bool TestFormatPhrapAce(EMode);
279 bool TestFormatGtf(EMode);
280 bool TestFormatGvf(EMode);
281 bool TestFormatGff3(EMode);
282 bool TestFormatGff2(EMode);
283 bool TestFormatGlimmer3(EMode);
284 bool TestFormatAgp(EMode);
285 bool TestFormatNewick(EMode);
286 bool TestFormatXml(EMode);
287 bool TestFormatAlignment(EMode);
288 bool TestFormatCLUSTAL(
void);
289 bool TestFormatBinaryAsn(EMode);
290 bool TestFormatDistanceMatrix(EMode);
291 bool TestFormatTaxplot(EMode);
292 bool TestFormatFlatFileSequence(EMode);
293 bool TestFormatFiveColFeatureTable(EMode);
294 bool TestFormatTable(EMode);
295 bool TestFormatFasta(EMode);
296 bool TestFormatTextAsn(EMode);
297 bool TestFormatSnpMarkers(EMode);
298 bool TestFormatBed(EMode);
299 bool TestFormatBed15(EMode);
300 bool TestFormatWiggle(EMode);
301 bool TestFormatHgvs(EMode);
302 bool TestFormatZip(EMode);
303 bool TestFormatGZip(EMode);
304 bool TestFormatZstd(EMode);
305 bool TestFormatBZip2(EMode);
306 bool TestFormatLzo(EMode);
307 bool TestFormatSra(EMode);
308 bool TestFormatBam(EMode);
309 bool TestFormatVcf(EMode);
310 bool TestFormatAugustus(EMode);
311 bool TestFormatJson(EMode);
312 bool TestFormatPsl(EMode);
314 bool TestFormatFlatFileGenbank(EMode);
315 bool TestFormatFlatFileEna(EMode);
316 bool TestFormatFlatFileUniProt(EMode);
318 bool IsInputRepeatMaskerWithoutHeader();
319 bool IsInputRepeatMaskerWithHeader();
321 static bool IsLineFlatFileSequence(
const std::string&);
333 static bool IsAsnComment(
const vector<string>&);
335 static bool IsLinePsl(
const std::string&,
bool ignoreFirstColumn);
344 bool x_TestTableDelimiter(
const string& delims);
347 bool x_CheckJsonStart(
const string& testString)
const;
350 void x_StripJsonStrings(
string& testString)
const;
356 void x_FindJsonStringLimits(
const string& testString, list<size_t>&
limits)
const;
359 bool x_CheckStripJsonPunctuation(
string& testString)
const;
363 size_t x_StripJsonPunctuation(
string& testString)
const;
366 void x_StripJsonKeywords(
string& testString)
const;
368 bool x_CheckStripJsonNumbers(
string& testString)
const;
370 bool x_IsTruncatedJsonNumber(
const string& testString)
const;
373 bool x_IsTruncatedJsonKeyword(
const string& testString)
const;
375 bool x_IsNumber(
const string& testString)
const;
378 bool x_IsBlankOrNumbers(
const string& testString)
const;
380 bool x_TryProcessCLUSTALSeqData(
const string& line,
string&
id,
size_t& seg_length)
const;
381 bool x_LooksLikeCLUSTALConservedInfo(
const string& line)
const;
414 m_Preferred.reset(fmt);
422 m_Disabled = ~m_Preferred;
428 m_Disabled.reset(fmt);
429 m_Preferred.reset(fmt);
442 return m_Preferred.count() == 0 && m_Disabled.count() == 0;
447 return m_Preferred.test(fmt);
452 return m_Disabled.test(fmt);
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.
static bool IsSupportedFormat(CFormatGuess::EFormat format)
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...