Skip to content

Commit

Permalink
Reaggregation now runs through the rest of the pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
acesnik authored and Anthony committed Mar 6, 2017
1 parent e78ebe7 commit aeb2542
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 21 deletions.
8 changes: 8 additions & 0 deletions ProteoformSuiteGUI/AggregatedProteoforms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ private void run_the_gamut()
this.Cursor = Cursors.WaitCursor;
Lollipop.aggregate_proteoforms(Lollipop.validate_proteoforms, Lollipop.raw_neucode_pairs, Lollipop.raw_experimental_components, Lollipop.raw_quantification_components, Lollipop.min_rel_abundance, Lollipop.min_num_CS);
FillAggregatesTable();
((ProteoformSweet)MdiParent).experimentalTheoreticalComparison.ClearListsAndTables();
((ProteoformSweet)MdiParent).experimentalTheoreticalComparison.run_the_gamut();
((ProteoformSweet)MdiParent).experimentExperimentComparison.ClearListsAndTables();
((ProteoformSweet)MdiParent).experimentExperimentComparison.run_the_gamut();
((ProteoformSweet)MdiParent).proteoformFamilies.ClearListsAndTables();
((ProteoformSweet)MdiParent).proteoformFamilies.run_the_gamut();
((ProteoformSweet)MdiParent).quantification.ClearListsAndTables();
((ProteoformSweet)MdiParent).quantification.perform_calculations();
updateFiguresOfMerit();
this.Cursor = Cursors.Default;
}
Expand Down
4 changes: 2 additions & 2 deletions ProteoformSuiteGUI/ExperimentExperimentComparison.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void compare_ee()
else if (Lollipop.ee_relations.Count == 0) MessageBox.Show("Go back and aggregate experimental proteoforms.");
}

private void run_the_gamut()
public void run_the_gamut()
{
this.Cursor = Cursors.WaitCursor;
Lollipop.make_ee_relationships();
Expand All @@ -61,7 +61,7 @@ public DataGridView GetEEPeaksDGV()
return dgv_EE_Peaks;
}

private void ClearListsAndTables()
public void ClearListsAndTables()
{
Lollipop.ee_relations.Clear();
Lollipop.ee_peaks.Clear();
Expand Down
4 changes: 2 additions & 2 deletions ProteoformSuiteGUI/ExperimentTheoreticalComparison.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void compare_et()
else if (Lollipop.et_relations.Count == 0) MessageBox.Show("Go back and aggregate experimental proteoforms.");
}

private void run_the_gamut()
public void run_the_gamut()
{
this.Cursor = Cursors.WaitCursor;
Lollipop.make_et_relationships();
Expand Down Expand Up @@ -75,7 +75,7 @@ public DataGridView GetETPeaksDGV()
return dgv_ET_Peak_List;
}

private void ClearListsAndTables()
public void ClearListsAndTables()
{
Lollipop.et_relations.Clear();
Lollipop.et_peaks.Clear();
Expand Down
2 changes: 0 additions & 2 deletions ProteoformSuiteGUI/LoadDeconvolutionResults.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion ProteoformSuiteGUI/ProteoformFamilies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public DataGridView GetDGV()
return dgv_main;
}

private void run_the_gamut()
public void run_the_gamut()
{
this.Cursor = Cursors.WaitCursor;
initialize_settings();
Expand All @@ -76,6 +76,11 @@ private void run_the_gamut()
this.Cursor = Cursors.Default;
}

public void ClearListsAndTables()
{
Lollipop.proteoform_community.families.Clear();
}

private void update_figures_of_merit()
{
this.tb_TotalFamilies.Text = Lollipop.proteoform_community.families.Count(f => f.proteoforms.Count > 1).ToString();
Expand Down
26 changes: 12 additions & 14 deletions ProteoformSuiteGUI/ProteoformSweet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ namespace ProteoformSuite
public partial class ProteoformSweet : Form
{
// Initialize Forms START
private LoadDeconvolutionResults loadDeconvolutionResults = new LoadDeconvolutionResults();
private RawExperimentalComponents rawExperimentalComponents = new RawExperimentalComponents();
public LoadDeconvolutionResults loadDeconvolutionResults = new LoadDeconvolutionResults();
public RawExperimentalComponents rawExperimentalComponents = new RawExperimentalComponents();
public NeuCodePairs neuCodePairs = new NeuCodePairs();
private AggregatedProteoforms aggregatedProteoforms = new AggregatedProteoforms();
public AggregatedProteoforms aggregatedProteoforms = new AggregatedProteoforms();
public TheoreticalDatabase theoreticalDatabase = new TheoreticalDatabase();
private ExperimentTheoreticalComparison experimentalTheoreticalComparison = new ExperimentTheoreticalComparison();
private ExperimentExperimentComparison experimentExperimentComparison = new ExperimentExperimentComparison();
private ProteoformFamilies proteoformFamilies = new ProteoformFamilies();
private Quantification quantification = new Quantification();
private ResultsSummary resultsSummary = new ResultsSummary();
public ExperimentTheoreticalComparison experimentalTheoreticalComparison = new ExperimentTheoreticalComparison();
public ExperimentExperimentComparison experimentExperimentComparison = new ExperimentExperimentComparison();
public ProteoformFamilies proteoformFamilies = new ProteoformFamilies();
public Quantification quantification = new Quantification();
public ResultsSummary resultsSummary = new ResultsSummary();
List<Form> forms;
// Initialize Forms END

Expand Down Expand Up @@ -57,11 +57,14 @@ public void InitializeForms()
theoreticalDatabase, experimentalTheoreticalComparison, experimentExperimentComparison,
proteoformFamilies, quantification
});
foreach (Form form in forms)
{
form.MdiParent = this;
}
}

private void showForm(Form form)
{
form.MdiParent = this;
form.Show();
form.WindowState = FormWindowState.Maximized;
current_form = form;
Expand Down Expand Up @@ -193,15 +196,10 @@ public bool full_run()
}

this.Cursor = Cursors.WaitCursor;
rawExperimentalComponents.MdiParent = this;
rawExperimentalComponents.load_raw_components(); //also loads the theoretical database, now
rawExperimentalComponents.preloaded = true;
neuCodePairs.preloaded = true;
aggregatedProteoforms.aggregate_proteoforms();
experimentalTheoreticalComparison.compare_et();
experimentExperimentComparison.compare_ee();
if (Lollipop.neucode_labeled) proteoformFamilies.construct_families();
quantification.perform_calculations();
this.enable_neuCodeProteoformPairsToolStripMenuItem(Lollipop.neucode_labeled);
this.Cursor = Cursors.Default;
return true;
Expand Down
11 changes: 11 additions & 0 deletions ProteoformSuiteGUI/Quantification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ public void perform_calculations() //this is the first thing that gets run on fo
}
}

public void ClearListsAndTables()
{
Lollipop.logIntensityHistogram.Clear();
Lollipop.logSelectIntensityHistogram.Clear();
Lollipop.satisfactoryProteoforms.Clear();
Lollipop.qVals.Clear();
Lollipop.observedProteins.Clear();
Lollipop.inducedOrRepressedProteins.Clear();
Lollipop.goTermNumbers.Clear();
}

public void fillGuiTablesAndGraphs()
{
plotObservedVsExpectedRelativeDifference();
Expand Down

0 comments on commit aeb2542

Please sign in to comment.