示例#1
0
        /// <summary>
        /// Return a number to use as the peak boundary based on the peptide sequence, replicate name, and
        /// sample name. This number is then used to verify that the peak boundaries were applied correctly.
        /// </summary>
        public double GetPeakStartTime(PeptideDocNode peptide, ChromatogramSet chromatogramSet, MsDataFileUri msDataFileUri)
        {
            double time = peptide.Peptide.Sequence.Length;

            var replicateTimes = new Dictionary <string, double>()
            {
                { "ReplicateOne", 1 }, { "ReplicateTwo", 0 }, { "ReplicateThree", 2 }
            };

            time += replicateTimes[chromatogramSet.Name];

            var sampleTimes = new Dictionary <string, double>()
            {
                { "blank", 0 }, { "rfp9_after_h_1", -.25 }, { "test", .3 }, { "rfp9_before_h_1", .4 }
            };

            time += sampleTimes[msDataFileUri.GetSampleName()];

            return(time);
        }