Added a constructor in which the lod threshold can be set.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@501 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kiran 2009-04-23 17:20:48 +00:00
parent 8c1905c7d9
commit efba30f1a1
1 changed files with 17 additions and 0 deletions

View File

@ -47,6 +47,23 @@ public class AlleleMetrics {
}
}
public AlleleMetrics(String MetricsOutputFile, double lodThreshold) {
LOD_cutoff = lodThreshold;
try
{
/*if ( MetricsOutputFile.equals("-") )
this.out = out;
else*/
this.out = new PrintStream(MetricsOutputFile);
}
catch (Exception e)
{
e.printStackTrace();
System.exit(-1);
}
}
public void nextPosition(AlleleFrequencyEstimate alleleFreq, RefMetaDataTracker tracker) {
num_loci_total += 1;