示例#1
0
 /// <summary>
 /// The extent of the isolation window in m/z above the isolation window target m/z.
 /// The lower and upper offsets may be asymmetric about the target m/z. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="offset"></param>
 /// <returns></returns>
 public static IParamEdit MS_IsolationWindowUpperOffset(
     this IParamEdit etype, double offset)
 {
     if (offset < 0)
     {
         throw new ArgumentOutOfRangeException("offset");
     }
     return(etype.SetCvParam("MS:1000829").SetValue(offset).MS_Mz());
 }
示例#2
0
 /// <summary>
 /// Stages of ms achieved in a multi stage mass spectrometry experiment. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_MsLevel(
     this IParamEdit etype, int level)
 {
     if (level < 1)
     {
         throw new ArgumentOutOfRangeException("level");
     }
     return(etype.SetCvParam("MS:1000511").SetValue(level).NoUnit());
 }
示例#3
0
 /// <summary>
 /// The primary or reference m/z about which the isolation window is defined. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="mz"></param>
 /// <returns></returns>
 public static IParamEdit MS_IsolationWindowTargetMz(
     this IParamEdit etype, double mz)
 {
     if (mz < 0)
     {
         throw new ArgumentOutOfRangeException("mz");
     }
     return(etype.SetCvParam("MS:1000827").SetValue(mz).MS_Mz());
 }
示例#4
0
 /// <summary>
 /// Energy for an ion experiencing collision with a stationary gas particle resulting in dissociation of the ion. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="ce"></param>
 /// <returns></returns>
 public static IParamEdit MS_CollisionEnergy(
     this IParamEdit etype, double ce)
 {
     if (ce < 0)
     {
         throw new ArgumentOutOfRangeException("ce");
     }
     return(etype.SetCvParam("MS:1000045").SetValue(ce).UO_Electronvolt());
 }
示例#5
0
 /// <summary>
 /// Mass-to-charge ratio of a precursor ion selected for fragmentation. [PSI:PI]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="mz"></param>
 /// <returns></returns>
 public static IParamEdit MS_SelectedIonMz(
     this IParamEdit etype, double mz)
 {
     if (mz < 0)
     {
         throw new ArgumentOutOfRangeException("mz");
     }
     return(etype.SetCvParam("MS:1002234").SetValue(mz).MS_Mz());
 }
示例#6
0
        private static SWATHIndexerItem CreateItem(MassSpectrum ms)
        {
            if (ms.BeginParamEdit().Get_MS_Level().GetInt32() != 2)
            {
                return(null);
            }

            if (ms.Precursors.Count < 1 ||
                ms.Precursors[0].SelectedIons.Count < 1 ||
                ms.Scans.Count < 1)
            {
                return(null);
            }

            IValueConverter rt     = ms.Scans[0].BeginParamEdit().Get_MS_ScanStartTime();
            IParamEdit      isoWin = ms.Precursors[0].IsolationWindow.BeginParamEdit();
            IValueConverter mz     = isoWin.Get_MS_IsolationWindowTargetMz();
            IValueConverter mzLow  = isoWin.Get_MS_IsolationWindowLowerOffset();
            IValueConverter mzHigh = isoWin.Get_MS_IsolationWindowUpperOffset();

            if (rt.HasValue() &&
                mz.HasValue() &&
                mzLow.HasValue() &&
                mzHigh.HasValue())
            {
                double mzValue = mz.GetDouble();

                return(new SWATHIndexerItem()
                {
                    Mz = mz.GetDouble(),
                    MzStart = SaveSubtract(mzValue, mzLow.GetDouble()),
                    MzEnd = SaveAdd(mzValue, mzHigh.GetDouble()),
                    Rt = rt.GetDouble(),
                    SpectrumID = ms.ID
                });
            }
            else
            {
                return(null);
            }
        }
示例#7
0
 /// <summary>
 /// Andromeda is a peptide search engine. [MS:PI]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_Andromeda(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1002337").NoValue().NoUnit());
 }
示例#8
0
 /// <summary>
 /// The time that an analyzer started a scan, relative to the start of the MS run. [PSI:MS]
 /// </summary>
 public static IValueConverter Get_MS_ScanStartTime(this IParamEdit etype)
 {
     return(etype.GetCvParam("MS:1000016"));
 }
示例#9
0
 /// <summary>
 /// The theoretical mass of the molecule (e.g. the peptide sequence and its modifications). [MS:PI]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="mass"></param>
 /// <returns></returns>
 public static IParamEdit MS_TheoreticalMass(
     this IParamEdit etype, double mass)
 {
     return(etype.SetCvParam("MS:1001117").SetValue(mass).UO_Dalton());
 }
示例#10
0
 /// <summary>
 /// Compression using MS-Numpress positive integer compression. [https://github.com/fickludd/ms-numpress]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_MSNumpressPositiveIntegerCompression(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1002313").NoValue().NoUnit());
 }
示例#11
0
 /// <summary>
 /// The time that an analyzer started a scan, relative to the start of the MS run. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public static IHasUnit MS_ScanStartTime(
     this IParamEdit etype, double value)
 {
     return(etype.SetCvParam("MS:1000016").SetValue(value));
 }
示例#12
0
 /// <summary>
 /// The data type PEP (posterior error probability) produced by MaxQuant. [MS:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="pep"></param>
 /// <returns></returns>
 public static IParamEdit MS_MaxQuantPEP(
     this IParamEdit etype, double pep)
 {
     return(etype.SetCvParam("MS:1001901").SetValue(pep).NoUnit());
 }
示例#13
0
 public static bool Is_MS_32BitInteger(
     this IParamEdit etype)
 {
     return(etype.HasCvParam("MS:1000519"));
 }
示例#14
0
 /// <summary>
 /// The data type feature intensity produced by MaxQuant. [MS:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="pep"></param>
 /// <returns></returns>
 public static IParamEdit MS_MaxQuantFeatureIntensity(
     this IParamEdit etype, double intensity)
 {
     return(etype.SetCvParam("MS:1001903").SetValue(intensity).NoUnit());
 }
示例#15
0
 public static IParamEdit MS_ThermoRawFormat(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1000563").NoValue().NoUnit());
 }
示例#16
0
 /// <summary>
 /// 32-bit precision little-endian floating point conforming to IEEE-754. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_32BitFloat(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1000521").NoValue().NoUnit());
 }
示例#17
0
 /// <summary>
 /// The extent of the isolation window in m/z above the isolation window target m/z.
 /// The lower and upper offsets may be asymmetric about the target m/z. [PSI:MS]
 /// </summary>
 public static IValueConverter Get_MS_IsolationWindowUpperOffset(
     this IParamEdit etype)
 {
     return(etype.GetCvParam("MS:1000829"));
 }
示例#18
0
 public static IParamEdit MS_SampleBatch(
     this IParamEdit etype, string value)
 {
     return(etype.SetCvParam("MS:1000053").SetValue(value).NoUnit());
 }
示例#19
0
 /// <summary>
 /// The primary or reference m/z about which the isolation window is defined. [PSI:MS]
 /// </summary>
 public static IValueConverter Get_MS_IsolationWindowTargetMz(
     this IParamEdit etype)
 {
     return(etype.GetCvParam("MS:1000827"));
 }
示例#20
0
 public static bool Is_MS_32BitFloat(
     this IParamEdit etype)
 {
     return(etype.HasCvParam("MS:1000521"));
 }
示例#21
0
 /// <summary>
 /// The probability based score of the Andromeda search engine. [MS:PI]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="score"></param>
 /// <returns></returns>
 public static IParamEdit MS_AndromedaScore(
     this IParamEdit etype, double score)
 {
     return(etype.SetCvParam("MS:1002338").SetValue(score).NoUnit());
 }
示例#22
0
 /// <summary>
 /// Compression using MS-Numpress short logged float compression. [https://github.com/fickludd/ms-numpress]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_MSNumpressShortLoggedFloatCompression(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1002314").NoValue().NoUnit());
 }
示例#23
0
 /// <summary>
 /// MaxQuant is a quantitative proteomics software package designed for analyzing large mass spectrometric data sets.
 /// It is specifically aimed at high resolution MS data. [MS:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_MaxQuant(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1001583").NoValue().NoUnit());
 }
示例#24
0
 public static IHasUnit MS_SampleConcentration(
     this IParamEdit etype, double value)
 {
     return(etype.SetCvParam("MS:1000006").SetValue(value));
 }
示例#25
0
 public static IHasUnit MS_SampleMass(
     this IParamEdit etype, double value)
 {
     return(etype.SetCvParam("MS:1000004").SetValue(value));
 }
示例#26
0
 /// <summary>
 /// Signed 32-bit little-endian integer. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <returns></returns>
 public static IParamEdit MS_32BitInteger(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1000519").NoValue().NoUnit());
 }
示例#27
0
 public static IParamEdit MS_GenericExperimentalCondition(
     this IParamEdit etype, string value)
 {
     return(etype.SetCvParam("MS:1001814").SetValue(value).NoUnit());
 }
示例#28
0
 /// <summary>
 /// Mass-to-charge ratio of a precursor ion selected for fragmentation. [PSI:PI]
 /// </summary>
 public static IValueConverter Get_MS_SelectedIonMz(
     this IParamEdit etype)
 {
     return(etype.GetCvParam("MS:1002234"));
 }
示例#29
0
 public static IParamEdit MS_ABIWIFFFormat(
     this IParamEdit etype)
 {
     return(etype.SetCvParam("MS:1000562").NoValue().NoUnit());
 }
示例#30
0
 /// <summary>
 /// The charge state of the ion, single or multiple and positive or negatively charged. [PSI:MS]
 /// </summary>
 /// <param name="etype"></param>
 /// <param name="state"></param>
 /// <returns></returns>
 public static IParamEdit MS_ChargeState(
     this IParamEdit etype, int state)
 {
     return(etype.SetCvParam("MS:1000041").SetValue(state).NoUnit());
 }