public ImportFastaControl(SkylineWindow skylineWindow)
        {
            SkylineWindow = skylineWindow;

            InitializeComponent();

            ImportFastaHelper = new ImportFastaHelper(tbxFasta, tbxError, panelError);

            tbxFastaHeightDifference = Height - tbxFasta.Height;

            _driverEnzyme = new SettingsListComboDriver<Enzyme>(comboEnzyme, Settings.Default.EnzymeList);
            _driverEnzyme.LoadList(SkylineWindow.Document.Settings.PeptideSettings.Enzyme.GetKey());

            MaxMissedCleavages = skylineWindow.Document.Settings.PeptideSettings.DigestSettings.MaxMissedCleavages;
        }
Example #2
0
 private SrmDocument GetNewDocument(SrmDocument document, bool validating, ref IdentityPath selectedPath, out int emptyPeptideGroups)
 {
     var fastaHelper = new ImportFastaHelper(tbxFasta, tbxError, panelError);
     if ((document = fastaHelper.AddFasta(document, ref selectedPath, out emptyPeptideGroups)) == null)
     {
         tabControl1.SelectedTab = tabPageFasta;  // To show fasta errors
         return null;
     }
     if ((document = AddProteins(document, ref selectedPath)) == null)
     {
         return null;
     }
     if ((document = AddPeptides(document, validating, ref selectedPath)) == null)
     {
         return null;
     }
     if ((document = AddTransitionList(document, ref selectedPath)) == null)
     {
         return null;
     }
     return document;
 }