private int GetMatrixLength(clsReporterIons.eReporterIonMassModeConstants eReporterIonMode) { switch (eReporterIonMode) { case clsReporterIons.eReporterIonMassModeConstants.ITraqFourMZ: return(FOUR_PLEX_MATRIX_LENGTH); case clsReporterIons.eReporterIonMassModeConstants.ITraqEightMZHighRes: return(EIGHT_PLEX_HIGH_RES_MATRIX_LENGTH); case clsReporterIons.eReporterIonMassModeConstants.ITraqEightMZLowRes: return(EIGHT_PLEX_LOW_RES_MATRIX_LENGTH); case clsReporterIons.eReporterIonMassModeConstants.TMTTenMZ: return(TEN_PLEX_TMT_MATRIX_LENGTH); case clsReporterIons.eReporterIonMassModeConstants.TMTElevenMZ: return(ELEVEN_PLEX_TMT_MATRIX_LENGTH); case clsReporterIons.eReporterIonMassModeConstants.TMTSixteenMZ: return(SIXTEEN_PLEX_TMT_MATRIX_LENGTH); default: throw new ArgumentOutOfRangeException("Invalid value for eReporterIonMode in GetMatrixLength: " + eReporterIonMode.ToString()); } }
/// <summary> /// Change the reporter ion mode /// </summary> /// <param name="eReporterIonMode"></param> /// <param name="iTraqCorrectionFactorType"></param> public void UpdateReporterIonMode(clsReporterIons.eReporterIonMassModeConstants eReporterIonMode, eCorrectionFactorsiTRAQ4Plex iTraqCorrectionFactorType) { if (ReporterIonMode != eReporterIonMode || ITraq4PlexCorrectionFactorType != iTraqCorrectionFactorType) { ReporterIonMode = eReporterIonMode; ITraq4PlexCorrectionFactorType = iTraqCorrectionFactorType; InitializeCoefficients(true); } }
/// <summary> /// Constructor /// </summary> /// <param name="eReporterIonMode">iTRAQ or TMT mode</param> /// <param name="iTraqCorrectionFactorType">Correction factor type for 4-plex iTRAQ</param> /// <remarks>The iTraqCorrectionFactorType parameter is only used if eReporterIonMode is ITraqFourMZ</remarks> public clsITraqIntensityCorrection(clsReporterIons.eReporterIonMassModeConstants eReporterIonMode, eCorrectionFactorsiTRAQ4Plex iTraqCorrectionFactorType) { ReporterIonMode = eReporterIonMode; ITraq4PlexCorrectionFactorType = iTraqCorrectionFactorType; mMatrixUtility = new MatrixDecompositionUtility.LUDecomposition(); if (ReporterIonMode == clsReporterIons.eReporterIonMassModeConstants.CustomOrNone) { return; } InitializeCoefficients(false); }
/// <summary> /// Constructor; assumes iTraqCorrectionFactorType = eCorrectionFactorsiTRAQ4Plex.ABSciex /// </summary> /// <param name="eReporterIonMode">iTRAQ or TMT mode</param> /// <remarks></remarks> public clsITraqIntensityCorrection(clsReporterIons.eReporterIonMassModeConstants eReporterIonMode) : this(eReporterIonMode, eCorrectionFactorsiTRAQ4Plex.ABSciex) { }
/// <summary> /// Change the reporter ion mode /// </summary> /// <param name="eReporterIonMode"></param> public void UpdateReporterIonMode(clsReporterIons.eReporterIonMassModeConstants eReporterIonMode) { UpdateReporterIonMode(eReporterIonMode, ITraq4PlexCorrectionFactorType); }