-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlgTreeView.cs
867 lines (690 loc) · 26.5 KB
/
dlgTreeView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Windows.Forms;
using SysData = System.Data;
namespace GINtool
{
public partial class dlgTreeView : Form
{
// define category columns
string[] catcols = new string[] { "cat1", "cat2", "cat3", "cat4", "cat5" };
string[] catints = new string[] { "ucat1_int", "ucat2_int", "ucat3_int", "ucat4_int", "ucat5_int" };
string[] regColumn = new string[] { Properties.Settings.Default.referenceRegulon };
//string[] refColumn = null;
bool catMode = true;
bool tableOutput = false;
bool splitNP = false;
List<cat_elements> gSelection = new List<cat_elements>();
public List<cat_elements> GetSelection()
{
return gSelection;
}
public bool GetSplitOption()
{
return splitNP;
}
public dlgTreeView(bool categoryView = false, bool spreadingOptions = true, bool rankingOptions = true, bool volcanoOptions = false)
{
InitializeComponent();
udCat.SelectedItem = udCat.Items[3];
cbTopFC.Checked = false;
udTopFC.Enabled = false;
cbCat.Checked = false;
cbCat.Enabled = categoryView;
udCat.Enabled = false;
cbTableOutput.Enabled = spreadingOptions;
cbTopFC.Enabled = spreadingOptions;//& !categoryView;
// disable topN p values
cbTopP.Enabled = false; // spreadingOptions; //& !categoryView;
cbTopP.Visible = false;
udTOPP.Enabled = false;
cbTopP.Checked = false;
cbSplit.Checked = false;
cbSplit.Enabled = rankingOptions;
cbMaxExtremes.Checked = false;
cbMaxExtremes.Enabled = volcanoOptions;
udExtremes.Enabled = volcanoOptions;
udExtremes.Enabled = false;
}
// utility to select unique records
private SysData.DataTable GetDistinctRecords(SysData.DataTable dt, string[] Columns)
{
return dt.DefaultView.ToTable(true, Columns);
}
// http://www.authorcode.com/create-treeview-from-datatable-in-c/
//private TreeNode Searchnode(string nodetext, TreeView trv)
//{
// foreach (TreeNode node in trv.Nodes)
// {
// if (node.Text == nodetext)
// {
// return node;
// }
// }
// return null;
//}
public void populateTree(SysData.DataTable dataTable, bool cat = true)
{
catMode = cat;
if (cat)
BuildTree(dataTable, treeView1.Nodes.Add("Categories"), 1);
else
BuildTree(dataTable, treeView1.Nodes.Add("Regulons"), 1);
}
public bool selectTableOutput()
{
return tableOutput;
}
public int getTopFC()
{
return cbTopFC.Checked ? (int)udTopFC.Value : -1;
}
//public int getTopP()
//{
// return cbTopP.Checked ? (int)udTOPP.Value : -1;
//}
public int getExtremeP()
{
return cbMaxExtremes.Checked ? (int)udExtremes.Value : -1;
}
private DataTable GetDistinctRegulons(DataTable dataTable, string[] regColumn)
{
throw new NotImplementedException();
}
// recursive population of treeview control
public TreeNode BuildTree(DataTable dt, TreeNode trv = null, int lvl = 1, string accumlevel = "")
{
// Clear the TreeView if there are another datas in this TreeView
if (trv is null)
trv = new TreeNode();
DataTable _lcats = null;
DataView dv = null;
if (catMode)
{
_lcats = GetDistinctRecords(dt, new string[] { catcols[lvl - 1], catints[lvl - 1] });
_lcats.DefaultView.Sort = String.Format("{0} ASC",catints[lvl - 1]);
dv = _lcats.DefaultView;
_lcats = dv.ToTable();
}
else
_lcats = GetDistinctRecords(dt, regColumn);
if (catMode ? lvl <= 5 : lvl < 1)
{
int _rownr = 0;
foreach (DataRow _row in _lcats.Rows)
{
if (_row[0].ToString() == "")
return trv;
_rownr++;
// with update for real level (not iterated level, gave errors for non-existing tree items) (FK 8/3/2023)
TreeNode node = trv.Nodes.Add(_row[0].ToString());
int ucat = Convert.ToInt32(double.Parse(_row[1].ToString()) / Math.Pow(10, 6 - lvl));
// Set ToolTip text to reflect number of sub categories
//node.ToolTipText = string.Format("# subcat {0}", _lcats.Rows.Count.ToString());
// Store selection code in tag field
node.Tag = accumlevel == "" ? string.Format("{0}", _rownr) : string.Format("{0}.{1}", accumlevel, ucat);
node.ToolTipText = node.Tag.ToString();
if (lvl < 5)
{
DataTable __lcats = dt.Select(string.Format("{0}='{1}'", catcols[lvl - 1], node.Text)).CopyToDataTable();
if (__lcats.Rows.Count > 0)
BuildTree(__lcats, node, lvl: lvl + 1, accumlevel != "" ? accumlevel + "." + _rownr.ToString() : _rownr.ToString());
}
}
}
else if (catMode) // level == 5 or
{
foreach (DataRow _row in _lcats.Rows)
{
if (_row[0].ToString() == "")
return null;
TreeNode _lNode = new TreeNode(_row[0].ToString());
_lNode.ToolTipText = string.Format("# subcat {0}", _lcats.Rows.Count.ToString());
return _lNode;
}
}
else // !catMode
{
int _rownr = 0;
foreach (DataRow _row in _lcats.Rows)
{
if (_row[0].ToString() == "")
return null;
_rownr++;
TreeNode node = trv.Nodes.Add(_row[0].ToString());
node.Tag = accumlevel == "" ? string.Format("{0}", _rownr) : string.Format("{0}.{1}", accumlevel, _rownr);
node.ToolTipText = node.Tag.ToString();
//TreeNode _lNode = new TreeNode(_row[0].ToString());
//_lNode.ToolTipText = string.Format("# subcat {0}", _lcats.Rows.Count.ToString());
//return _lNode;
}
}
return trv;
}
private string[] nodesToArray(TreeNode treeNode)
{
return null;
}
private string[] NodeTags(TreeNodeCollection treeNodes)
{
// Print the node.
//System.Diagnostics.Debug.WriteLine(treeNode.Text);
//MessageBox.Show(treeNode.Text);
// Print each node recursively.
List<string> _tags = new List<string>();
foreach (TreeNode tn in treeNodes)
{
TreeNode _node = (TreeNode)tn.Clone();
while (_node.Nodes.Count > 0)
_node = _node.Nodes[0];
_tags.Add(_node.Tag.ToString());
}
return _tags.ToArray();
}
private cat_elements createCategoryItem(TreeNode treeNode)
{
cat_elements sel = new cat_elements();
List<string> codes = new List<string>();
if (treeNode.Nodes.Count == 0)
{
string[] tags = treeNode.Tag.ToString().Split('_');
codes.Add(tags[0]);
}
else
{
foreach (TreeNode _tnode in treeNode.Nodes)
{
string[] _codes = NodeTags(_tnode.Nodes);
if (_codes.Length > 0)
codes.AddRange(_codes);
else // is end node
codes.Add(_tnode.Tag.ToString());
}
}
sel.catName = treeNode.Text;
sel.elTag = treeNode.Tag.ToString();
sel.elements = codes.ToArray();
return sel;
}
private void addToSelection(TreeNode treeNode)
{
gSelection.Add(createCategoryItem(treeNode));
}
private void removeFromSelection(int index)
{
gSelection.RemoveAt(index);
}
// select button pressed
private void button1_Click(object sender, EventArgs e)
{
if (treeView1.SelectedNode is null)
return;
if (treeView1.SelectedNode.Parent == null)
{
MessageBox.Show("Cannot select top node");
return;
}
TreeNode treeNode = treeView1.SelectedNode;
if (treeNode == null)
return;
string fp = treeNode.FullPath;
int nodeIndex = treeNode.Index;
// remove last part of tree
int rstr = fp.LastIndexOf('\\');
if (rstr > 0) fp = fp.Remove(rstr);
// add position information in Tag field
treeNode.Tag = treeNode.Tag + "_" + fp + "_" + nodeIndex.ToString();
treeView1.Nodes.Remove(treeNode);
if (treeNode != null)
{
treeView2.Nodes.Add(treeNode);
addToSelection(treeNode);
}
UpdateCounter();
}
// button unselect pressed
private void button2_Click(object sender, EventArgs e)
{
TreeNode treeNode = treeView2.SelectedNode;
if (treeNode == null || treeNode.Parent != null)
{
MessageBox.Show("Only main-nodes are allowed");
return;
}
treeView2.Nodes.Remove(treeNode);
(TreeNode node, string fullpath, int idx) = getPositionInfo(treeNode);
if (node != null)
{
removeFromSelection(treeNode.Index);
if (!insertNode(node, idx, fullpath)) // add as main node
treeView1.Nodes[0].Nodes.Add(node);
else // check if main nodes are correctly placed
checkParentNodes();
}
UpdateCounter();
}
// check integrity of tree if new (sub) head node is added
public void checkParentNodes()
{
TreeNode headNode = treeView1.Nodes[0];
foreach (TreeNode tnode in headNode.Nodes)
{
//tnode.Nodes.Insert(index, node);
if (tnode.Tag != null)
{
string[] lvl = tnode.Tag.ToString().Split('.');
if (lvl.Count() > 1)
{
treeView1.Nodes.Remove(tnode);
TreeNode _tnode = headNode.Nodes[Int32.Parse(lvl[0]) - 1];
for (int i = 1; i < lvl.Count() - 1; i++) // need to fix this here... should check that nodes do not contain genes then this check is not necessary.
try
{
_tnode = _tnode.Nodes[Int32.Parse(lvl[i]) - 1];
}
catch
{
}
_tnode.Nodes.Insert(Int32.Parse(lvl[lvl.Count() - 1]) - 1, tnode);
}
}
}
}
// copied from inet, insert item in tree at specified location
public bool insertInParent(string path, int index, TreeNode node)
{
bool found = false;
foreach (TreeNode tnode in treeView1.Nodes)
{
if (tnode.FullPath == path)
{
tnode.Nodes.Insert(index, node);
found = true;
break;
}
if (!found)
found = insertInChild(tnode, index, path, node);
}
return found;
}
public bool insertInChild(TreeNode original, int index, string path, TreeNode node)
{
bool found = false;
foreach (TreeNode tnode in original.Nodes)
{
if (tnode.FullPath == path)
{
tnode.Nodes.Insert(index, node);
found = true;
break;
}
if (!found)
found = insertInChild(tnode, index, path, node);
}
return found;
}
// strip tag from positional info .. actually overlaps with checkParentNodes .. needs to be combined later
private (TreeNode, string, int) getPositionInfo(TreeNode treeNode)
{
string[] tags = treeNode.Tag.ToString().Split('_');
int lenTags = tags.Length;
string TagOne = String.Join("",tags.Skip(1).Take(lenTags - 2).Select(t => t.ToString()).ToArray());
treeNode.Tag = tags[0];
return (treeNode, TagOne, Int32.Parse(tags[lenTags-1]));
}
// insert in tree from treeview 1
private bool insertNode(TreeNode treeNode, int index, string fullPath)
{
return insertInParent(fullPath, index, treeNode);
}
private void button3_Click(object sender, EventArgs e)
{
if (gSelection.Count() > 255 && (!cbTopFC.Checked && !cbTopP.Checked))
{
DialogResult dialogResult = MessageBox.Show("The number of series is larger than 255 and cannot be plotted, the output will be redirected to a table. Continue?", "Warning", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
this.cbTableOutput.Checked = true;
//do something
this.DialogResult = DialogResult.OK;
this.Close();
}
else if (dialogResult == DialogResult.No)
{
//do something else
}
}
else if (gSelection.Count() == 0)
{
MessageBox.Show("You have not selected any item. No plot can be generated. Please update your selection or press cancel to return.", "Warning");
}
else // generate plot
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
private void button4_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
private void CheckAllChildNodes(TreeNode treeNode, bool nodeChecked)
{
List<TreeNode> selection = new List<TreeNode>();
foreach (TreeNode node in treeNode.Nodes)
selection.Add(node);
foreach (TreeNode node in selection)
{
string fp = node.FullPath;
int nodeIndex = node.Index;
// remove last part of tree
int rstr = fp.LastIndexOf('\\');
if (rstr > 0) fp = fp.Remove(rstr);
// add position information in Tag field
node.Tag = node.Tag + "_" + fp + "_" + nodeIndex.ToString();
treeView1.Nodes.Remove(node);
if (node != null)
{
treeView2.Nodes.Add(node);
addToSelection(node);
}
}
}
// NOTE This code can be added to the BeforeCheck event handler instead of the AfterCheck event.
// After a tree node's Checked property is changed, all its child nodes are updated to the same value.
private void node_AfterCheck(object sender, TreeViewEventArgs e)
{
// The code only executes if the user caused the checked state to change.
if (e.Action != TreeViewAction.Unknown)
{
if (e.Node.Nodes.Count > 0)
{
/* Calls the CheckAllChildNodes method, passing in the current
Checked value of the TreeNode whose checked state changed. */
this.CheckAllChildNodes(e.Node, e.Node.Checked);
}
}
}
private List<TreeNode> SelectCategoryLevel(int level)
{
List<TreeNode> selection = new List<TreeNode>();
List<TreeNode> tmp_Selection1 = new List<TreeNode>();
List<TreeNode> tmp_Selection2 = new List<TreeNode>();
// start of with the default top level
foreach (TreeNode node in treeView1.TopNode.Nodes)
tmp_Selection1.Add(node);
selection = tmp_Selection1;
// alternating tmp_selection1/tmp_selection2 for increasing levels.. to prevent nested loops
if (level > 0)
{
foreach (TreeNode subnode in tmp_Selection1)
{
foreach (TreeNode subsubnode in subnode.Nodes)
tmp_Selection2.Add(subsubnode);
}
selection = tmp_Selection2;
}
if (level > 1)
{
tmp_Selection1 = new List<TreeNode>();
foreach (TreeNode subnode in tmp_Selection2)
{
foreach (TreeNode subsubnode in subnode.Nodes)
tmp_Selection1.Add(subsubnode);
}
selection = tmp_Selection1;
}
if (level > 2)
{
tmp_Selection2 = new List<TreeNode>();
foreach (TreeNode subnode in tmp_Selection1)
{
foreach (TreeNode subsubnode in subnode.Nodes)
tmp_Selection2.Add(subsubnode);
}
selection = tmp_Selection2;
}
if (level > 3)
{
tmp_Selection1 = new List<TreeNode>();
foreach (TreeNode subnode in tmp_Selection2)
{
foreach (TreeNode subsubnode in subnode.Nodes)
tmp_Selection1.Add(subsubnode);
}
selection = tmp_Selection1;
}
//if (level > 4)
//{
// tmp_Selection2 = new List<TreeNode>();
// foreach (TreeNode subnode in tmp_Selection1)
// {
// foreach (TreeNode subsubnode in subnode.Nodes)
// tmp_Selection2.Add(subsubnode);
// }
// selection = tmp_Selection2;
//}
return selection;
}
public void SelectAllNodes(bool useCat = false)
{
List<TreeNode> selection = new List<TreeNode>();
int maxCategories = udCat.Items.Count - 1;
if (!useCat)
{
foreach (TreeNode node in treeView1.TopNode.Nodes)
selection.Add(node);
}
else
{
// coding level is reverse of order
selection = SelectCategoryLevel(maxCategories - udCat.SelectedIndex);
}
foreach (TreeNode node in selection)
{
string fp = node.FullPath;
int nodeIndex = node.Index;
// remove last part of tree
int rstr = fp.LastIndexOf('\\');
if (rstr > 0) fp = fp.Remove(rstr);
// add position information in Tag field
node.Tag = node.Tag + "_" + fp + "_" + nodeIndex.ToString();
treeView1.Nodes.Remove(node);
if (node != null)
{
treeView2.Nodes.Add(node);
addToSelection(node);
}
}
UpdateCounter();
}
private void btnAllSel_Click(object sender, EventArgs e)
{
List<TreeNode> selection = new List<TreeNode>();
int maxCategories = udCat.Items.Count - 1;
if (!cbCat.Checked)
{
foreach (TreeNode node in treeView1.TopNode.Nodes)
selection.Add(node);
}
else
{
// coding level is reverse of order
selection = SelectCategoryLevel(maxCategories - udCat.SelectedIndex);
}
foreach (TreeNode node in selection)
{
string fp = node.FullPath;
int nodeIndex = node.Index;
// remove last part of tree
int rstr = fp.LastIndexOf('\\');
if (rstr > 0) fp = fp.Remove(rstr);
// add position information in Tag field
node.Tag = node.Tag + "_" + fp + "_" + nodeIndex.ToString();
treeView1.Nodes.Remove(node);
if (node != null)
{
treeView2.Nodes.Add(node);
addToSelection(node);
}
}
UpdateCounter();
}
void UpdateCounter()
{
textBox1.Text = treeView2.Nodes.Count.ToString();
}
private void btnAllBack_Click(object sender, EventArgs e)
{
List<TreeNode> selection = new List<TreeNode>();
foreach (TreeNode node in treeView2.Nodes)
selection.Add(node);
foreach (TreeNode treeNode in selection)
{
treeView2.Nodes.Remove(treeNode);
(TreeNode node, string fullpath, int idx) = getPositionInfo(treeNode);
removeFromSelection(treeNode.Index);
if (!insertNode(node, idx, fullpath)) // add as main node
treeView1.Nodes[0].Nodes.Add(node);
else // check if main nodes are correctly placed
checkParentNodes();
}
UpdateCounter();
}
private void cbTableOutput_CheckedChanged(object sender, EventArgs e)
{
tableOutput = cbTableOutput.Checked;
}
private void EnableSingleSelectionButtons(bool enable)
{
button1.Enabled = enable;
button2.Enabled = enable;
}
private void cbCat_CheckedChanged(object sender, EventArgs e)
{
udCat.Enabled = cbCat.Checked;
EnableSingleSelectionButtons(!cbCat.Checked);
}
private void cbTopFC_CheckedChanged(object sender, EventArgs e)
{
udTopFC.Enabled = cbTopFC.Checked;
EnableSingleSelectionButtons(!cbTopFC.Checked);
if (cbTopFC.Checked)
{
udTOPP.Enabled = false;
cbTopP.Checked = false;
}
}
//private void cbTopP_CheckedChanged(object sender, EventArgs e)
//{
// udTOPP.Enabled = cbTopP.Checked;
// EnableSingleSelectionButtons(!cbTopP.Checked);
// if (cbTopP.Checked)
// {
// udTopFC.Enabled = false;
// cbTopFC.Checked = false;
// }
//}
private void cbSplit_Click(object sender, EventArgs e)
{
splitNP = cbSplit.Checked;
}
private void cbMaxExtremes_CheckedChanged(object sender, EventArgs e)
{
udExtremes.Enabled = cbMaxExtremes.Checked;
}
}
public struct cat_elements
{
public cat_elements(bool empty = true)
{
catName = "";
elTag = "";
elements = new string[] { "" };
isnull = empty;
}
//public bool IsNull
//{
// get { return catName==""; }
// set { isnull = value; }
//}
private bool isnull;
public string catName;
public string elTag;
public string[] elements;
};
public struct summaryInfo
{
public string catName; //catName contains regulon or category title
public string catNameFormat;
public double[] p_values;
public double[] fc_values;
public double p_fdr;
public double es;
public double p_average;
public double fc_average;
public double p_mad;
public double fc_mad;
public string[] genes;
public double best_gene_percentage;
}
public struct element_fc
{
//public string catName;
public List<summaryInfo> All, Activated, Repressed; // Com;
//public double[] fcP;
//public double[] fcN;
//public double[] fcT;
//public double[] pvaluesP;
//public double[] pvaluesN;
//public double[] pvaluesT;
//public double averagep_P;
//public double averagep_N;
//public double averagep_T;
//public double averageFC_P;
//public double averageFC_N;
//public double averageFC_T;
//#region toberemoved
//public double madp_P;
//public double madp_N;
//public double madp_T;
//public double sd;
//#endregion
//public double madFC_P;
//public double madFC_N;
//public double madFC_T;
//public string[] genesP;
//public string[] genesN;
//public string[] genesT;
};
public struct element_rank
{
public string catName;
public double[] average_fc;
public double[] mad_fc;
public double[] p_fdr;
public int[] nr_genes;
public string[] genes;
// only used in case of best results
public double[] best_genes_percentage;
//public double[] averagen_fc;
//public double[] madn_fc;
//public int[] nrn_genes;
//public string[] ngenes;
}
#if CLICK_CHART
public struct chart_info
{
public chart_info(Excel.Chart cht, List<element_fc> els)
{
chart = cht;
chartData = els;
}
public Excel.Chart chart;
public List<element_fc> chartData;
}
#endif
}