public void addKeggDetails(string v) { if (!Dict_kegg_details.ContainsKey(v)) { Dict_kegg_details.Add(v, new KEGG_entry_details(v)); if (Dict_kegg_details[v].metadata) { foreach (pathway p in Dict_kegg_details[v].listOfPathway) { if (!List_of_pathways.Any(x => x.Kegg_map_id == p.Kegg_map_id)) { List_of_pathways.Add(p); } } } } }
public string printLine() { return(string.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}{0}{6}{0}{7}{0}{8}{0}{9}{0}{10}{0}{11}{0}{12}{0}{13}{0}{14}{0}{15}{0}{16}{0}{17}{0}{18}{0}{19}{0}{20}{0}{21}" + "{0}{22}{0}{23}{0}{24}{0}{25}{0}{26}{0}{27}{0}{28}{0}{29}{0}{30}{0}{31}{0}{32}{0}{33}{0}{34}{0}{35}{0}{36}{0}{37}{0}{38}{0}{39}{0}{40}{0}{41}{0}{42}{0}{43}{0}{44}{0}{45}{0}{46}{0}{47}{0}{48}{0}{49}{0}{50}{0}{51}" + "{0}{52}{0}{53}{0}{54}{0}{55}{0}{56}{0}{57}{0}{58}{0}{59}{0}{60}", '\t', Hmdb_accession, (Hmdb_secondary_accessions == null ? "" : string.Join("|", Hmdb_secondary_accessions)), Name, (Synonym_names == null ? "" : string.Join("|", Synonym_names)), Description, Formula, Average_molecular_weight, Monisotopic_molecular_weight, Iupac_name, Traditional_iupac, Cas_registry_number, (Cts_cas == null ? "" : string.Join("|", Cts_cas)), Smiles, Inchi, Inchikey, (My_taxonomy == null ? "" : My_taxonomy.Direct_parent), (My_taxonomy == null ? "" : My_taxonomy.Kingdom), (My_taxonomy == null ? "" : My_taxonomy.Super_class), (My_taxonomy == null ? "" : My_taxonomy.Tclass), (My_taxonomy == null ? "" : string.Join("|", My_taxonomy.Substituents)), (My_taxonomy == null ? "" : string.Join("|", My_taxonomy.Other_descriptors)), (My_onotology == null ? "" : My_onotology.Status), (My_onotology == null ? "" : string.Join("|", My_onotology.Origins)), (My_onotology == null ? "" : string.Join("|", My_onotology.Biofunctions)), (My_onotology == null ? "" : string.Join("|", My_onotology.Applications)), (My_onotology == null ? "" : string.Join("|", My_onotology.Cellular_locations)), State, (Biofluid_locations == null ? "" : string.Join("|", Biofluid_locations)), (Tissue_locations == null ? "" : string.Join("|", Tissue_locations)), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Kegg_map_id))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => string.Join(",", x.List_of_names)))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Super_class))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Pathway_map.Item1 + "-" + x.Pathway_map.Item2))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => string.Join(",", x.List_of_modules.Select(y => y.Item1 + "-" + y.Item2))))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => string.Join(",", x.List_of_diseases.Select(y => y.Item1 + "-" + y.Item2))))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Organism))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Gene))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Enzyme))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Reaction))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Compound))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Ko_pathway))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Rel_pathway))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Smpdb_map_id))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Smpdb_map_name))), (List_of_pathways == null ? "" : string.Join("|", List_of_pathways.Select(x => x.Smpadb_map_description))), Drugbank_id, Drugbank_metabolite_id, Chemspider_id, Kegg_id, (Cts_kegg == null ? "" : string.Join("|", Cts_kegg)), Metlin_id, Pubchem_compound_id, Chebi_id, (Cts_chebi == null ? "" : string.Join("|", Cts_chebi)), Synthesis_reference, (List_of_proteins == null ? "" : string.Join("|", List_of_proteins.Select(x => x.Protein_accession))), (List_of_proteins == null ? "" : string.Join("|", List_of_proteins.Select(x => x.Name))), (List_of_proteins == null ? "" : string.Join("|", List_of_proteins.Select(x => x.Uniprot_id))), (List_of_proteins == null ? "" : string.Join("|", List_of_proteins.Select(x => x.Gene_name))), (List_of_proteins == null ? "" : string.Join("|", List_of_proteins.Select(x => x.Protein_type))))); }