Mercurial > repos > rmarenco > hubarchivecreator
diff TrackDb.py @ 30:e7c4be523cb7 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 2f1b3cc8c9cb463e460f7f79efe99ed472700ecf
author | yating-l |
---|---|
date | Tue, 19 Jun 2018 13:02:32 -0400 |
parents | 7e8a8b732db3 |
children |
line wrap: on
line diff
--- a/TrackDb.py Wed May 16 18:04:20 2018 -0400 +++ b/TrackDb.py Tue Jun 19 13:02:32 2018 -0400 @@ -1,4 +1,5 @@ #!/usr/bin/python +import os import collections from util import santitizer @@ -21,7 +22,7 @@ def createTrackDb(self, track_name, long_label, short_label, file_path, track_type, extraSettings = None): # TODO: Remove the hardcoded "tracks" by the value used as variable from myTrackFolderPath - data_url = "tracks/%s" % track_name + data_url = "tracks/%s" % os.path.basename(file_path) if not short_label: short_label = TrackDb.getShortName(long_label) # Replace '_' by ' ', to invert the sanitization mecanism