Mercurial > repos > fubar > jbrowse2
comparison maf2bed.py @ 98:b1260bca5fdc draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 44d8fc559ecf5463a8f753561976fa26686c96f6
author | bgruening |
---|---|
date | Wed, 05 Jun 2024 10:00:07 +0000 |
parents | e7a6f7a7148d |
children |
comparison
equal
deleted
inserted
replaced
97:74074746ccd8 | 98:b1260bca5fdc |
---|---|
30 temp = line | 30 temp = line |
31 buffer = temp if buffer == '' else f"{buffer},{temp}" | 31 buffer = temp if buffer == '' else f"{buffer},{temp}" |
32 elif line[0] == 'a': | 32 elif line[0] == 'a': |
33 score = int(line[1].split('=')[1]) | 33 score = int(line[1].split('=')[1]) |
34 if id > 0: | 34 if id > 0: |
35 sys.stdout.write('\t'.join([chrom, '%d' % start, '%d' % end, f"{sys.argv[1]}_{id}", '%d' % score, buffer])+ '\n') | 35 sys.stdout.write('\t'.join([chrom, '%d' % start, '%d' % end, f"{sys.argv[1]}_{id}", '%d' % score, buffer]) + '\n') |
36 id += 1 | 36 id += 1 |
37 buffer = '' | 37 buffer = '' |
38 elif line[0] == 's': | 38 elif line[0] == 's': |
39 line = line[1:] | 39 line = line[1:] |
40 line = ':'.join(line) | 40 line = ':'.join(line) |