Skip to content

Commit

Permalink
Cannot update a set while iterating over it
Browse files Browse the repository at this point in the history
  • Loading branch information
ernfrid committed Mar 9, 2018
1 parent 8b5cd13 commit 7ded464
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 7ded464

Please sign in to comment.