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

use getNumAlleles()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15168 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 4124be61
No related branches found
Tags 1.6.22
No related merge requests found
...@@ -181,8 +181,10 @@ class BCFReader ...@@ -181,8 +181,10 @@ class BCFReader
getParts(str, bcfRecord); getParts(str, bcfRecord);
if(formatPattern.matcher(bcfRecord.format).matches()) if(formatPattern.matcher(bcfRecord.format).matches())
{ {
int nc = 3; int n_alleles = bcfRecord.getNumAlleles();
int nc = (int) (n_alleles * ((float)(((float)n_alleles+1.f)/2.f)));
if(bcfRecord.alt.equals(".")) if(bcfRecord.alt.equals("."))
nc = 1; nc = 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