Skip to content
Snippets Groups Projects
Commit e6fa5e49 authored by tcarver's avatar tcarver
Browse files

add command line VM options show_snps, show_snp_plot, show_cov_plot

parent eefe3086
No related branches found
No related tags found
No related merge requests found
......@@ -369,6 +369,20 @@ public class BamView extends JPanel
jspView.getVerticalScrollBar().setUnitIncrement(8);
addBamToPanel(frame);
// apply command line options
if(System.getProperty("show_snps") != null)
isSNPs = true;
if(System.getProperty("show_snp_plot") != null)
{
isSNPplot = true;
snpPanel.setVisible(isSNPplot);
}
if(System.getProperty("show_cov_plot") != null)
{
isCoverage = true;
coveragePanel.setVisible(isCoverage);
}
}
public String getToolTipText()
......@@ -2658,7 +2672,7 @@ public class BamView extends JPanel
menu.add(viewMenu);
final JCheckBoxMenuItem checkBoxSNPs = new JCheckBoxMenuItem("SNP marks");
final JCheckBoxMenuItem checkBoxSNPs = new JCheckBoxMenuItem("SNP marks", isSNPs);
//
JMenu colourMenu = new JMenu("Colour By");
colourMenu.add(colourByCoverageColour);
......@@ -2733,7 +2747,7 @@ public class BamView extends JPanel
//
JMenu graphMenu = new JMenu("Graph");
JCheckBoxMenuItem checkBoxCoverage = new JCheckBoxMenuItem("Coverage");
JCheckBoxMenuItem checkBoxCoverage = new JCheckBoxMenuItem("Coverage", isCoverage);
checkBoxCoverage.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
......@@ -2751,7 +2765,7 @@ public class BamView extends JPanel
});
graphMenu.add(checkBoxCoverage);
JCheckBoxMenuItem checkBoxSNP = new JCheckBoxMenuItem("SNP");
JCheckBoxMenuItem checkBoxSNP = new JCheckBoxMenuItem("SNP", isSNPplot);
checkBoxSNP.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment