From e1d81753b9cf3aec4c913a234b655829fd8cec7a Mon Sep 17 00:00:00 2001 From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr> Date: Sun, 30 May 2021 20:52:42 +0200 Subject: [PATCH] fix jbrowse_links separator --- utilities.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utilities.py b/utilities.py index 13d7d73..340a987 100755 --- a/utilities.py +++ b/utilities.py @@ -194,10 +194,11 @@ def get_sp_jbrowse_links(org_list): for org in org_list: gspecies = org.genus_species - if gspecies not in jbrowse_links_dict.keys(): - jbrowse_links_dict[gspecies] = "" if org.contig_prefix != "": - jbrowse_links_dict[gspecies] = jbrowse_links_dict[gspecies] + ";" + org.contig_prefix + ">" + org.species_folder_name + if gspecies not in jbrowse_links_dict.keys(): + jbrowse_links_dict[gspecies] = org.contig_prefix + ">" + org.species_folder_name + else: + jbrowse_links_dict[gspecies] = jbrowse_links_dict[gspecies] + ";" + org.contig_prefix + ">" + org.species_folder_name return jbrowse_links_dict -- GitLab