Skip to content
Snippets Groups Projects
Commit e500d6dd authored by tjc's avatar tjc
Browse files

calculate SNP plot when reading in BAM

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15673 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 79cda9e3
No related branches found
No related tags found
No related merge requests found
......@@ -498,6 +498,9 @@ public class BamView extends JPanel
if(isCoverageView(pixPerBase) || isCoverage)
coverageView.addRecord(samRecord);
if(isSNPplot)
snpPanel.addRecord(samRecord);
if(!isCoverageView(pixPerBase))
readsInView.add(samRecord);
}
......@@ -639,9 +642,10 @@ public class BamView extends JPanel
coverageView.isRedraw())
{
if(isCoverageView(pixPerBase) || isCoverage)
{
coverageView.init(this, pixPerBase, start, end);
}
if(isSNPplot)
snpPanel.init(this, pixPerBase, start, end);
synchronized (this)
{
......@@ -2373,6 +2377,8 @@ public class BamView extends JPanel
{
isSNPplot = !isSNPplot;
snpPanel.setVisible(isSNPplot);
laststart = -1;
lastend = -1;
repaint();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment