From 5ebfe57765241376ee0ac5b9c20b3af14dc940eb Mon Sep 17 00:00:00 2001 From: preecej Date: Sat, 8 Mar 2014 01:29:10 +0000 Subject: [PATCH] mods for projected species flexibility svn path=/; revision=535 --- Personnel/preecej/python_singletons/map_os_2_at.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Personnel/preecej/python_singletons/map_os_2_at.py b/Personnel/preecej/python_singletons/map_os_2_at.py index b784e8e..1f101cf 100755 --- a/Personnel/preecej/python_singletons/map_os_2_at.py +++ b/Personnel/preecej/python_singletons/map_os_2_at.py @@ -103,7 +103,7 @@ def inp_map(input_file, output_file) : for line in INP : cols = line.rstrip().split() os_locus = cols[1].rstrip(".1") - prj_locus = cols[2].rstrip(".1") + prj_locus = cols[2].rsplit("_",1)[0].rsplit(".",1)[0] # remove any isoform suffixes if os_locus in dict_inp_ids.keys() : dict_inp_ids[os_locus].append(prj_locus) else : -- 2.34.1