public AbstractO18ProteinRatioRCalculatorPCA(IGetRatioIntensity intensityFunc, IO18QuantificationOption option) { this.intensityFunc = intensityFunc; this.Option = option; this.rExecute = ExternalProgramConfig.GetExternalProgram("R"); if (this.rExecute == null) { throw new Exception("Define R location first!"); } }
public static double[][] ConvertToArray <T>(this IGetRatioIntensity func, IEnumerable <T> anns) where T : IAnnotation { var refs = new List <double>(); var samples = new List <double>(); foreach (IAnnotation ann in anns) { refs.Add(func.GetReferenceIntensity(ann)); samples.Add(func.GetSampleIntensity(ann)); } var result = new double[2][]; result[0] = refs.ToArray(); result[1] = samples.ToArray(); return(result); }
public O18ProteinRatioRPeptideCalculator(IGetRatioIntensity intensityFunc, IO18QuantificationOptions option) : base(intensityFunc, option) { }
public O18ProteinRatioCalculator(IGetRatioIntensity intensityFunc) { this.intensityFunc = intensityFunc; }
public AbstractO18QuantificationOptions() { this.func = new O18GetRatioIntensity(); this.calc = new O18ProteinRatioRPeptideCalculator(this.func, this); }
public AbstractProteinRatioRPairCalculator(IGetRatioIntensity intensityFunc, IPairQuantificationOptions option) { this.intensityFunc = intensityFunc; this.Option = option; }