| 1 |
|
package jalview.hmmer; |
| 2 |
|
|
| 3 |
|
import jalview.bin.Cache; |
| 4 |
|
import jalview.datamodel.SequenceI; |
| 5 |
|
import jalview.gui.Preferences; |
| 6 |
|
import jalview.util.MessageManager; |
| 7 |
|
import jalview.viewmodel.AlignmentViewport; |
| 8 |
|
import jalview.ws.params.ArgumentI; |
| 9 |
|
import jalview.ws.params.ParamDatastoreI; |
| 10 |
|
import jalview.ws.params.WsParamSetI; |
| 11 |
|
import jalview.ws.params.simple.BooleanOption; |
| 12 |
|
import jalview.ws.params.simple.DoubleParameter; |
| 13 |
|
import jalview.ws.params.simple.FileParameter; |
| 14 |
|
import jalview.ws.params.simple.IntegerParameter; |
| 15 |
|
import jalview.ws.params.simple.LogarithmicParameter; |
| 16 |
|
import jalview.ws.params.simple.Option; |
| 17 |
|
import jalview.ws.params.simple.RadioChoiceParameter; |
| 18 |
|
import jalview.ws.params.simple.StringParameter; |
| 19 |
|
|
| 20 |
|
import java.io.File; |
| 21 |
|
import java.io.IOException; |
| 22 |
|
import java.util.ArrayList; |
| 23 |
|
import java.util.Arrays; |
| 24 |
|
import java.util.List; |
| 25 |
|
import java.util.Scanner; |
| 26 |
|
|
| |
|
| 0% |
Uncovered Elements: 143 (143) |
Complexity: 32 |
Complexity Density: 0.29 |
|
| 27 |
|
public final class HMMERParamStore implements ParamDatastoreI |
| 28 |
|
{ |
| 29 |
|
private static final String HMMBUILD = "hmmbuild"; |
| 30 |
|
|
| 31 |
|
private static final String HMMALIGN = "hmmalign"; |
| 32 |
|
|
| 33 |
|
private static final String HMMSEARCH = "hmmsearch"; |
| 34 |
|
|
| 35 |
|
private static final String JACKHMMER = "jackhmmer"; |
| 36 |
|
|
| 37 |
|
private String name; |
| 38 |
|
|
| 39 |
|
private List<WsParamSetI> presets = new ArrayList<>(); |
| 40 |
|
|
| 41 |
|
private AlignmentViewport viewport; |
| 42 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 43 |
0 |
private HMMERParamStore(String nam, AlignmentViewport av)... |
| 44 |
|
{ |
| 45 |
0 |
this.viewport = av; |
| 46 |
0 |
this.name = nam; |
| 47 |
|
} |
| 48 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 49 |
0 |
public static HMMERParamStore forBuild(AlignmentViewport viewport)... |
| 50 |
|
{ |
| 51 |
0 |
return new HMMERParamStore(HMMBUILD, viewport); |
| 52 |
|
} |
| 53 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
0 |
public static HMMERParamStore forAlign(AlignmentViewport viewport)... |
| 55 |
|
{ |
| 56 |
0 |
return new HMMERParamStore(HMMALIGN, viewport); |
| 57 |
|
} |
| 58 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
0 |
public static HMMERParamStore forSearch(AlignmentViewport viewport)... |
| 60 |
|
{ |
| 61 |
0 |
return new HMMERParamStore(HMMSEARCH, viewport); |
| 62 |
|
} |
| 63 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 64 |
0 |
public static HMMERParamStore forJackhmmer(AlignmentViewport viewport)... |
| 65 |
|
{ |
| 66 |
0 |
return new HMMERParamStore(JACKHMMER, viewport); |
| 67 |
|
} |
| 68 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 69 |
0 |
@Override... |
| 70 |
|
public List<WsParamSetI> getPresets() |
| 71 |
|
{ |
| 72 |
0 |
return presets; |
| 73 |
|
} |
| 74 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 75 |
0 |
@Override... |
| 76 |
|
public WsParamSetI getPreset(String nam) |
| 77 |
|
{ |
| 78 |
0 |
return null; |
| 79 |
|
} |
| 80 |
|
|
| |
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 5 |
Complexity Density: 0.33 |
|
| 81 |
0 |
@Override... |
| 82 |
|
public List<ArgumentI> getServiceParameters() |
| 83 |
|
{ |
| 84 |
0 |
List<ArgumentI> args = new ArrayList<>(); |
| 85 |
0 |
switch (name) |
| 86 |
|
{ |
| 87 |
0 |
case HMMSEARCH: |
| 88 |
0 |
getHMMSearchParams(args); |
| 89 |
0 |
break; |
| 90 |
0 |
case HMMALIGN: |
| 91 |
0 |
getHMMAlignParams(args); |
| 92 |
0 |
break; |
| 93 |
0 |
case HMMBUILD: |
| 94 |
0 |
getHMMBuildParams(args); |
| 95 |
0 |
break; |
| 96 |
0 |
case JACKHMMER: |
| 97 |
0 |
getJackhmmerParams(args); |
| 98 |
0 |
default: |
| 99 |
|
} |
| 100 |
|
|
| 101 |
0 |
return args; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
@param |
| 109 |
|
|
| |
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 1 |
Complexity Density: 0.05 |
|
| 110 |
0 |
private void getHMMSearchParams(List<ArgumentI> args)... |
| 111 |
|
{ |
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
0 |
args.add(new BooleanOption( |
| 116 |
|
MessageManager.getString(HMMSearch.AUTO_ALIGN_SEQS_KEY), |
| 117 |
|
MessageManager.getString("label.auto_align_seqs_desc"), false, |
| 118 |
|
false, false, null)); |
| 119 |
0 |
args.add(new BooleanOption( |
| 120 |
|
MessageManager.getString(HMMSearch.USE_ACCESSIONS_KEY), |
| 121 |
|
MessageManager.getString("label.use_accessions_desc"), false, |
| 122 |
|
false, true, null)); |
| 123 |
0 |
args.add(new BooleanOption( |
| 124 |
|
MessageManager.getString(HMMSearch.TRIM_TERMINI_KEY), |
| 125 |
|
MessageManager.getString("label.trim_termini_desc"), false, |
| 126 |
|
false, true, null)); |
| 127 |
0 |
args.add(new BooleanOption( |
| 128 |
|
MessageManager.getString(HMMSearch.RETURN_N_NEW_SEQ), |
| 129 |
|
MessageManager.getString("label.check_for_new_sequences_desc"), |
| 130 |
|
false, false, false, null)); |
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
0 |
addChoiceOfHmm(args); |
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
0 |
String thisAlignment = MessageManager |
| 140 |
|
.getString(HMMSearch.THIS_ALIGNMENT_KEY); |
| 141 |
0 |
String database = MessageManager.getString("label.database"); |
| 142 |
0 |
args.add(new FileParameter(database, "", false, "", "")); |
| 143 |
0 |
args.add(new IntegerParameter( |
| 144 |
|
MessageManager.getString(HMMSearch.NUMBER_OF_RESULTS_KEY), |
| 145 |
|
MessageManager.getString("label.number_of_results_desc"), true, |
| 146 |
|
100, 0, 100000)); |
| 147 |
0 |
args.add(new RadioChoiceParameter( |
| 148 |
|
MessageManager.getString(HMMSearch.REPORTING_CUTOFF_KEY), null, |
| 149 |
|
Arrays.asList(MessageManager.getString(HMMSearch.CUTOFF_EVALUE), |
| 150 |
|
MessageManager.getString(HMMSearch.CUTOFF_SCORE)), |
| 151 |
|
MessageManager.getString(HMMSearch.CUTOFF_EVALUE))); |
| 152 |
0 |
args.add(new LogarithmicParameter( |
| 153 |
|
MessageManager.getString(HMMSearch.REPORTING_SEQ_EVALUE_KEY), |
| 154 |
|
MessageManager.getString("label.reporting_seq_e_value_desc"), |
| 155 |
|
false, 1D, |
| 156 |
|
1E-100, 10D)); |
| 157 |
0 |
args.add(new LogarithmicParameter( |
| 158 |
|
MessageManager.getString(HMMSearch.REPORTING_DOM_EVALUE_KEY), |
| 159 |
|
MessageManager.getString("label.reporting_dom_e_value_desc"), |
| 160 |
|
false, 1D, |
| 161 |
|
1E-100, 10D)); |
| 162 |
0 |
args.add( |
| 163 |
|
new DoubleParameter( |
| 164 |
|
MessageManager |
| 165 |
|
.getString(HMMSearch.REPORTING_SEQ_SCORE_KEY), |
| 166 |
|
MessageManager.getString( |
| 167 |
|
"label.reporting_seq_score_desc"), |
| 168 |
|
false, |
| 169 |
|
0d, 0d, 1000d)); |
| 170 |
0 |
args.add( |
| 171 |
|
new DoubleParameter( |
| 172 |
|
MessageManager |
| 173 |
|
.getString(HMMSearch.REPORTING_DOM_SCORE_KEY), |
| 174 |
|
MessageManager.getString( |
| 175 |
|
"label.reporting_dom_score_desc"), |
| 176 |
|
false, |
| 177 |
|
0d, 0d, 1000d)); |
| 178 |
0 |
args.add(new RadioChoiceParameter( |
| 179 |
|
MessageManager.getString(HMMSearch.INCLUSION_THRESHOLD_KEY), |
| 180 |
|
null, |
| 181 |
|
Arrays.asList(MessageManager.getString(HMMSearch.CUTOFF_EVALUE), |
| 182 |
|
MessageManager.getString(HMMSearch.CUTOFF_SCORE)), |
| 183 |
|
MessageManager.getString(HMMSearch.CUTOFF_EVALUE))); |
| 184 |
0 |
args.add(new LogarithmicParameter( |
| 185 |
|
MessageManager.getString(HMMSearch.INCLUSION_SEQ_EVALUE_KEY), |
| 186 |
|
MessageManager.getString("label.inclusion_seq_e_value_desc"), |
| 187 |
|
false, 1D, |
| 188 |
|
1E-100, 10D)); |
| 189 |
0 |
args.add(new LogarithmicParameter( |
| 190 |
|
MessageManager.getString(HMMSearch.INCLUSION_DOM_EVALUE_KEY), |
| 191 |
|
MessageManager.getString("label.inclusion_dom_e_value_desc"), |
| 192 |
|
false, 1D, |
| 193 |
|
1E-100, 10D)); |
| 194 |
0 |
args.add(new DoubleParameter( |
| 195 |
|
MessageManager.getString(HMMSearch.INCLUSION_SEQ_SCORE_KEY), |
| 196 |
|
MessageManager.getString("label.inclusion_seq_score_desc"), |
| 197 |
|
false, 0d, 0d, |
| 198 |
|
1000d)); |
| 199 |
0 |
args.add(new DoubleParameter( |
| 200 |
|
MessageManager.getString(HMMSearch.INCLUSION_DOM_SCORE_KEY), |
| 201 |
|
MessageManager.getString("label.inclusion_dom_score_desc"), |
| 202 |
|
false, 0d, 0d, |
| 203 |
|
1000d)); |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
| 208 |
|
|
| 209 |
|
|
| 210 |
|
@param |
| 211 |
|
|
| |
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 1 |
Complexity Density: 0.07 |
|
| 212 |
0 |
private void getJackhmmerParams(List<ArgumentI> args)... |
| 213 |
|
{ |
| 214 |
|
|
| 215 |
|
|
| 216 |
|
|
| 217 |
|
|
| 218 |
0 |
addChoiceOfSequence(args); |
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 222 |
0 |
String database = MessageManager.getString("label.database"); |
| 223 |
0 |
args.add(new FileParameter(database, "", false, "", "")); |
| 224 |
0 |
args.add(new IntegerParameter( |
| 225 |
|
MessageManager.getString(HMMSearch.NUMBER_OF_ITERATIONS), |
| 226 |
|
MessageManager.getString("label.number_of_iterations_desc"), |
| 227 |
|
true, 5, 1, 20)); |
| 228 |
0 |
args.add(new RadioChoiceParameter( |
| 229 |
|
MessageManager.getString(JackHMMER.REPORTING_CUTOFF_KEY), null, |
| 230 |
|
Arrays.asList(MessageManager.getString(JackHMMER.CUTOFF_NONE), |
| 231 |
|
MessageManager.getString(JackHMMER.CUTOFF_EVALUE), |
| 232 |
|
MessageManager.getString(JackHMMER.CUTOFF_SCORE)), |
| 233 |
|
MessageManager.getString(JackHMMER.CUTOFF_EVALUE))); |
| 234 |
0 |
args.add(new LogarithmicParameter( |
| 235 |
|
MessageManager.getString(JackHMMER.REPORTING_SEQ_EVALUE_KEY), |
| 236 |
|
MessageManager.getString("label.reporting_seq_e_value_desc"), |
| 237 |
|
false, 1D, |
| 238 |
|
1E-38, 10D)); |
| 239 |
0 |
args.add(new LogarithmicParameter( |
| 240 |
|
MessageManager.getString(JackHMMER.REPORTING_DOM_EVALUE_KEY), |
| 241 |
|
MessageManager.getString( |
| 242 |
|
"label.reporting_dom_e_value_desc"), |
| 243 |
|
false, 1D, |
| 244 |
|
1E-38, 10D)); |
| 245 |
0 |
args.add(new DoubleParameter( |
| 246 |
|
MessageManager.getString(JackHMMER.REPORTING_SEQ_SCORE_KEY), |
| 247 |
|
MessageManager.getString("label.reporting_seq_score_desc"), |
| 248 |
|
false, 0d, 0d, |
| 249 |
|
1000d)); |
| 250 |
0 |
args.add(new DoubleParameter( |
| 251 |
|
MessageManager.getString(JackHMMER.REPORTING_DOM_SCORE_KEY), |
| 252 |
|
MessageManager.getString("label.reporting_dom_score_desc"), |
| 253 |
|
false, 0d, 0d, |
| 254 |
|
1000d)); |
| 255 |
0 |
args.add(new RadioChoiceParameter( |
| 256 |
|
MessageManager.getString(HMMSearch.INCLUSION_THRESHOLD_KEY), |
| 257 |
|
null, |
| 258 |
|
Arrays.asList(MessageManager.getString(HMMSearch.CUTOFF_EVALUE), |
| 259 |
|
MessageManager.getString(HMMSearch.CUTOFF_SCORE)), |
| 260 |
|
MessageManager.getString(HmmerCommand.CUTOFF_EVALUE))); |
| 261 |
0 |
args.add(new LogarithmicParameter( |
| 262 |
|
MessageManager.getString(HMMSearch.INCLUSION_SEQ_EVALUE_KEY), |
| 263 |
|
MessageManager.getString("label.inclusion_seq_e_value_desc"), |
| 264 |
|
false, 1D, 1E-100, 10D)); |
| 265 |
0 |
args.add(new LogarithmicParameter( |
| 266 |
|
MessageManager.getString(HMMSearch.INCLUSION_DOM_EVALUE_KEY), |
| 267 |
|
MessageManager.getString("label.inclusion_dom_e_value_desc"), |
| 268 |
|
false, 1D, 1E-100, 10D)); |
| 269 |
0 |
args.add(new DoubleParameter( |
| 270 |
|
MessageManager.getString(HMMSearch.INCLUSION_SEQ_SCORE_KEY), |
| 271 |
|
MessageManager.getString("label.inclusion_seq_score_desc"), |
| 272 |
|
false, 0d, 0d, 1000d)); |
| 273 |
0 |
args.add(new DoubleParameter( |
| 274 |
|
MessageManager.getString(HMMSearch.INCLUSION_DOM_SCORE_KEY), |
| 275 |
|
MessageManager.getString("label.inclusion_dom_score_desc"), |
| 276 |
|
false, 0d, 0d, 1000d)); |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
|
| 280 |
|
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 284 |
|
@param |
| 285 |
|
|
| |
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 5 |
Complexity Density: 0.24 |
|
| 286 |
0 |
protected void addChoiceOfDatabase(List<ArgumentI> args)... |
| 287 |
|
{ |
| 288 |
0 |
String names = Cache.getProperty(Preferences.HMMSEARCH_DBS); |
| 289 |
0 |
if (names == null || names.isEmpty()) |
| 290 |
|
{ |
| 291 |
0 |
return; |
| 292 |
|
} |
| 293 |
|
|
| 294 |
0 |
List<String> filePaths = new ArrayList<>(); |
| 295 |
0 |
List<String> fileNames = new ArrayList<>(); |
| 296 |
|
|
| 297 |
0 |
String thisAlignment = MessageManager.getString(HMMSearch.THIS_ALIGNMENT_KEY); |
| 298 |
0 |
filePaths.add(thisAlignment); |
| 299 |
0 |
fileNames.add(thisAlignment); |
| 300 |
|
|
| 301 |
0 |
Scanner nameScanner = new Scanner(names); |
| 302 |
0 |
nameScanner.useDelimiter(Preferences.COMMA); |
| 303 |
|
|
| 304 |
0 |
while (nameScanner.hasNext()) |
| 305 |
|
{ |
| 306 |
0 |
String next = nameScanner.next(); |
| 307 |
0 |
if ("null".equals(next)) |
| 308 |
|
{ |
| 309 |
0 |
Cache.setProperty(Preferences.HMMSEARCH_DBS, ""); |
| 310 |
|
} |
| 311 |
|
else |
| 312 |
|
{ |
| 313 |
0 |
filePaths.add(next); |
| 314 |
0 |
int pos = next.lastIndexOf(File.separator); |
| 315 |
0 |
String fileName = next.substring(pos + 1); |
| 316 |
0 |
fileNames.add(fileName); |
| 317 |
|
} |
| 318 |
|
} |
| 319 |
0 |
nameScanner.close(); |
| 320 |
0 |
ArgumentI databasesOption = new StringParameter( |
| 321 |
|
MessageManager.getString(HMMSearch.DATABASE_KEY), |
| 322 |
|
MessageManager.getString("label.database_for_hmmsearch"), true, |
| 323 |
|
thisAlignment, |
| 324 |
|
thisAlignment, |
| 325 |
|
filePaths, fileNames); |
| 326 |
0 |
args.add(databasesOption); |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
|
| 330 |
|
|
| 331 |
|
|
| 332 |
|
|
| 333 |
|
@param |
| 334 |
|
|
| |
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 335 |
0 |
private void getHMMAlignParams(List<ArgumentI> args)... |
| 336 |
|
{ |
| 337 |
0 |
addChoiceOfHmm(args); |
| 338 |
|
|
| 339 |
0 |
boolean def = Cache.getDefault(Preferences.HMMALIGN_TRIM_TERMINI, |
| 340 |
|
false); |
| 341 |
0 |
args.add(new BooleanOption( |
| 342 |
|
MessageManager.getString("label.trim_termini"), |
| 343 |
|
MessageManager.getString("label.trim_termini_desc"), |
| 344 |
|
false, false, def, null)); |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
|
| 348 |
|
|
| 349 |
|
|
| 350 |
|
|
| 351 |
|
@param |
| 352 |
|
|
| |
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 2 |
Complexity Density: 0.25 |
|
| 353 |
0 |
protected void addChoiceOfHmm(List<ArgumentI> args)... |
| 354 |
|
{ |
| 355 |
0 |
List<SequenceI> hmms = viewport.getAlignment().getHmmSequences(); |
| 356 |
0 |
if (!hmms.isEmpty()) |
| 357 |
|
{ |
| 358 |
0 |
List<String> options = new ArrayList<>(); |
| 359 |
0 |
for (SequenceI hmmSeq : hmms) |
| 360 |
|
{ |
| 361 |
0 |
options.add(hmmSeq.getName()); |
| 362 |
|
} |
| 363 |
0 |
String defseq = options.get(0); |
| 364 |
0 |
ArgumentI arg = new StringParameter( |
| 365 |
|
MessageManager.getString("label.use_hmm"), null, true, defseq, |
| 366 |
|
defseq, options, null); |
| 367 |
0 |
args.add(arg); |
| 368 |
|
} |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
|
| 372 |
|
|
| 373 |
|
|
| 374 |
|
|
| 375 |
|
@param |
| 376 |
|
|
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
| 377 |
0 |
protected void addChoiceOfSequence(List<ArgumentI> args)... |
| 378 |
|
{ |
| 379 |
0 |
List<SequenceI> sequences = viewport.getAlignment().getSequences(); |
| 380 |
|
|
| 381 |
0 |
List<String> options = new ArrayList<>(); |
| 382 |
|
|
| 383 |
0 |
for (SequenceI seq : sequences) |
| 384 |
|
{ |
| 385 |
0 |
options.add(seq.getName()); |
| 386 |
|
} |
| 387 |
|
|
| 388 |
0 |
String defseq = options.get(0); |
| 389 |
0 |
ArgumentI arg = new StringParameter( |
| 390 |
|
MessageManager.getString("label.use_sequence"), null, true, |
| 391 |
|
defseq, |
| 392 |
|
defseq, options, null); |
| 393 |
0 |
args.add(arg); |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
|
| 397 |
|
|
| 398 |
|
|
| 399 |
|
|
| 400 |
|
@param |
| 401 |
|
|
| |
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 3 |
Complexity Density: 0.25 |
|
| 402 |
0 |
private void getHMMBuildParams(List<ArgumentI> args)... |
| 403 |
|
{ |
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
0 |
String defValue = "Alignment_HMM"; |
| 409 |
0 |
StringParameter nameParam = new StringParameter(MessageManager.getString("label.hmm_name"), |
| 410 |
|
MessageManager.getString("label.hmm_name_desc"), true, defValue, |
| 411 |
|
defValue); |
| 412 |
0 |
args.add(nameParam); |
| 413 |
|
|
| 414 |
|
|
| 415 |
|
|
| 416 |
|
|
| 417 |
0 |
if (viewport.hasReferenceAnnotation()) |
| 418 |
|
{ |
| 419 |
0 |
args.add(new BooleanOption( |
| 420 |
|
MessageManager.getString("label.use_reference"), |
| 421 |
|
MessageManager.getString("label.use_reference_desc"), true, |
| 422 |
|
true, true, null)); |
| 423 |
|
} |
| 424 |
|
|
| 425 |
|
|
| 426 |
|
|
| 427 |
|
|
| 428 |
|
|
| 429 |
0 |
if (!viewport.getAlignment().getGroups().isEmpty()) |
| 430 |
|
{ |
| 431 |
0 |
List<String> options = new ArrayList<>(); |
| 432 |
0 |
options.add(MessageManager.getString("label.alignment")); |
| 433 |
0 |
options.add(MessageManager.getString("label.groups_and_alignment")); |
| 434 |
0 |
options.add(MessageManager.getString("label.groups")); |
| 435 |
0 |
options.add(MessageManager.getString("label.selected_group")); |
| 436 |
0 |
args.add(new Option(MessageManager.getString("label.hmmbuild_for"), |
| 437 |
|
MessageManager.getString("label.hmmbuild_for_desc"), true, |
| 438 |
|
MessageManager.getString("label.alignment"), |
| 439 |
|
MessageManager.getString("label.alignment"), options, null)); |
| 440 |
|
} |
| 441 |
|
} |
| 442 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 443 |
0 |
@Override... |
| 444 |
|
public boolean presetExists(String forName) |
| 445 |
|
{ |
| 446 |
0 |
return false; |
| 447 |
|
} |
| 448 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 449 |
0 |
@Override... |
| 450 |
|
public void deletePreset(String forName) |
| 451 |
|
{ |
| 452 |
|
} |
| 453 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 454 |
0 |
@Override... |
| 455 |
|
public void storePreset(String presetName, String text, |
| 456 |
|
List<ArgumentI> jobParams) |
| 457 |
|
{ |
| 458 |
|
} |
| 459 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 460 |
0 |
@Override... |
| 461 |
|
public void updatePreset(String oldName, String presetName, String text, |
| 462 |
|
List<ArgumentI> jobParams) |
| 463 |
|
{ |
| 464 |
|
} |
| 465 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 466 |
0 |
@Override... |
| 467 |
|
public WsParamSetI parseServiceParameterFile(String forName, |
| 468 |
|
String description, String[] serviceURL, String parameters) |
| 469 |
|
throws IOException |
| 470 |
|
{ |
| 471 |
0 |
return null; |
| 472 |
|
} |
| 473 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 474 |
0 |
@Override... |
| 475 |
|
public String generateServiceParameterFile(WsParamSetI pset) |
| 476 |
|
throws IOException |
| 477 |
|
{ |
| 478 |
0 |
return null; |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
} |