///////////////////////////////////////////////////////////////////////////// // Init test bool CCSRATestApp::TestApp_Args(CArgDescriptions& args) { // Specify USAGE context args.SetUsageContext(GetArguments().GetProgramBasename(), "test_csra_loader_mt"); args.AddDefaultKey("accs", "Accessions", "comma separated SRA accession list", CArgDescriptions::eString, "SRR000010"); //"SRR000010,SRR389414,SRR494733,SRR505887,SRR035417"); args.AddOptionalKey("accs-file", "Accessions", "file with SRA accession list", CArgDescriptions::eInputFile); args.AddDefaultKey("iter-count", "IterationCount", "Number of read iterations", CArgDescriptions::eInteger, "10"); args.AddDefaultKey("iter-size", "IterationSize", "Number of sequential sequences in one iteration", CArgDescriptions::eInteger, "10"); args.AddFlag("verbose", "Print info about progress"); args.AddFlag("preload", "Try to preload libraries in main thread"); args.AddFlag("full-seq", "Load full sequence"); args.AddFlag("shared-scope", "Use shared scope in all threads"); args.AddFlag("reset-history", "Reset scope's history after each iteration"); args.AddFlag("reference-sequences", "Test reference sequences retrieval"); return true; }
void Cn3DNoWin::Init(void) { // turn off some Mesa-related env vars, irrelevant to off-screen rendering and not platform-indepdendent setenv("MESA_NO_3DNOW", "true", 1); setenv("MESA_NO_SSE", "true", 1); // setup the diagnostic stream SetDiagHandler(DisplayDiagnostic, NULL, NULL); SetDiagPostLevel(eDiag_Info); // report all messages SetDiagTrace(eDT_Default); // trace messages only when DIAG_TRACE env. var. is set UnsetDiagTraceFlag(eDPF_Location); #ifdef _DEBUG SetDiagPostFlag(eDPF_File); SetDiagPostFlag(eDPF_Line); #else UnsetDiagTraceFlag(eDPF_File); UnsetDiagTraceFlag(eDPF_Line); #endif // C++ object verification CSerialObject::SetVerifyDataGlobal(eSerialVerifyData_Always); CObjectIStream::SetVerifyDataGlobal(eSerialVerifyData_Always); CObjectOStream::SetVerifyDataGlobal(eSerialVerifyData_Always); // set up argument processing CArgDescriptions *argDescr = new CArgDescriptions(false); argDescr->SetUsageContext(GetArguments().GetProgramName(), "No-Window Cn3D"); // get data from file or network argDescr->AddOptionalKey("f", "file", "Ncbi-mime-asn1, Biostruc, or Cdd ASN.1 data file", argDescr->eString); argDescr->AddOptionalKey("d", "id", "MMDB or PDB ID", argDescr->eString); // model, for network or Biostruc load argDescr->AddOptionalKey("o", "model", "Model type to use for coordinates", argDescr->eString); argDescr->SetConstraint("o", (new CArgAllow_Strings)->Allow("alpha")->Allow("single")->Allow("PDB")); // controls for output argDescr->AddKey("p", "pngfile", "Output PNG file name", argDescr->eString); argDescr->AddKey("w", "width", "Output width in pixels", argDescr->eInteger); argDescr->AddKey("h", "height", "Output height in pixels", argDescr->eInteger); argDescr->AddFlag("i", "Create interlaced PNG"); // use favorite style argDescr->AddOptionalKey("s", "style", "Favorite style", argDescr->eString); SetupArgDescriptions(argDescr); }