Skip to content

Commit

Permalink
Merge pull request #250 from ernfrid/classifier_pos
Browse files Browse the repository at this point in the history
Cannot update a set while iterating over it
  • Loading branch information
ernfrid committed Mar 9, 2018
2 parents 8b054fe + 7ded464 commit eb0444b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions svtools/sv_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,9 @@ def run_from_args(args):
parser.print_help()
sys.exit(1)
with su.InputStream(args.input) as stream:
sex_chrom_names = set(args.sex_chrom.strip().split(','))
for chrom in sex_chrom_names:
chrom_names = args.sex_chrom.strip().split(',')
sex_chrom_names = set(chrom_names)
for chrom in chrom_names:
sex_chrom_names.add(chromosome_prefix(chrom))
sys.stderr.write('sex chromosome names are: {0}\n'.format(str(sex_chrom_names)))
run_reclassifier(
Expand Down

0 comments on commit eb0444b

Please sign in to comment.