Mercurial > repos > yating-l > jbrowsearchivecreator
comparison util/subtools.py @ 35:68466f5064ce draft
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit a500f7ab2119cc5faaf80393bd87428389d06880
author | yating-l |
---|---|
date | Fri, 10 Nov 2017 17:03:43 -0500 |
parents | 7b955a58d8f2 |
children | d17f629f5486 |
comparison
equal
deleted
inserted
replaced
34:3285f5d22330 | 35:68466f5064ce |
---|---|
227 if os.path.exists(filename): | 227 if os.path.exists(filename): |
228 return filename | 228 return filename |
229 else: | 229 else: |
230 raise ValueError('Did not find bai file') | 230 raise ValueError('Did not find bai file') |
231 | 231 |
232 def flatfile_to_json(inputFile, dataType, trackType, trackLabel, outputFolder, options=None, compress=False): | 232 def flatfile_to_json(inputFile, dataType, trackType, trackLabel, outputFolder, options=None, compress=True): |
233 if "bed" in dataType: | 233 if "bed" in dataType: |
234 fileType = "--bed" | 234 fileType = "--bed" |
235 elif "gff" in dataType: | 235 elif "gff" in dataType: |
236 fileType = "--gff" | 236 fileType = "--gff" |
237 else: | 237 else: |