IndependentExactAFCalc is now the default EXACT model implementation
-- Changed UG / HC to use this one via the StandardCallerArgumentCollection -- Update the AFCalcFactory.Calculation to have a getDefault() value instead of having a duplicate entry in the enums
This commit is contained in:
parent
326f429270
commit
eaffb814d3
|
|
@ -495,7 +495,7 @@ public class AFCalcUnitTest extends BaseTest {
|
|||
|
||||
// list of all high-quality models in the system
|
||||
final List<AFCalcFactory.Calculation> models = Arrays.asList(
|
||||
AFCalcFactory.Calculation.EXACT,
|
||||
AFCalcFactory.Calculation.getDefaultModel(),
|
||||
AFCalcFactory.Calculation.EXACT_REFERENCE,
|
||||
AFCalcFactory.Calculation.EXACT_INDEPENDENT);
|
||||
|
||||
|
|
|
|||
|
|
@ -105,5 +105,5 @@ public class StandardCallerArgumentCollection {
|
|||
*/
|
||||
@Advanced
|
||||
@Argument(fullName = "p_nonref_model", shortName = "pnrm", doc = "Non-reference probability calculation model to employ", required = false)
|
||||
public AFCalcFactory.Calculation AFmodel = AFCalcFactory.Calculation.EXACT;
|
||||
public AFCalcFactory.Calculation AFmodel = AFCalcFactory.Calculation.getDefaultModel();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,15 +24,12 @@ public class AFCalcFactory {
|
|||
* the needs of the request (i.e., considering ploidy).
|
||||
*/
|
||||
public enum Calculation {
|
||||
/** The default implementation */
|
||||
EXACT(ReferenceDiploidExactAFCalc.class, 2, -1),
|
||||
|
||||
/** reference implementation of multi-allelic EXACT model */
|
||||
EXACT_REFERENCE(ReferenceDiploidExactAFCalc.class, 2, -1),
|
||||
|
||||
/** expt. implementation -- for testing only */
|
||||
EXACT_INDEPENDENT(IndependentAllelesDiploidExactAFCalc.class, 2, -1),
|
||||
|
||||
/** reference implementation of multi-allelic EXACT model. Extremely slow for many alternate alleles */
|
||||
EXACT_REFERENCE(ReferenceDiploidExactAFCalc.class, 2, -1),
|
||||
|
||||
/** original biallelic exact model, for testing only */
|
||||
EXACT_ORIGINAL(OriginalDiploidExactAFCalc.class, 2, 2),
|
||||
|
||||
|
|
@ -60,6 +57,8 @@ public class AFCalcFactory {
|
|||
return (requiredPloidy == -1 || requiredPloidy == requestedPloidy)
|
||||
&& (maxAltAlleles == -1 || maxAltAlleles >= requestedMaxAltAlleles);
|
||||
}
|
||||
|
||||
public static Calculation getDefaultModel() { return EXACT_INDEPENDENT; }
|
||||
}
|
||||
|
||||
private static final Map<String, Class<? extends AFCalc>> afClasses;
|
||||
|
|
|
|||
Loading…
Reference in New Issue