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

use filter when calculating overview

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@16075 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 42c891a1
No related branches found
No related tags found
No related merge requests found
......@@ -684,7 +684,7 @@ class IOUtils
VCFRecord record;
while ((record = reader.getNextRecord(vcfView.getChr(), thisStart, thisEnd)) != null)
count(record, count, features, reader);
count(record, count, features, reader, vcfView);
}
}
}
......@@ -692,7 +692,7 @@ class IOUtils
{
VCFRecord record;
while ((record = reader.getNextRecord(vcfView.getChr(), sbeg, send)) != null)
count(record, count, features, reader);
count(record, count, features, reader, vcfView);
}
}
......@@ -711,8 +711,12 @@ class IOUtils
tab.setIntegerRowSorter(i);
}
private static void count(VCFRecord record, int count[], FeatureVector features, AbstractVCFReader reader)
private static void count(VCFRecord record, int count[], FeatureVector features, AbstractVCFReader reader, VCFview vcfView)
{
int basePosition = record.getPos() + vcfView.getSequenceOffset(record.getChrom());
if(!vcfView.showVariant(record, features, basePosition, reader.isVcf_v4()) )
return;
if(record.getAlt().isNonVariant())
{
count[1]++;
......
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