Beispiel #1
0
 public List <DataTable> SetTables()
 {
     DataTables = new List <DataTable> {
         DisplayProteoformFamily.FormatFamiliesTable(Sweet.lollipop.target_proteoform_community.families.Select(x => new DisplayProteoformFamily(x)).ToList(), "ProteoformFamilies")
     };
     return(DataTables);
 }
Beispiel #2
0
        public void fill_proteoform_families(string filter, int decoyCommunityMinusOneIsTarget)
        {
            IEnumerable <object> families = filter == "" ?
                                            (decoyCommunityMinusOneIsTarget < 0 ?
                                             Sweet.lollipop.target_proteoform_community.families.OrderByDescending(f => f.relations.Count) :
                                             Sweet.lollipop.decoy_proteoform_communities[Sweet.lollipop.decoy_community_name_prefix + decoyCommunityMinusOneIsTarget].families.OrderByDescending(f => f.relations.Count)) :
                                            (decoyCommunityMinusOneIsTarget < 0 ?
                                             ExtensionMethods.filter(Sweet.lollipop.target_proteoform_community.families.OrderByDescending(f => f.relations.Count), filter)
                : ExtensionMethods.filter(Sweet.lollipop.decoy_proteoform_communities[Sweet.lollipop.decoy_community_name_prefix + decoyCommunityMinusOneIsTarget].families.OrderByDescending(f => f.relations.Count), filter));

            DisplayUtility.FillDataGridView(dgv_main, families.OfType <ProteoformFamily>().Select(f => new DisplayProteoformFamily(f)));
            DisplayProteoformFamily.FormatFamiliesTable(dgv_main);
        }