Skip to content

Commit 252a1fc

Browse files
committed
Adjust the UIs in the ratio to abundance conversion panel.
1 parent a3f4bc6 commit 252a1fc

File tree

1 file changed

+15
-8
lines changed
  • FragPipe-GUI/src/main/java/org/nesvilab/fragpipe/tools/tmtintegrator

1 file changed

+15
-8
lines changed

FragPipe-GUI/src/main/java/org/nesvilab/fragpipe/tools/tmtintegrator/TmtiPanel.java

+15-8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.nesvilab.utils.swing.MigUtils;
3939
import org.nesvilab.utils.swing.UiCheck;
4040
import org.nesvilab.utils.swing.UiCombo;
41+
import org.nesvilab.utils.swing.UiRadio;
4142
import org.nesvilab.utils.swing.UiSpinnerDouble;
4243
import org.nesvilab.utils.swing.UiSpinnerInt;
4344
import org.nesvilab.utils.swing.UiText;
@@ -78,6 +79,7 @@
7879
import javax.imageio.ImageIO;
7980
import javax.swing.AbstractAction;
8081
import javax.swing.Action;
82+
import javax.swing.ButtonGroup;
8183
import javax.swing.ImageIcon;
8284
import javax.swing.JComponent;
8385
import javax.swing.JFileChooser;
@@ -520,13 +522,16 @@ private JPanel[] createPanelOptsAdvancedGeneral() {
520522
"not-shown", uiCheckAllowUnlabeled,
521523
"<html>Allow peptides with unlabeled n-term (i.e. no TMT/iTRAQ label and no Acetyl at n-terminus)");
522524

523-
UiCheck uiCheckMs1Int = UiCheck.of("Use MS1 intensity", true);
524-
FormEntry feMs1Int = fe(TmtiConfProps.PROP_ms1_int,
525-
"not-shown", uiCheckMs1Int,
526-
"<html>Use MS1 precursor ion intensity (if true) or MS2 summed TMT <br/>\n"
527-
+ "reporter ion intensity (if false) as part of the reference <br/>\n"
528-
+ "sample abundance estimation");
529-
525+
JLabel labelUse = new JLabel("Use ");
526+
UiRadio uiRadioMs1 = new UiRadio("MS1", null, true);
527+
UiRadio uiRadioMs2 = new UiRadio("MS2", null, false);
528+
uiRadioMs1.setToolTipText("Use MS1 precursor ion intensity in ratios to abundances conversion");
529+
uiRadioMs2.setToolTipText("Use MS2 summed TMT reporter ion intensity in ratios to abundances conversion");
530+
ButtonGroup bgMs = new ButtonGroup();
531+
bgMs.add(uiRadioMs1);
532+
bgMs.add(uiRadioMs2);
533+
uiRadioMs1.setName(TmtiConfProps.PROP_ms1_int);
534+
530535
UiCheck uiCheckPrintRef = UiCheck.of("Print reference intensity", false);
531536
FormEntry fePrintRefInt = fe(TmtiConfProps.PROP_print_RefInt,
532537
"not-shown", uiCheckPrintRef,
@@ -579,7 +584,9 @@ private JPanel[] createPanelOptsAdvancedGeneral() {
579584

580585
JPanel p2 = mu.newPanel(mu.lcNoInsetsTopBottom());
581586
mu.border(p2, "Ratio to Abundance conversion");
582-
mu.add(p2, feMs1Int.comp);
587+
mu.add(p2, labelUse).split(3);
588+
mu.add(p2, uiRadioMs1);
589+
mu.add(p2, uiRadioMs2).wrap();
583590
mu.add(p2, fePrintRefInt.comp);
584591
mu.add(p2, feLog2Transformed.comp).spanX().wrap();
585592

0 commit comments

Comments
 (0)