private void btn_inclusion_list_selected_families_Click(object sender, EventArgs e)
        {
            object[] selected = DisplayUtility.get_selected_objects(dgv_main);
            List <ProteoformFamily> families = selected.OfType <ProteoformFamily>().ToList();

            write_inclusion_list(families.SelectMany(f => f.experimental_proteoforms).ToList());
        }
예제 #2
0
        private void btn_buildSelectedQuantFamilies_Click(object sender, EventArgs e)
        {
            string time_stamp = SaveState.time_stamp();

            tb_recentTimeStamp.Text = time_stamp;
            object[] selected = DisplayUtility.get_selected_objects(dgv_quantification_results);
            string   message  = CytoscapeScript.write_cytoscape_script(selected, SaveState.lollipop.target_proteoform_community.families,
                                                                       SaveState.lollipop.family_build_folder_path, "", time_stamp, true, cb_redBorder.Checked, cb_boldLabel.Checked,
                                                                       cmbx_colorScheme.SelectedItem.ToString(), cmbx_edgeLabel.SelectedItem.ToString(), cmbx_nodeLabel.SelectedItem.ToString(), cmbx_nodeLabelPositioning.SelectedItem.ToString(), cmbx_nodeLayout.SelectedItem.ToString(), SaveState.lollipop.deltaM_edge_display_rounding,
                                                                       cb_geneCentric.Checked, cmbx_geneLabel.SelectedItem.ToString());

            MessageBox.Show(message, "Cytoscape Build");
        }
예제 #3
0
        private void btn_buildFromSelectedGoTerms_Click(object sender, EventArgs e)
        {
            List <GoTermNumber>     selected_gos      = (DisplayUtility.get_selected_objects(dgv_goAnalysis).Select(o => (GoTermNumber)o)).ToList();
            List <ProteoformFamily> selected_families = SaveState.lollipop.getInterestingFamilies(selected_gos, SaveState.lollipop.target_proteoform_community.families).Distinct().ToList();
            string time_stamp = SaveState.time_stamp();

            tb_recentTimeStamp.Text = time_stamp;
            string message = CytoscapeScript.write_cytoscape_script(selected_families, SaveState.lollipop.target_proteoform_community.families,
                                                                    SaveState.lollipop.family_build_folder_path, "", time_stamp, true, cb_redBorder.Checked, cb_boldLabel.Checked,
                                                                    cmbx_colorScheme.SelectedItem.ToString(), cmbx_edgeLabel.SelectedItem.ToString(), cmbx_nodeLabel.SelectedItem.ToString(), cmbx_nodeLabelPositioning.SelectedItem.ToString(), cmbx_nodeLayout.SelectedItem.ToString(), SaveState.lollipop.deltaM_edge_display_rounding,
                                                                    cb_geneCentric.Checked, cmbx_geneLabel.SelectedItem.ToString());

            MessageBox.Show(message, "Cytoscape Build");
        }
예제 #4
0
        private void btn_buildSelectedFamilies_Click(object sender, EventArgs e)
        {
            string time_stamp = Sweet.time_stamp();

            tb_recentTimeStamp.Text = time_stamp;
            object[] selected = DisplayUtility.get_selected_objects(dgv_main);
            string   message  = CytoscapeScript.write_cytoscape_script(selected, Sweet.lollipop.target_proteoform_community.families,
                                                                       Sweet.lollipop.family_build_folder_path, "", time_stamp,
                                                                       cb_buildAsQuantitative.Checked ? (MdiParent as ProteoformSweet).resultsSummary.get_go_analysis() : null, cb_redBorder.Checked, cb_boldLabel.Checked,
                                                                       cmbx_colorScheme.SelectedItem.ToString(), cmbx_edgeLabel.SelectedItem.ToString(), cmbx_nodeLabel.SelectedItem.ToString(), cmbx_nodeLabelPositioning.SelectedItem.ToString(), cmbx_nodeLayout.SelectedItem.ToString(), Sweet.lollipop.deltaM_edge_display_rounding,
                                                                       cb_geneCentric.Checked, cmbx_geneLabel.SelectedItem.ToString(), cb_scale_nodes.Checked);

            MessageBox.Show(message, "Cytoscape Build");
        }