00001 #ifndef ALGO_BLAST_API___BLAST_NUCL_OPTIONS__HPP
00002 #define ALGO_BLAST_API___BLAST_NUCL_OPTIONS__HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include <algo/blast/api/blast_options_handle.hpp>
00037
00038
00039
00040
00041
00042
00043 BEGIN_NCBI_SCOPE
00044 BEGIN_SCOPE(blast)
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 class CBlastNucleotideOptionsHandle :
00059 public CBlastOptionsHandle
00060 {
00061 public:
00062
00063
00064 CBlastNucleotideOptionsHandle(EAPILocality locality = CBlastOptions::eLocal);
00065
00066
00067 virtual void SetDefaults();
00068
00069
00070
00071 ELookupTableType GetLookupTableType() const { return m_Opts->GetLookupTableType(); }
00072
00073
00074 void SetLookupTableType(ELookupTableType type)
00075 {
00076 m_Opts->SetLookupTableType(type);
00077 }
00078
00079
00080 int GetWordSize() const { return m_Opts->GetWordSize(); }
00081
00082
00083 void SetWordSize(int ws)
00084 {
00085 m_Opts->SetWordSize(ws);
00086 }
00087
00088
00089
00090 objects::ENa_strand GetStrandOption() const {
00091 return m_Opts->GetStrandOption();
00092 }
00093
00094
00095 void SetStrandOption(objects::ENa_strand strand) {
00096 m_Opts->SetStrandOption(strand);
00097 }
00098
00099
00100 bool GetDustFiltering() const { return m_Opts->GetDustFiltering(); }
00101
00102
00103 void SetDustFiltering(bool val) { m_Opts->SetDustFiltering(val); }
00104
00105
00106 int GetDustFilteringLevel() const { return m_Opts->GetDustFilteringLevel(); }
00107
00108
00109 void SetDustFilteringLevel(int level) { m_Opts->SetDustFilteringLevel(level); }
00110
00111
00112 int GetDustFilteringWindow() const { return m_Opts->GetDustFilteringWindow(); }
00113
00114
00115 void SetDustFilteringWindow(int window) { m_Opts->SetDustFilteringWindow(window); }
00116
00117
00118 int GetDustFilteringLinker() const { return m_Opts->GetDustFilteringLinker(); }
00119
00120
00121 void SetDustFilteringLinker(int linker) { m_Opts->SetDustFilteringLinker(linker); }
00122
00123
00124 bool GetRepeatFiltering() const { return m_Opts->GetRepeatFiltering(); }
00125
00126
00127 void SetRepeatFiltering(bool val) { m_Opts->SetRepeatFiltering(val); }
00128
00129
00130 const char* GetRepeatFilteringDB() const { return m_Opts->GetRepeatFilteringDB(); }
00131
00132
00133 void SetRepeatFilteringDB(const char* db) { m_Opts->SetRepeatFilteringDB(db); }
00134
00135
00136 int GetWindowMaskerTaxId() const { return m_Opts->GetWindowMaskerTaxId(); }
00137
00138
00139
00140 void SetWindowMaskerTaxId(int taxid) { m_Opts->SetWindowMaskerTaxId(taxid); }
00141
00142
00143 const char* GetWindowMaskerDatabase() const
00144 {
00145 return m_Opts->GetWindowMaskerDatabase();
00146 }
00147
00148
00149
00150 void SetWindowMaskerDatabase(const char* db)
00151 {
00152 m_Opts->SetWindowMaskerDatabase(db);
00153 }
00154
00155
00156
00157
00158 double GetXDropoff() const { return m_Opts->GetXDropoff(); }
00159
00160
00161 void SetXDropoff(double x) { m_Opts->SetXDropoff(x); }
00162
00163
00164
00165 EBlastPrelimGapExt GetGapExtnAlgorithm() const { return m_Opts->GetGapExtnAlgorithm(); }
00166
00167
00168
00169 void SetGapExtnAlgorithm(EBlastPrelimGapExt algo) {m_Opts->SetGapExtnAlgorithm(algo);}
00170
00171
00172 EBlastTbackExt GetGapTracebackAlgorithm() const { return m_Opts->GetGapTracebackAlgorithm(); }
00173
00174
00175
00176 void SetGapTracebackAlgorithm(EBlastTbackExt algo) {m_Opts->SetGapTracebackAlgorithm(algo); }
00177
00178
00179
00180 int GetMatchReward() const { return m_Opts->GetMatchReward(); }
00181
00182
00183 void SetMatchReward(int r) { m_Opts->SetMatchReward(r); }
00184
00185
00186 int GetMismatchPenalty() const { return m_Opts->GetMismatchPenalty(); }
00187
00188
00189 void SetMismatchPenalty(int p) { m_Opts->SetMismatchPenalty(p); }
00190
00191
00192 const char* GetMatrixName() const { return m_Opts->GetMatrixName(); }
00193
00194
00195 void SetMatrixName(const char* matrix) { m_Opts->SetMatrixName(matrix); }
00196
00197
00198 int GetGapOpeningCost() const { return m_Opts->GetGapOpeningCost(); }
00199
00200
00201 void SetGapOpeningCost(int g) { m_Opts->SetGapOpeningCost(g); }
00202
00203
00204 int GetGapExtensionCost() const { return m_Opts->GetGapExtensionCost(); }
00205
00206
00207 void SetGapExtensionCost(int e) { m_Opts->SetGapExtensionCost(e); }
00208
00209
00210 void SetTraditionalBlastnDefaults();
00211
00212 void SetTraditionalMegablastDefaults();
00213
00214 protected:
00215
00216 virtual void SetRemoteProgramAndService_Blast3()
00217 {
00218 m_Opts->SetRemoteProgramAndService_Blast3("blastn", "megablast");
00219 }
00220
00221
00222 virtual void SetLookupTableDefaults();
00223
00224 virtual void SetMBLookupTableDefaults();
00225
00226 virtual void SetQueryOptionDefaults();
00227
00228 virtual void SetInitialWordOptionsDefaults();
00229
00230 virtual void SetMBInitialWordOptionsDefaults();
00231
00232 virtual void SetGappedExtensionDefaults();
00233
00234 virtual void SetMBGappedExtensionDefaults();
00235
00236 virtual void SetScoringOptionsDefaults();
00237
00238 virtual void SetMBScoringOptionsDefaults();
00239
00240 virtual void SetHitSavingOptionsDefaults();
00241
00242 virtual void SetMBHitSavingOptionsDefaults();
00243
00244 virtual void SetEffectiveLengthsOptionsDefaults();
00245
00246 virtual void SetSubjectSequenceOptionsDefaults();
00247
00248 private:
00249
00250 CBlastNucleotideOptionsHandle(const CBlastNucleotideOptionsHandle& rhs);
00251
00252 CBlastNucleotideOptionsHandle& operator=(const CBlastNucleotideOptionsHandle& rhs);
00253 };
00254
00255 END_SCOPE(blast)
00256 END_NCBI_SCOPE
00257
00258
00259
00260
00261
00262 #endif
00263
00264