Ejemplo n.º 1
0
        public MetaDraw()
        {
            UsefulProteomicsDatabases.Loaders.LoadElements();

            InitializeComponent();

            itemsControlSampleViewModel = new ItemsControlSampleViewModel();
            DataContext = itemsControlSampleViewModel;
            mainViewModel = new PsmAnnotationViewModel();
            plotView.DataContext = mainViewModel;
            allPsms = new ObservableCollection<PsmFromTsv>();
            filteredListOfPsms = new ObservableCollection<PsmFromTsv>();
            propertyView = new DataTable();
            propertyView.Columns.Add("Name", typeof(string));
            propertyView.Columns.Add("Value", typeof(string));
            peptideSpectralMatchesView = CollectionViewSource.GetDefaultView(filteredListOfPsms);
            dataGridScanNums.DataContext = peptideSpectralMatchesView;
            dataGridProperties.DataContext = propertyView.DefaultView;
            Title = "MetaDraw: version " + GlobalVariables.MetaMorpheusVersion;
            spectraFileManager = new MyFileManager(true);
            SetUpDictionaries();
            modificationAnnotationColor = Brushes.Yellow;
            metaDrawGraphicalSettings = new MetaDrawGraphicalSettings();
            metaDrawFilterSettings = new MetaDrawFilterSettings();
            base.Closing += this.OnClosing;

            ParentChildScanView.Visibility = Visibility.Collapsed;
            ParentScanView.Visibility = Visibility.Collapsed;

            plotTypes = new ObservableCollection<string>();
            SetUpPlots();
            //plotsListBox.ItemsSource = plotTypes;
        }
Ejemplo n.º 2
0
        public MetaDraw()
        {
            UsefulProteomicsDatabases.Loaders.LoadElements();

            InitializeComponent();

            itemsControlSampleViewModel = new ItemsControlSampleViewModel();
            DataContext          = itemsControlSampleViewModel;
            mainViewModel        = new PsmAnnotationViewModel();
            plotView.DataContext = mainViewModel;
            allPsms            = new ObservableCollection <PsmFromTsv>();
            filteredListOfPsms = new ObservableCollection <PsmFromTsv>();
            proteinTree        = new ObservableCollection <ProteinForTreeView>();
            filteredTree       = new ObservableCollection <ProteinForTreeView>();
            propertyView       = new DataTable();
            propertyView.Columns.Add("Name", typeof(string));
            propertyView.Columns.Add("Value", typeof(string));
            psmsWithMatch = new List <PsmFromTsv>();
            proteinTreeView.DataContext    = proteinTree;
            dataGridProperties.DataContext = propertyView.DefaultView;
            Title = "MetaDraw: version " + GlobalVariables.MetaMorpheusVersion;
            spectraFileManager = new MyFileManager(true);
            SetUpDictionaries();
            variantCrossColor               = Colors.Green;
            modificationAnnotationColor     = Brushes.Orange;
            metaDrawGraphicalSettings       = new MetaDrawGraphicalSettings();
            metaDrawFilterSettings          = new MetaDrawFilterSettings();
            SearchModifications.Timer.Tick += new EventHandler(searchBox_TextChangedHandler);
            base.Closing += this.OnClosing;

            ParentChildScanView.Visibility = Visibility.Collapsed;
            ParentScanView.Visibility      = Visibility.Collapsed;
            mapViewer.Visibility           = Visibility.Collapsed;
            legend.Visibility = Visibility.Collapsed;

            plotTypes = new ObservableCollection <string>();
            proteases = new string[1] {
                "trypsin"
            };

            SetUpPlots();
            //plotsListBox.ItemsSource = plotTypes;
            ChangeMapScrollViewSize();
        }