diff jbrowse2/jbrowse2.py @ 9:6a41f87b5d7f draft

Uploaded
author fubar
date Fri, 05 Jan 2024 05:06:21 +0000
parents 1e6128ccc82b
children 0db895a99532
line wrap: on
line diff
--- a/jbrowse2/jbrowse2.py	Fri Jan 05 04:57:29 2024 +0000
+++ b/jbrowse2/jbrowse2.py	Fri Jan 05 05:06:21 2024 +0000
@@ -172,7 +172,7 @@
         for i, genome_node in enumerate(self.genome_paths):
             if self.debug:
                 log.info("genome_node=%s" % str(genome_node))
-            genome_name = genome_node["meta"]["dataset_dname"]
+            genome_name = genome_node["meta"]["dataset_dname"].strip().split()[0]
             fapath = genome_node["path"]
             faname = genome_name + ".fa.gz"
             fadest = os.path.realpath(os.path.join(self.outdir, faname))