예제 #1
0
        public SrmCompoundModeForm()
        {
            InitializeComponent();

            this.peptideGraph = new ZedGraphMRMPeptideItemScans(zgcPeptide, this.CreateGraphics());

            this.rtGraph = new ZedGraphMRMPeptideItemRetentionTimes(zgcRetentionTime);

            this.ViewOption = new SrmViewOption();
        }
        public SrmFileModeForm()
        {
            InitializeComponent();

            PeptideItemUpdate += UpdatePeptide;
            PeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcPeptide, this.CreateGraphics()).Update;
            ProductIonUpdate  += new ZedGraphMRMProductIonScansAndRegression(zgcTransaction, this.CreateGraphics()).Update;

            ViewOption = new SrmViewOption();
        }
        private CompoundItemFilter GetInvalidFilter()
        {
            SrmViewOption option = new SrmViewOption()
            {
                ViewDecoy     = cbViewDecoy.Checked,
                ViewValidOnly = cbViewValidOnly.Checked
            };

            return(option.GetRejectCompoundFilter());
        }
        public SrmValidatorUI()
        {
            InitializeComponent();

            this.Text = Constants.GetSQHTitle(title, version);

            this.viewOption = new SrmViewOption();

            FileModePeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcFileModePeptide, this.CreateGraphics()).Update;
            FileModePeptideItemUpdate += new ZedGraphSrmPeptideItem(zgcAllInOne).Update;
            FileModeProductIonUpdate  += new ZedGraphMRMProductIonScansAndRegression(zgcFileModeTransaction, this.CreateGraphics()).Update;

            CompoundModePeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcCompoundModePeptide, this.CreateGraphics()).Update;
            CompoundModePeptideItemUpdate += new ZedGraphMRMPeptideItemRetentionTimes(zgcRetentionTime).Update;

            btnFileMode.PerformClick();
        }
        public static TransitionItemFilter GetRejectTransitionFilter(this SrmViewOption option)
        {
            TransitionItemFilter result = null;

            if (!option.ViewDecoy)
            {
                result += new TransitionItemFilter(TransitionItemUtils.IsDecoy);
            }

            if (option.ViewValidOnly)
            {
                result += new TransitionItemFilter(TransitionItemUtils.IsInvalid);
            }

            if (result == null)
            {
                result += new TransitionItemFilter(TransitionItemUtils.AlwaysFalse);
            }

            return(result);
        }
        public static CompoundItemFilter GetRejectCompoundFilter(this SrmViewOption option)
        {
            CompoundItemFilter result = null;

            if (!option.ViewDecoy)
            {
                result += new CompoundItemFilter(CompoundItemUtils.IsDecoy);
            }

            if (option.ViewValidOnly)
            {
                result += new CompoundItemFilter(CompoundItemUtils.IsInvalid);
            }

            if (result == null)
            {
                result += new CompoundItemFilter(CompoundItemUtils.AlwaysFalse);
            }

            return(result);
        }
 public UpdateMRMPairedPeptideItemEventArgs(SrmPairedPeptideItem item, SrmViewOption viewOption)
     : base()
 {
     this.Item       = item;
     this.ViewOption = viewOption;
 }
 public UpdateMRMPairedProductIonEventArgs(SrmPairedProductIon item, SrmViewOption viewOption)
     : base()
 {
     this.Item       = item;
     this.ViewOption = viewOption;
 }