From: preecej Date: Sat, 29 Mar 2014 03:00:44 +0000 (+0000) Subject: wip X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=9a297a4875072372d6fb945b29ed89660458e589;p=old-jaiswallab-svn%2F.git wip svn path=/; revision=565 --- diff --git a/Personnel/preecej/python_singletons/incomparanoid.py b/Personnel/preecej/python_singletons/incomparanoid.py index b9a3bbc..53408b7 100755 --- a/Personnel/preecej/python_singletons/incomparanoid.py +++ b/Personnel/preecej/python_singletons/incomparanoid.py @@ -283,6 +283,8 @@ def write_reactome_files(dict_map, reactome_gene_protein_path, reactome_projecti """ REACTOME_GENE_PROTEIN_OUT_FILE = open(os.getcwd() + reactome_projection_species + '_gene_protein_mapping.txt','w') for v in sorted(dict_map.values()) : + # TODO: iterate each values list for 1-to-many individual values + # need to make sure values are unique by putting in temp set as you print REACTOME_GENE_PROTEIN_OUT_FILE.write(v + "\t" + (projection_prefix if projection_prefix else "") + v) + "\n") REACTOME_GENE_PROTEIN_OUT_FILE.close()