Mercurial > repos > iuc > ivar_trim
comparison write_amplicon_info_file.py @ 11:5671e1d3d5ee 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:18:33 +0000 |
parents | c092052ed673 |
children |
comparison
equal
deleted
inserted
replaced
10:9f978da6528a | 11:5671e1d3d5ee |
---|---|
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( |