/** Constructor */ public TcgaSurvivalDataProcessor() throws Exception { _parser = new TcgaClinicalTabDataParser(this); _dependentVariableTransformer = GetDependentVariableTransformerFromConfig(); _survivalDataPointName = Utilities.Config.GetStringValue( "CONTINUOUS_DEPENDENT_VARIABLE_DATA_POINT_NAME", "ContinuousDependentVariable"); _lowRiskDescriptor = Utilities.Config.GetStringValue("CONTINUOUS_DEPENDENT_VARIABLE_LOW_DESCRIPTOR", "LOW"); _highRiskDescriptor = Utilities.Config.GetStringValue("CONTINUOUS_DEPENDENT_VARIABLE_HIGH_DESCRIPTOR", "HIGH"); }
private AbstractDependentVariableTransformer GetDependentVariableTransformerFromConfig() throws Exception { String className = Utilities.Config.GetStringValue( "DEPENDENT_VARIABLE_TRANSFORMER", new MedianContinuousDependentVariableTransformer().getClass().getSimpleName()); return (AbstractDependentVariableTransformer) ((Constructor) Class.forName(className).getConstructor()).newInstance(); }