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!");
     }
 }
示例#2
0
        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)
 {
 }
示例#4
0
 public O18ProteinRatioCalculator(IGetRatioIntensity intensityFunc)
 {
     this.intensityFunc = intensityFunc;
 }
示例#5
0
 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;
 }