Mercurial > repos > richard-burhans > batched_lastz
comparison run_lastz_tarball.py @ 16:79182c2a8c80 draft default tip
planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/batched_lastz commit e03d88240ee3894a2bb7bf2f196d9215cb8e0621
| author | richard-burhans |
|---|---|
| date | Tue, 09 Sep 2025 17:51:23 +0000 |
| parents | f6090d2a5722 |
| children |
comparison
equal
deleted
inserted
replaced
| 15:f6090d2a5722 | 16:79182c2a8c80 |
|---|---|
| 224 format_name = f.readline() | 224 format_name = f.readline() |
| 225 format_name = format_name.rstrip("\n") | 225 format_name = format_name.rstrip("\n") |
| 226 except FileNotFoundError: | 226 except FileNotFoundError: |
| 227 sys.exit(f"ERROR: input tarball missing galaxy/format.txt: {self.pathname}") | 227 sys.exit(f"ERROR: input tarball missing galaxy/format.txt: {self.pathname}") |
| 228 | 228 |
| 229 if format_name in ["axt", "bam", "maf"]: | 229 format_map = { |
| 230 self.format_name = format_name | 230 "axt": "axt", |
| 231 elif format_name == "differences": | 231 "axt+": "axt", |
| 232 self.format_name = "interval" | 232 "cigar": "cigar", |
| 233 "differences": "interval", | |
| 234 "lav": "lav", | |
| 235 "lav+text": "lav", | |
| 236 "maf": "maf", | |
| 237 "maf+": "maf", | |
| 238 "maf-": "maf", | |
| 239 "sam": "sam", | |
| 240 "sam-": "sam", | |
| 241 "softsam": "sam", | |
| 242 "softsam-": "sam" | |
| 243 } | |
| 244 | |
| 245 self.format_name = format_map.get(format_name, "tabular") | |
| 233 | 246 |
| 234 | 247 |
| 235 class TarRunner: | 248 class TarRunner: |
| 236 def __init__( | 249 def __init__( |
| 237 self, | 250 self, |
| 334 found_falures = True | 347 found_falures = True |
| 335 | 348 |
| 336 while not output_queue.empty(): | 349 while not output_queue.empty(): |
| 337 run_time = output_queue.get() | 350 run_time = output_queue.get() |
| 338 run_times.append(run_time) | 351 run_times.append(run_time) |
| 352 if self.debug: | |
| 353 print(f"lastz took {run_time}", file=sys.stderr, flush=True) | |
| 339 | 354 |
| 340 if found_falures: | 355 if found_falures: |
| 341 sys.exit("lastz command failed") | 356 sys.exit("lastz command failed") |
| 342 | 357 |
| 343 elapsed = time.perf_counter() - begin | 358 elapsed = time.perf_counter() - begin |
