Mercurial > repos > fubar > jbrowse2
changeset 25:172acf9c7a53 draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 50ecae3ea703a1b04501cc44f0d1fa6d714a6cc9
author | fubar |
---|---|
date | Sat, 03 Feb 2024 22:07:55 +0000 |
parents | fb6cc7bc24df |
children | e578621acb13 |
files | jbrowse2.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jbrowse2.py Sat Feb 03 11:49:56 2024 +0000 +++ b/jbrowse2.py Sat Feb 03 22:07:55 2024 +0000 @@ -459,9 +459,13 @@ genome_name # first one for all tracks - other than paf ) self.genome_firstcontig = None - fl = open(fapath, "r").readline().strip().split(">", 1) + fl = open(fapath, "r").readline().strip().split(">") if len(fl) > 1: - self.genome_firstcontig = fl[1].split().strip() + fl = fl[1] + if len(fl.split()) > 1: + self.genome_firstcontig = fl.split()[0].strip() + else: + self.genome_firstcontig = fl if self.config_json.get("assemblies", None): self.config_json["assemblies"] += assemblies else: