| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.gui; |
| 22 |
|
|
| 23 |
|
import java.awt.BorderLayout; |
| 24 |
|
import java.awt.Color; |
| 25 |
|
import java.awt.Component; |
| 26 |
|
import java.awt.Dimension; |
| 27 |
|
import java.awt.FlowLayout; |
| 28 |
|
import java.awt.Font; |
| 29 |
|
import java.awt.GridLayout; |
| 30 |
|
import java.awt.Insets; |
| 31 |
|
import java.awt.event.ActionEvent; |
| 32 |
|
import java.awt.event.ActionListener; |
| 33 |
|
import java.awt.event.FocusEvent; |
| 34 |
|
import java.awt.event.FocusListener; |
| 35 |
|
import java.awt.event.MouseAdapter; |
| 36 |
|
import java.awt.event.MouseEvent; |
| 37 |
|
import java.beans.PropertyVetoException; |
| 38 |
|
import java.util.ArrayList; |
| 39 |
|
import java.util.Collections; |
| 40 |
|
import java.util.List; |
| 41 |
|
|
| 42 |
|
import javax.swing.BorderFactory; |
| 43 |
|
import javax.swing.ButtonGroup; |
| 44 |
|
import javax.swing.DefaultComboBoxModel; |
| 45 |
|
import javax.swing.JButton; |
| 46 |
|
import javax.swing.JCheckBox; |
| 47 |
|
import javax.swing.JComboBox; |
| 48 |
|
import javax.swing.JInternalFrame; |
| 49 |
|
import javax.swing.JLabel; |
| 50 |
|
import javax.swing.JLayeredPane; |
| 51 |
|
import javax.swing.JPanel; |
| 52 |
|
import javax.swing.JRadioButton; |
| 53 |
|
import javax.swing.event.InternalFrameAdapter; |
| 54 |
|
import javax.swing.event.InternalFrameEvent; |
| 55 |
|
|
| 56 |
|
import jalview.analysis.AlignmentUtils; |
| 57 |
|
import jalview.analysis.TreeBuilder; |
| 58 |
|
import jalview.analysis.scoremodels.ScoreMatrix; |
| 59 |
|
import jalview.analysis.scoremodels.ScoreModels; |
| 60 |
|
import jalview.analysis.scoremodels.SimilarityParams; |
| 61 |
|
import jalview.api.analysis.ScoreModelI; |
| 62 |
|
import jalview.api.analysis.SimilarityParamsI; |
| 63 |
|
import jalview.bin.Cache; |
| 64 |
|
import jalview.datamodel.AlignmentAnnotation; |
| 65 |
|
import jalview.datamodel.SequenceGroup; |
| 66 |
|
import jalview.datamodel.SequenceI; |
| 67 |
|
import jalview.util.MessageManager; |
| 68 |
|
import jalview.util.Platform; |
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| |
|
| 3.4% |
Uncovered Elements: 368 (381) |
Complexity: 97 |
Complexity Density: 0.35 |
|
| 73 |
|
public class CalculationChooser extends JPanel |
| 74 |
|
{ |
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
private static boolean treeMatchGaps = true; |
| 82 |
|
|
| 83 |
|
private static final Font VERDANA_11PT = new Font("Verdana", 0, 11); |
| 84 |
|
|
| 85 |
|
private static final int MIN_PAIRWISE_SELECTION = 2; |
| 86 |
|
|
| 87 |
|
private static final int MIN_TREE_SELECTION = 3; |
| 88 |
|
|
| 89 |
|
private static final int MIN_PCA_SELECTION = 4; |
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
private String secondaryStructureModelName; |
| 96 |
|
|
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 97 |
0 |
private void initialiseSecondaryStructureModelName()... |
| 98 |
|
{ |
| 99 |
|
|
| 100 |
0 |
ScoreModels scoreModels = ScoreModels.getInstance(); |
| 101 |
0 |
for (ScoreModelI sm : scoreModels.getModels()) |
| 102 |
|
{ |
| 103 |
0 |
if (sm.isSecondaryStructure()) |
| 104 |
|
{ |
| 105 |
0 |
secondaryStructureModelName = sm.getName(); |
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
private static final int MIN_PASIMAP_SELECTION = 9; |
| 116 |
|
|
| 117 |
|
AlignFrame af; |
| 118 |
|
|
| 119 |
|
JRadioButton pairwise; |
| 120 |
|
|
| 121 |
|
JRadioButton pca; |
| 122 |
|
|
| 123 |
|
JRadioButton pasimap; |
| 124 |
|
|
| 125 |
|
JRadioButton neighbourJoining; |
| 126 |
|
|
| 127 |
|
JRadioButton averageDistance; |
| 128 |
|
|
| 129 |
|
JComboBox<String> modelNames; |
| 130 |
|
|
| 131 |
|
JComboBox<String> ssSourceDropdown; |
| 132 |
|
|
| 133 |
|
JButton calculate; |
| 134 |
|
|
| 135 |
|
private JInternalFrame frame; |
| 136 |
|
|
| 137 |
|
private JCheckBox includeGaps; |
| 138 |
|
|
| 139 |
|
private JCheckBox matchGaps; |
| 140 |
|
|
| 141 |
|
private JCheckBox includeGappedColumns; |
| 142 |
|
|
| 143 |
|
private JCheckBox shorterSequence; |
| 144 |
|
|
| 145 |
|
final ComboBoxTooltipRenderer renderer = new ComboBoxTooltipRenderer(); |
| 146 |
|
|
| 147 |
|
List<String> tips = new ArrayList<>(); |
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
private PCAPanel pcaPanel; |
| 153 |
|
|
| 154 |
|
private PaSiMapPanel pasimapPanel; |
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
@param |
| 160 |
|
|
| |
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 161 |
0 |
public CalculationChooser(AlignFrame alignFrame)... |
| 162 |
|
{ |
| 163 |
0 |
this.af = alignFrame; |
| 164 |
0 |
init(); |
| 165 |
0 |
af.alignPanel.setCalculationDialog(this); |
| 166 |
|
|
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| |
|
| 0% |
Uncovered Elements: 109 (109) |
Complexity: 6 |
Complexity Density: 0.06 |
|
| 172 |
0 |
void init()... |
| 173 |
|
{ |
| 174 |
0 |
initialiseSecondaryStructureModelName(); |
| 175 |
0 |
setLayout(new BorderLayout()); |
| 176 |
0 |
frame = new JInternalFrame(); |
| 177 |
0 |
frame.setFrameIcon(null); |
| 178 |
0 |
frame.setContentPane(this); |
| 179 |
0 |
this.setBackground(Color.white); |
| 180 |
0 |
frame.addFocusListener(new FocusListener() |
| 181 |
|
{ |
| 182 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 183 |
0 |
@Override... |
| 184 |
|
public void focusLost(FocusEvent e) |
| 185 |
|
{ |
| 186 |
|
} |
| 187 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 188 |
0 |
@Override... |
| 189 |
|
public void focusGained(FocusEvent e) |
| 190 |
|
{ |
| 191 |
0 |
validateCalcTypes(); |
| 192 |
|
} |
| 193 |
|
}); |
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
0 |
pca = new JRadioButton( |
| 202 |
|
MessageManager.getString("label.principal_component_analysis")); |
| 203 |
0 |
pca.setOpaque(false); |
| 204 |
|
|
| 205 |
0 |
pasimap = new JRadioButton( |
| 206 |
|
|
| 207 |
|
MessageManager.getString("label.pasimap")); |
| 208 |
0 |
pasimap.setOpaque(false); |
| 209 |
|
|
| 210 |
0 |
neighbourJoining = new JRadioButton( |
| 211 |
|
MessageManager.getString("label.tree_calc_nj")); |
| 212 |
0 |
neighbourJoining.setSelected(true); |
| 213 |
0 |
neighbourJoining.setOpaque(false); |
| 214 |
|
|
| 215 |
0 |
averageDistance = new JRadioButton( |
| 216 |
|
MessageManager.getString("label.tree_calc_av")); |
| 217 |
0 |
averageDistance.setOpaque(false); |
| 218 |
|
|
| 219 |
0 |
pairwise = new JRadioButton( |
| 220 |
|
MessageManager.getString("action.pairwise_alignment")); |
| 221 |
0 |
pairwise.setOpaque(false); |
| 222 |
|
|
| 223 |
0 |
JPanel calcChoicePanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
| 224 |
0 |
calcChoicePanel.setOpaque(false); |
| 225 |
|
|
| 226 |
|
|
| 227 |
0 |
JPanel treePanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
| 228 |
0 |
treePanel.setOpaque(false); |
| 229 |
|
|
| 230 |
0 |
JvSwingUtils.createTitledBorder(treePanel, |
| 231 |
|
MessageManager.getString("label.tree"), true); |
| 232 |
|
|
| 233 |
|
|
| 234 |
0 |
JPanel pcaBorderless = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
| 235 |
0 |
Insets b = treePanel.getBorder().getBorderInsets(treePanel); |
| 236 |
0 |
pcaBorderless.setBorder( |
| 237 |
|
BorderFactory.createEmptyBorder(2, b.left, 2, b.right)); |
| 238 |
0 |
pcaBorderless.setOpaque(false); |
| 239 |
|
|
| 240 |
0 |
pcaBorderless.add(pca, FlowLayout.LEFT); |
| 241 |
0 |
calcChoicePanel.add(pcaBorderless, FlowLayout.LEFT); |
| 242 |
|
|
| 243 |
|
|
| 244 |
0 |
JPanel pasimapBorderless = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
| 245 |
|
|
| 246 |
|
|
| 247 |
|
|
| 248 |
|
|
| 249 |
|
|
| 250 |
0 |
pasimapBorderless.setBorder( |
| 251 |
|
BorderFactory.createEmptyBorder(2, b.left, 2, b.right)); |
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 257 |
|
|
| 258 |
|
|
| 259 |
0 |
pasimapBorderless.setOpaque(false); |
| 260 |
|
|
| 261 |
0 |
pasimapBorderless.add(pasimap, FlowLayout.LEFT); |
| 262 |
|
|
| 263 |
0 |
if (!Platform.isJS()) |
| 264 |
|
{ |
| 265 |
|
|
| 266 |
0 |
calcChoicePanel.add(pasimapBorderless, FlowLayout.LEFT); |
| 267 |
|
|
| 268 |
|
|
| 269 |
|
|
| 270 |
|
|
| 271 |
|
|
| 272 |
|
} |
| 273 |
|
|
| 274 |
0 |
treePanel.add(neighbourJoining); |
| 275 |
0 |
treePanel.add(averageDistance); |
| 276 |
|
|
| 277 |
0 |
calcChoicePanel.add(treePanel); |
| 278 |
0 |
calcChoicePanel.add(pairwise, FlowLayout.CENTER); |
| 279 |
|
|
| 280 |
0 |
ButtonGroup calcTypes = new ButtonGroup(); |
| 281 |
0 |
calcTypes.add(pca); |
| 282 |
0 |
if (!Platform.isJS()) |
| 283 |
|
{ |
| 284 |
|
|
| 285 |
0 |
calcTypes.add(pasimap); |
| 286 |
|
} |
| 287 |
0 |
calcTypes.add(neighbourJoining); |
| 288 |
0 |
calcTypes.add(averageDistance); |
| 289 |
0 |
calcTypes.add(pairwise); |
| 290 |
|
|
| 291 |
0 |
ActionListener calcChanged = new ActionListener() |
| 292 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 293 |
0 |
@Override... |
| 294 |
|
public void actionPerformed(ActionEvent e) |
| 295 |
|
{ |
| 296 |
0 |
validateCalcTypes(); |
| 297 |
|
} |
| 298 |
|
}; |
| 299 |
0 |
pca.addActionListener(calcChanged); |
| 300 |
0 |
pasimap.addActionListener(calcChanged); |
| 301 |
|
|
| 302 |
|
|
| 303 |
0 |
neighbourJoining.addActionListener(calcChanged); |
| 304 |
0 |
averageDistance.addActionListener(calcChanged); |
| 305 |
|
|
| 306 |
|
|
| 307 |
0 |
ssSourceDropdown = buildSSSourcesOptionsList(); |
| 308 |
0 |
ssSourceDropdown.setVisible(false); |
| 309 |
0 |
pairwise.addActionListener(calcChanged); |
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
0 |
modelNames = buildModelOptionsList(); |
| 314 |
|
|
| 315 |
|
|
| 316 |
0 |
modelNames.addActionListener(new ActionListener() |
| 317 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 318 |
0 |
@Override... |
| 319 |
|
public void actionPerformed(ActionEvent e) |
| 320 |
|
{ |
| 321 |
0 |
String selectedModel = modelNames.getSelectedItem().toString(); |
| 322 |
|
|
| 323 |
0 |
if (selectedModel.equals(secondaryStructureModelName)) |
| 324 |
|
{ |
| 325 |
0 |
ssSourceDropdown.setVisible(true); |
| 326 |
|
} |
| 327 |
|
else |
| 328 |
|
{ |
| 329 |
0 |
ssSourceDropdown.setVisible(false); |
| 330 |
|
} |
| 331 |
|
} |
| 332 |
|
}); |
| 333 |
|
|
| 334 |
0 |
JPanel scoreModelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER)); |
| 335 |
0 |
scoreModelPanel.setOpaque(false); |
| 336 |
0 |
scoreModelPanel.add(modelNames); |
| 337 |
0 |
scoreModelPanel.add(ssSourceDropdown); |
| 338 |
|
|
| 339 |
|
|
| 340 |
|
|
| 341 |
|
|
| 342 |
0 |
JPanel paramsPanel = new JPanel(new GridLayout(5, 1)); |
| 343 |
0 |
paramsPanel.setOpaque(false); |
| 344 |
0 |
includeGaps = new JCheckBox("Include gaps"); |
| 345 |
0 |
matchGaps = new JCheckBox("Match gaps"); |
| 346 |
0 |
includeGappedColumns = new JCheckBox("Include gapped columns"); |
| 347 |
0 |
shorterSequence = new JCheckBox("Match on shorter sequence"); |
| 348 |
0 |
paramsPanel.add(new JLabel("Pairwise sequence scoring options")); |
| 349 |
0 |
paramsPanel.add(includeGaps); |
| 350 |
0 |
paramsPanel.add(matchGaps); |
| 351 |
0 |
paramsPanel.add(includeGappedColumns); |
| 352 |
0 |
paramsPanel.add(shorterSequence); |
| 353 |
|
|
| 354 |
|
|
| 355 |
|
|
| 356 |
|
|
| 357 |
0 |
calculate = new JButton(MessageManager.getString("action.calculate")); |
| 358 |
0 |
calculate.setFont(VERDANA_11PT); |
| 359 |
0 |
calculate.addActionListener(new java.awt.event.ActionListener() |
| 360 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 361 |
0 |
@Override... |
| 362 |
|
public void actionPerformed(ActionEvent e) |
| 363 |
|
{ |
| 364 |
0 |
calculate_actionPerformed(); |
| 365 |
|
} |
| 366 |
|
}); |
| 367 |
0 |
JButton close = new JButton(MessageManager.getString("action.close")); |
| 368 |
0 |
close.setFont(VERDANA_11PT); |
| 369 |
0 |
close.addActionListener(new java.awt.event.ActionListener() |
| 370 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 371 |
0 |
@Override... |
| 372 |
|
public void actionPerformed(ActionEvent e) |
| 373 |
|
{ |
| 374 |
0 |
close_actionPerformed(); |
| 375 |
|
} |
| 376 |
|
}); |
| 377 |
0 |
JPanel actionPanel = new JPanel(); |
| 378 |
0 |
actionPanel.setOpaque(false); |
| 379 |
0 |
actionPanel.add(calculate); |
| 380 |
0 |
actionPanel.add(close); |
| 381 |
|
|
| 382 |
0 |
boolean includeParams = false; |
| 383 |
0 |
this.add(calcChoicePanel, BorderLayout.CENTER); |
| 384 |
0 |
calcChoicePanel.add(scoreModelPanel); |
| 385 |
0 |
if (includeParams) |
| 386 |
|
{ |
| 387 |
0 |
scoreModelPanel.add(paramsPanel); |
| 388 |
|
} |
| 389 |
0 |
this.add(actionPanel, BorderLayout.SOUTH); |
| 390 |
|
|
| 391 |
0 |
int width = 375; |
| 392 |
0 |
int height = includeParams ? 420 : 240; |
| 393 |
|
|
| 394 |
0 |
setMinimumSize(new Dimension(325, height - 10)); |
| 395 |
0 |
String title = MessageManager.getString("label.choose_calculation"); |
| 396 |
0 |
if (af.getViewport().getViewName() != null) |
| 397 |
|
{ |
| 398 |
0 |
title = title + " (" + af.getViewport().getViewName() + ")"; |
| 399 |
|
} |
| 400 |
|
|
| 401 |
0 |
Desktop.addInternalFrame(frame, title, width, height, false); |
| 402 |
0 |
calcChoicePanel.doLayout(); |
| 403 |
0 |
revalidate(); |
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
0 |
frame.addInternalFrameListener(new InternalFrameAdapter() |
| 408 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 409 |
0 |
@Override... |
| 410 |
|
public void internalFrameClosed(InternalFrameEvent evt) |
| 411 |
|
{ |
| 412 |
0 |
af.alignPanel.setCalculationDialog(null); |
| 413 |
|
}; |
| 414 |
|
}); |
| 415 |
|
|
| 416 |
0 |
validateCalcTypes(); |
| 417 |
0 |
frame.setLayer(JLayeredPane.PALETTE_LAYER); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
|
| 421 |
|
|
| 422 |
|
|
| |
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 9 |
Complexity Density: 0.64 |
|
| 423 |
0 |
protected void validateCalcTypes()... |
| 424 |
|
{ |
| 425 |
0 |
int size = af.getViewport().getAlignment().getHeight(); |
| 426 |
0 |
if (af.getViewport().getSelectionGroup() != null) |
| 427 |
|
{ |
| 428 |
0 |
size = af.getViewport().getSelectionGroup().getSize(); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
|
| 432 |
|
|
| 433 |
|
|
| 434 |
|
|
| 435 |
0 |
boolean checkPca = checkEnabled(pca, size, MIN_PCA_SELECTION); |
| 436 |
0 |
boolean checkPasimap = checkEnabled(pasimap, size, |
| 437 |
|
MIN_PASIMAP_SELECTION); |
| 438 |
|
|
| 439 |
0 |
int minTree = af.getViewport().getAlignment() |
| 440 |
|
.isSecondaryStructurePresent() ? 1 : MIN_TREE_SELECTION; |
| 441 |
0 |
boolean checkNeighbourJoining = checkEnabled(neighbourJoining, size, |
| 442 |
|
minTree); |
| 443 |
0 |
boolean checkAverageDistance = checkEnabled(averageDistance, size, |
| 444 |
|
minTree); |
| 445 |
0 |
boolean checkPairwise = checkEnabled(pairwise, size, |
| 446 |
|
MIN_PAIRWISE_SELECTION); |
| 447 |
|
|
| 448 |
0 |
if (checkPca || checkPasimap || checkPca || checkNeighbourJoining |
| 449 |
|
|| checkAverageDistance || checkPairwise) |
| 450 |
|
{ |
| 451 |
0 |
calculate.setToolTipText(null); |
| 452 |
0 |
calculate.setEnabled(true); |
| 453 |
|
} |
| 454 |
|
else |
| 455 |
|
{ |
| 456 |
0 |
calculate.setEnabled(false); |
| 457 |
|
} |
| 458 |
0 |
updateScoreModels(modelNames, tips); |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
@param |
| 466 |
|
|
| 467 |
|
@param |
| 468 |
|
|
| 469 |
|
@param |
| 470 |
|
|
| 471 |
|
@return |
| 472 |
|
|
| |
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 4 |
Complexity Density: 0.36 |
|
| 473 |
0 |
private boolean checkEnabled(JRadioButton calc, int size, int minsize)... |
| 474 |
|
{ |
| 475 |
0 |
String ttip = MessageManager |
| 476 |
|
.formatMessage("label.you_need_at_least_n_sequences", minsize); |
| 477 |
|
|
| 478 |
0 |
calc.setEnabled(size >= minsize); |
| 479 |
0 |
if (!calc.isEnabled()) |
| 480 |
|
{ |
| 481 |
0 |
calc.setToolTipText(ttip); |
| 482 |
|
} |
| 483 |
|
else |
| 484 |
|
{ |
| 485 |
0 |
calc.setToolTipText(null); |
| 486 |
|
} |
| 487 |
0 |
if (calc.isSelected()) |
| 488 |
|
{ |
| 489 |
0 |
modelNames.setEnabled(calc.isEnabled()); |
| 490 |
0 |
if (calc.isEnabled()) |
| 491 |
|
{ |
| 492 |
0 |
return true; |
| 493 |
|
} |
| 494 |
|
else |
| 495 |
|
{ |
| 496 |
0 |
calculate.setToolTipText(ttip); |
| 497 |
|
} |
| 498 |
|
} |
| 499 |
0 |
return false; |
| 500 |
|
} |
| 501 |
|
|
| 502 |
|
|
| 503 |
|
|
| 504 |
|
|
| 505 |
|
|
| 506 |
|
|
| 507 |
|
|
| |
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
| 508 |
0 |
protected JComboBox<String> buildModelOptionsList()... |
| 509 |
|
{ |
| 510 |
0 |
final JComboBox<String> scoreModelsCombo = new JComboBox<>(); |
| 511 |
0 |
scoreModelsCombo.setRenderer(renderer); |
| 512 |
|
|
| 513 |
|
|
| 514 |
|
|
| 515 |
|
|
| 516 |
|
|
| 517 |
|
|
| 518 |
0 |
final MouseAdapter mouseListener = new MouseAdapter() |
| 519 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 520 |
0 |
@Override... |
| 521 |
|
public void mouseEntered(MouseEvent e) |
| 522 |
|
{ |
| 523 |
0 |
scoreModelsCombo.setToolTipText( |
| 524 |
|
tips.get(scoreModelsCombo.getSelectedIndex())); |
| 525 |
|
} |
| 526 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 527 |
0 |
@Override... |
| 528 |
|
public void mouseExited(MouseEvent e) |
| 529 |
|
{ |
| 530 |
0 |
scoreModelsCombo.setToolTipText(null); |
| 531 |
|
} |
| 532 |
|
}; |
| 533 |
0 |
for (Component c : scoreModelsCombo.getComponents()) |
| 534 |
|
{ |
| 535 |
0 |
c.addMouseListener(mouseListener); |
| 536 |
|
} |
| 537 |
|
|
| 538 |
0 |
updateScoreModels(scoreModelsCombo, tips); |
| 539 |
|
|
| 540 |
|
|
| 541 |
|
|
| 542 |
|
|
| 543 |
0 |
renderer.setTooltips(tips); |
| 544 |
|
|
| 545 |
0 |
return scoreModelsCombo; |
| 546 |
|
} |
| 547 |
|
|
| |
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 5 |
Complexity Density: 0.29 |
|
| 548 |
0 |
private JComboBox<String> buildSSSourcesOptionsList()... |
| 549 |
|
{ |
| 550 |
0 |
final JComboBox<String> comboBox = new JComboBox<>(); |
| 551 |
0 |
Object curSel = comboBox.getSelectedItem(); |
| 552 |
0 |
DefaultComboBoxModel<String> sourcesModel = new DefaultComboBoxModel<>(); |
| 553 |
|
|
| 554 |
0 |
List<String> ssSources = getApplicableSecondaryStructureSources(); |
| 555 |
|
|
| 556 |
0 |
if (ssSources == null) |
| 557 |
|
{ |
| 558 |
0 |
return comboBox; |
| 559 |
|
} |
| 560 |
0 |
ssSources.add(0, MessageManager.getString("option.ss_providers_all")); |
| 561 |
|
|
| 562 |
0 |
boolean selectedIsPresent = false; |
| 563 |
0 |
for (String source : ssSources) |
| 564 |
|
{ |
| 565 |
0 |
if (curSel != null && source.equals(curSel)) |
| 566 |
|
{ |
| 567 |
0 |
selectedIsPresent = true; |
| 568 |
0 |
curSel = source; |
| 569 |
|
} |
| 570 |
0 |
sourcesModel.addElement(source); |
| 571 |
|
|
| 572 |
|
} |
| 573 |
|
|
| 574 |
0 |
if (selectedIsPresent) |
| 575 |
|
{ |
| 576 |
0 |
sourcesModel.setSelectedItem(curSel); |
| 577 |
|
} |
| 578 |
0 |
comboBox.setModel(sourcesModel); |
| 579 |
|
|
| 580 |
0 |
return comboBox; |
| 581 |
|
} |
| 582 |
|
|
| |
|
| 0% |
Uncovered Elements: 26 (26) |
Complexity: 5 |
Complexity Density: 0.25 |
|
| 583 |
0 |
private void updateScoreModels(JComboBox<String> comboBox,... |
| 584 |
|
List<String> toolTips) |
| 585 |
|
{ |
| 586 |
0 |
Object curSel = comboBox.getSelectedItem(); |
| 587 |
0 |
toolTips.clear(); |
| 588 |
0 |
DefaultComboBoxModel<String> model = new DefaultComboBoxModel<>(); |
| 589 |
|
|
| 590 |
|
|
| 591 |
|
|
| 592 |
|
|
| 593 |
0 |
boolean nucleotide = af.getViewport().getAlignment().isNucleotide(); |
| 594 |
|
|
| 595 |
0 |
boolean ssPresent = af.getViewport().getAlignment() |
| 596 |
|
.isSecondaryStructurePresent(); |
| 597 |
|
|
| 598 |
0 |
List<ScoreModelI> models = getApplicableScoreModels(nucleotide, |
| 599 |
|
pca.isSelected(), ssPresent, |
| 600 |
|
(pasimap.isSelected() || pairwise.isSelected())); |
| 601 |
|
|
| 602 |
|
|
| 603 |
|
|
| 604 |
|
|
| 605 |
|
|
| 606 |
0 |
boolean selectedIsPresent = false; |
| 607 |
0 |
for (ScoreModelI sm : models) |
| 608 |
|
{ |
| 609 |
0 |
if (curSel != null && sm.getName().equals(curSel)) |
| 610 |
|
{ |
| 611 |
0 |
selectedIsPresent = true; |
| 612 |
0 |
curSel = sm.getName(); |
| 613 |
|
} |
| 614 |
0 |
model.addElement(sm.getName()); |
| 615 |
|
|
| 616 |
|
|
| 617 |
|
|
| 618 |
|
|
| 619 |
|
|
| 620 |
0 |
String tooltip = sm.getDescription(); |
| 621 |
0 |
if (tooltip == null) |
| 622 |
|
{ |
| 623 |
0 |
tooltip = MessageManager.getStringOrReturn("label.score_model_", |
| 624 |
|
sm.getName()); |
| 625 |
|
} |
| 626 |
0 |
toolTips.add(tooltip); |
| 627 |
|
} |
| 628 |
|
|
| 629 |
0 |
if (selectedIsPresent) |
| 630 |
|
{ |
| 631 |
0 |
model.setSelectedItem(curSel); |
| 632 |
|
} |
| 633 |
|
|
| 634 |
0 |
comboBox.setModel(model); |
| 635 |
0 |
comboBox.setEnabled(model.getSize() > 0); |
| 636 |
|
|
| 637 |
|
} |
| 638 |
|
|
| 639 |
|
|
| 640 |
|
|
| 641 |
|
|
| 642 |
|
|
| 643 |
|
|
| 644 |
|
|
| 645 |
|
|
| 646 |
|
|
| 647 |
|
|
| 648 |
|
|
| 649 |
|
@param |
| 650 |
|
@param |
| 651 |
|
@param |
| 652 |
|
|
| 653 |
|
@param |
| 654 |
|
|
| 655 |
|
@return |
| 656 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 13 |
Complexity Density: 1.62 |
|
| 657 |
16 |
protected static List<ScoreModelI> getApplicableScoreModels(... |
| 658 |
|
boolean nucleotide, boolean forPca, boolean ssPresent, |
| 659 |
|
boolean forPasimap) |
| 660 |
|
{ |
| 661 |
16 |
List<ScoreModelI> filtered = new ArrayList<>(); |
| 662 |
|
|
| 663 |
16 |
ScoreModels scoreModels = ScoreModels.getInstance(); |
| 664 |
16 |
for (ScoreModelI sm : scoreModels.getModels()) |
| 665 |
|
{ |
| 666 |
96 |
if ((!forPasimap || sm instanceof ScoreMatrix) |
| 667 |
|
&& (!nucleotide && sm.isProtein() || nucleotide && sm.isDNA() |
| 668 |
|
|| sm.isSecondaryStructure() && ssPresent)) |
| 669 |
|
|
| 670 |
|
{ |
| 671 |
38 |
filtered.add(sm); |
| 672 |
|
} |
| 673 |
|
} |
| 674 |
|
|
| 675 |
|
|
| 676 |
|
|
| 677 |
|
|
| 678 |
|
|
| 679 |
16 |
if (!forPasimap && nucleotide && forPca |
| 680 |
|
&& Cache.getDefault("BLOSUM62_PCA_FOR_NUCLEOTIDE", false)) |
| 681 |
|
{ |
| 682 |
1 |
filtered.add(scoreModels.getBlosum62()); |
| 683 |
|
} |
| 684 |
|
|
| 685 |
16 |
return filtered; |
| 686 |
|
} |
| 687 |
|
|
| 688 |
|
|
| 689 |
|
|
| 690 |
|
|
| 691 |
|
|
| |
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 5 |
Complexity Density: 0.24 |
|
| 692 |
0 |
protected List<String> getApplicableSecondaryStructureSources()... |
| 693 |
|
{ |
| 694 |
0 |
AlignmentAnnotation[] annotations = null; |
| 695 |
|
|
| 696 |
|
|
| 697 |
|
|
| 698 |
0 |
if (af.getViewport().getSelectionGroup() != null) |
| 699 |
|
{ |
| 700 |
0 |
SequenceGroup sg = af.getViewport().getSelectionGroup(); |
| 701 |
0 |
List<SequenceI> sequences = sg.getSequences(); |
| 702 |
|
|
| 703 |
|
|
| 704 |
0 |
AlignmentAnnotation[] alignAnnot = new AlignmentAnnotation[0]; |
| 705 |
0 |
if (sequences != null) |
| 706 |
|
{ |
| 707 |
0 |
List<AlignmentAnnotation> tempList = new ArrayList<>(); |
| 708 |
0 |
for (SequenceI seq : sequences) |
| 709 |
|
{ |
| 710 |
0 |
AlignmentAnnotation[] seqAnnotations = seq.getAnnotation(); |
| 711 |
0 |
if (seqAnnotations != null) |
| 712 |
|
{ |
| 713 |
0 |
Collections.addAll(tempList, seqAnnotations); |
| 714 |
|
} |
| 715 |
|
} |
| 716 |
0 |
alignAnnot = tempList.toArray(new AlignmentAnnotation[0]); |
| 717 |
|
} |
| 718 |
|
|
| 719 |
|
|
| 720 |
|
|
| 721 |
0 |
List<AlignmentAnnotation> ssAnnotations = AlignmentUtils |
| 722 |
|
.getSecondaryStructureAnnots(alignAnnot); |
| 723 |
|
|
| 724 |
0 |
if (ssAnnotations != null) |
| 725 |
|
{ |
| 726 |
0 |
annotations = ssAnnotations.toArray(new AlignmentAnnotation[0]); |
| 727 |
0 |
List<String> ssSources = AlignmentUtils |
| 728 |
|
.extractSSSourceInAlignmentAnnotation(annotations); |
| 729 |
0 |
return ssSources; |
| 730 |
|
} |
| 731 |
|
} |
| 732 |
|
|
| 733 |
|
else |
| 734 |
|
{ |
| 735 |
0 |
annotations = af.getViewport().getAlignment() |
| 736 |
|
.getAlignmentAnnotation(); |
| 737 |
0 |
List<String> ssSources = AlignmentUtils |
| 738 |
|
.extractSSSourceInAlignmentAnnotation(annotations); |
| 739 |
0 |
return ssSources; |
| 740 |
|
} |
| 741 |
|
|
| 742 |
0 |
return null; |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
|
| 746 |
|
|
| 747 |
|
|
| |
|
| 0% |
Uncovered Elements: 31 (31) |
Complexity: 7 |
Complexity Density: 0.37 |
|
| 748 |
0 |
protected void calculate_actionPerformed()... |
| 749 |
|
{ |
| 750 |
0 |
boolean doPCA = pca.isSelected(); |
| 751 |
0 |
boolean doPaSiMap = pasimap.isSelected(); |
| 752 |
0 |
boolean doPairwise = pairwise.isSelected(); |
| 753 |
0 |
String modelName = modelNames.getSelectedItem() == null ? "" |
| 754 |
|
: modelNames.getSelectedItem().toString(); |
| 755 |
|
|
| 756 |
0 |
String ssSource = null; |
| 757 |
|
|
| 758 |
0 |
if (modelName.equals(secondaryStructureModelName)) |
| 759 |
|
{ |
| 760 |
0 |
Object selectedItem = ssSourceDropdown.getSelectedItem(); |
| 761 |
0 |
if (selectedItem != null) |
| 762 |
|
{ |
| 763 |
0 |
ssSource = selectedItem.toString(); |
| 764 |
|
} |
| 765 |
|
} |
| 766 |
0 |
SimilarityParams params = getSimilarityParameters(doPCA); |
| 767 |
0 |
params.setSecondaryStructureSource(ssSource); |
| 768 |
|
|
| 769 |
0 |
if (doPCA) |
| 770 |
|
{ |
| 771 |
0 |
openPcaPanel(modelName, params); |
| 772 |
|
} |
| 773 |
0 |
else if (doPaSiMap) |
| 774 |
|
{ |
| 775 |
0 |
openPasimapPanel(modelName, params); |
| 776 |
|
} |
| 777 |
0 |
else if (doPairwise) |
| 778 |
|
{ |
| 779 |
0 |
openPairwisePanel(modelName, params); |
| 780 |
|
} |
| 781 |
|
else |
| 782 |
|
{ |
| 783 |
0 |
openTreePanel(modelName, params); |
| 784 |
|
} |
| 785 |
|
|
| 786 |
0 |
closeFrame(); |
| 787 |
|
} |
| 788 |
|
|
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 789 |
0 |
private void openPairwisePanel(String modelName, SimilarityParamsI params)... |
| 790 |
|
{ |
| 791 |
0 |
ScoreModelI sm = ScoreModels.getInstance().getScoreModel(modelName, |
| 792 |
|
af.alignPanel); |
| 793 |
0 |
if (sm == null || !(sm instanceof ScoreMatrix)) |
| 794 |
|
{ |
| 795 |
0 |
return; |
| 796 |
|
} |
| 797 |
0 |
new Thread(new Runnable() |
| 798 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 799 |
0 |
@Override... |
| 800 |
|
public void run() |
| 801 |
|
{ |
| 802 |
0 |
String pairwise_alignment_title = af.formCalculationTitle( |
| 803 |
|
MessageManager.getString("action.pairwise_alignment") |
| 804 |
|
+ " with " + sm.getName(), |
| 805 |
|
af.getViewport().getSelectionGroup() != null, |
| 806 |
|
af.getTitle()); |
| 807 |
0 |
JInternalFrame frame = new JInternalFrame(); |
| 808 |
0 |
frame.setFrameIcon(null); |
| 809 |
0 |
frame.setContentPane( |
| 810 |
|
new PairwiseAlignPanel(af.getViewport(), (ScoreMatrix) sm)); |
| 811 |
0 |
Desktop.addInternalFrame(frame, pairwise_alignment_title, 600, 500); |
| 812 |
|
} |
| 813 |
|
}).start(); |
| 814 |
|
} |
| 815 |
|
|
| 816 |
|
|
| 817 |
|
|
| 818 |
|
|
| 819 |
|
@param |
| 820 |
|
@param |
| 821 |
|
|
| |
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 8 |
Complexity Density: 0.8 |
|
| 822 |
0 |
protected void openTreePanel(String modelName, SimilarityParamsI params)... |
| 823 |
|
{ |
| 824 |
|
|
| 825 |
|
|
| 826 |
|
|
| 827 |
|
|
| 828 |
0 |
AlignViewport viewport = af.getViewport(); |
| 829 |
0 |
SequenceGroup sg = viewport.getSelectionGroup(); |
| 830 |
|
|
| 831 |
|
|
| 832 |
|
|
| 833 |
0 |
if (sg != null && sg.getSize() < MIN_TREE_SELECTION |
| 834 |
|
&& !modelName.equals(secondaryStructureModelName)) |
| 835 |
|
{ |
| 836 |
0 |
JvOptionPane.showMessageDialog(Desktop.desktop, |
| 837 |
|
MessageManager.formatMessage( |
| 838 |
|
"label.you_need_at_least_n_sequences", |
| 839 |
|
MIN_TREE_SELECTION), |
| 840 |
|
MessageManager.getString("label.not_enough_sequences"), |
| 841 |
|
JvOptionPane.WARNING_MESSAGE); |
| 842 |
0 |
return; |
| 843 |
|
} |
| 844 |
|
|
| 845 |
|
|
| 846 |
0 |
if(modelName.equals(secondaryStructureModelName) |
| 847 |
|
&& sg != null |
| 848 |
|
&& sg.noOfSecondaryStructureAnnots() < MIN_TREE_SELECTION) |
| 849 |
|
{ |
| 850 |
0 |
JvOptionPane.showMessageDialog(Desktop.desktop, |
| 851 |
|
MessageManager.formatMessage( |
| 852 |
|
"label.you_need_at_least_n_annotations", |
| 853 |
|
MIN_TREE_SELECTION), |
| 854 |
|
MessageManager.getString("label.not_enough_annotations"), |
| 855 |
|
JvOptionPane.WARNING_MESSAGE); |
| 856 |
0 |
return; |
| 857 |
|
} |
| 858 |
|
|
| 859 |
0 |
String treeType = neighbourJoining.isSelected() |
| 860 |
|
? TreeBuilder.NEIGHBOUR_JOINING |
| 861 |
|
: TreeBuilder.AVERAGE_DISTANCE; |
| 862 |
0 |
af.newTreePanel(treeType, modelName, params); |
| 863 |
|
} |
| 864 |
|
|
| 865 |
|
|
| 866 |
|
|
| 867 |
|
|
| 868 |
|
@param |
| 869 |
|
@param |
| 870 |
|
|
| |
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 5 |
Complexity Density: 0.83 |
|
| 871 |
0 |
protected void openPcaPanel(String modelName, SimilarityParamsI params)... |
| 872 |
|
{ |
| 873 |
0 |
AlignViewport viewport = af.getViewport(); |
| 874 |
|
|
| 875 |
|
|
| 876 |
|
|
| 877 |
|
|
| 878 |
|
|
| 879 |
0 |
if (((viewport.getSelectionGroup() != null) |
| 880 |
|
&& (viewport.getSelectionGroup().getSize() < MIN_PCA_SELECTION) |
| 881 |
|
&& (viewport.getSelectionGroup().getSize() > 0)) |
| 882 |
|
|| (viewport.getAlignment().getHeight() < MIN_PCA_SELECTION)) |
| 883 |
|
{ |
| 884 |
0 |
JvOptionPane.showInternalMessageDialog(this, |
| 885 |
|
MessageManager.formatMessage( |
| 886 |
|
"label.you_need_at_least_n_sequences", |
| 887 |
|
MIN_PCA_SELECTION), |
| 888 |
|
MessageManager |
| 889 |
|
.getString("label.sequence_selection_insufficient"), |
| 890 |
|
JvOptionPane.WARNING_MESSAGE); |
| 891 |
0 |
return; |
| 892 |
|
} |
| 893 |
|
|
| 894 |
|
|
| 895 |
|
|
| 896 |
|
|
| 897 |
0 |
pcaPanel = new PCAPanel(af.alignPanel, modelName, params); |
| 898 |
0 |
new Thread(pcaPanel).start(); |
| 899 |
|
|
| 900 |
|
} |
| 901 |
|
|
| 902 |
|
|
| 903 |
|
|
| 904 |
|
|
| 905 |
|
@param |
| 906 |
|
@param |
| 907 |
|
|
| |
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 5 |
Complexity Density: 0.83 |
|
| 908 |
0 |
protected void openPasimapPanel(String modelName,... |
| 909 |
|
SimilarityParamsI params) |
| 910 |
|
{ |
| 911 |
0 |
AlignViewport viewport = af.getViewport(); |
| 912 |
|
|
| 913 |
|
|
| 914 |
|
|
| 915 |
|
|
| 916 |
|
|
| 917 |
0 |
if (((viewport.getSelectionGroup() != null) |
| 918 |
|
&& (viewport.getSelectionGroup() |
| 919 |
|
.getSize() < MIN_PASIMAP_SELECTION) |
| 920 |
|
&& (viewport.getSelectionGroup().getSize() > 0)) |
| 921 |
|
|| (viewport.getAlignment() |
| 922 |
|
.getHeight() < MIN_PASIMAP_SELECTION)) |
| 923 |
|
{ |
| 924 |
0 |
JvOptionPane.showInternalMessageDialog(this, |
| 925 |
|
MessageManager.formatMessage( |
| 926 |
|
"label.you_need_at_least_n_sequences", |
| 927 |
|
MIN_PASIMAP_SELECTION), |
| 928 |
|
MessageManager |
| 929 |
|
.getString("label.sequence_selection_insufficient"), |
| 930 |
|
JvOptionPane.WARNING_MESSAGE); |
| 931 |
0 |
return; |
| 932 |
|
} |
| 933 |
|
|
| 934 |
|
|
| 935 |
|
|
| 936 |
|
|
| 937 |
0 |
pasimapPanel = new PaSiMapPanel(af.alignPanel, modelName); |
| 938 |
0 |
new Thread(pasimapPanel).start(); |
| 939 |
|
|
| 940 |
|
} |
| 941 |
|
|
| 942 |
|
|
| 943 |
|
|
| 944 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 2 |
Complexity Density: 1 |
|
| 945 |
0 |
protected void closeFrame()... |
| 946 |
|
{ |
| 947 |
0 |
try |
| 948 |
|
{ |
| 949 |
0 |
frame.setClosed(true); |
| 950 |
|
} catch (PropertyVetoException ex) |
| 951 |
|
{ |
| 952 |
|
} |
| 953 |
|
} |
| 954 |
|
|
| 955 |
|
|
| 956 |
|
|
| 957 |
|
|
| 958 |
|
|
| 959 |
|
@param |
| 960 |
|
@return |
| 961 |
|
|
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 962 |
0 |
protected SimilarityParams getSimilarityParameters(boolean doPCA)... |
| 963 |
|
{ |
| 964 |
|
|
| 965 |
|
|
| 966 |
|
|
| 967 |
|
|
| 968 |
|
|
| 969 |
0 |
boolean includeGapGap = true; |
| 970 |
0 |
boolean includeGapResidue = true; |
| 971 |
0 |
boolean matchOnShortestLength = false; |
| 972 |
|
|
| 973 |
|
|
| 974 |
|
|
| 975 |
|
|
| 976 |
|
|
| 977 |
|
|
| 978 |
|
|
| 979 |
0 |
boolean matchGap = doPCA ? false : treeMatchGaps; |
| 980 |
|
|
| 981 |
0 |
return new SimilarityParams(includeGapGap, matchGap, includeGapResidue, |
| 982 |
|
matchOnShortestLength); |
| 983 |
|
} |
| 984 |
|
|
| 985 |
|
|
| 986 |
|
|
| 987 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 2 |
Complexity Density: 1 |
|
| 988 |
0 |
protected void close_actionPerformed()... |
| 989 |
|
{ |
| 990 |
0 |
try |
| 991 |
|
{ |
| 992 |
0 |
frame.setClosed(true); |
| 993 |
|
} catch (Exception ex) |
| 994 |
|
{ |
| 995 |
|
} |
| 996 |
|
} |
| 997 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 998 |
0 |
public PCAPanel getPcaPanel()... |
| 999 |
|
{ |
| 1000 |
0 |
return pcaPanel; |
| 1001 |
|
} |
| 1002 |
|
} |