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

change visibility of iterator

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15712 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5d4b8d09
No related branches found
No related tags found
No related merge requests found
......@@ -193,16 +193,17 @@ class BCFReader extends AbstractVCFReader
private VCFRecord readVCFRecord() throws IOException
{
VCFRecord bcfRecord = new VCFRecord();
bcfRecord.setChrom( seqNames[readInt(is)] );
bcfRecord.setChrom( seqNames[readInt(is)] );
bcfRecord.setPos ( readInt(is)+1 );
bcfRecord.setQuality( readFloat(is) );
int slen = readInt(is);
byte[] str = new byte[slen];
is.read(str);
getParts(str, bcfRecord);
if(formatPattern.matcher(bcfRecord.getFormat()).matches())
{
int n_alleles = bcfRecord.getAlt().getNumAlleles();
......@@ -441,14 +442,14 @@ class BCFReader extends AbstractVCFReader
return new BCFReaderIterator(chr, sbeg, send);
}
public class BCFReaderIterator
protected class BCFReaderIterator
{
private String chr;
private int sbeg;
private int send;
private int count = 0;
public BCFReaderIterator(String chr, int sbeg, int send)
protected BCFReaderIterator(String chr, int sbeg, int send)
{
this.chr = chr;
this.sbeg = sbeg;
......@@ -463,7 +464,6 @@ class BCFReader extends AbstractVCFReader
VCFview.logger4j.debug(chr+" NOT FOUND");
return false;
}
long off = queryIndex(bid, sbeg);
seek(off);
return true;
......@@ -509,14 +509,12 @@ class BCFReader extends AbstractVCFReader
VCFRecord bcfRecord;
while( (bcfRecord = reader.nextRecord(chr, sbeg, send)) != null )
{
System.out.println(bcfRecord.getChrom());
if(chr != null && bcfRecord.getChrom().equals(chr))
System.out.println(bcfRecord.toString());
else
break;
}
reader.close();
}
catch (IOException e)
......
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