Mercurial > repos > iuc > ivar_removereads
comparison write_amplicon_info_file.py @ 10:ee29337f905c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit 8ce6fd9aee543d9e62db33a9c95f79d8dc4e6dea
author | iuc |
---|---|
date | Wed, 13 Jul 2022 15:20:33 +0000 |
parents | 8d36959b000d |
children |
comparison
equal
deleted
inserted
replaced
9:8d36959b000d | 10:ee29337f905c |
---|---|
8 | 8 |
9 | 9 |
10 def write_amplicon_info_file(bed_file, amplicon_info_file): | 10 def write_amplicon_info_file(bed_file, amplicon_info_file): |
11 amplicon_sets = {} | 11 amplicon_sets = {} |
12 for line in bed_file: | 12 for line in bed_file: |
13 fields = line.strip().split('\t') | 13 line = line.strip() |
14 if not line: | |
15 continue | |
16 fields = line.split('\t') | |
14 start = int(fields[1]) | 17 start = int(fields[1]) |
15 name = fields[3] | 18 name = fields[3] |
16 re_match = AMPLICON_PAT.match(name) | 19 re_match = AMPLICON_PAT.match(name) |
17 if re_match is None: | 20 if re_match is None: |
18 raise ValueError( | 21 raise ValueError( |