Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Causey-Freeman committed May 12, 2022
1 parent 4bed18f commit 3796474
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions VariantFormatter/simpleVariantFormatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def format(batch_input, genome_build, transcript_model=None, specify_transcripts
vcf_list = pseudo_vcf.split('-')
delimiter = '-'
if len(vcf_list) != 4:
formatted_variants[variant]['errors'].append(
'%s is an unsupported format: For assistance, submit variant description to '
'https://rest.variantvalidator.org') % pseudo_vcf
error = '%s is an unsupported format: For assistance, submit variant description to https://rest.variantvalidator.org' % str(pseudo_vcf)
formatted_variants[variant]['errors'].append(error)
formatted_variants[variant]['flag'] = 'submission_warning'
continue
if ',' in str(vcf_list[-1]):
Expand All @@ -71,9 +70,8 @@ def format(batch_input, genome_build, transcript_model=None, specify_transcripts
try:
format_these.append(variant)
except Exception:
formatted_variants[variant]['errors'].append(
'%s is an unsupported format: For assistance, submit variant description to '
'https://rest.variantvalidator.org') % variant
error = '%s is an unsupported format: For assistance, submit variant description to https://rest.variantvalidator.org' % variant
formatted_variants[variant]['errors'].append(error)
formatted_variants[variant]['flag'] = 'submission_warning'
continue

Expand Down

0 comments on commit 3796474

Please sign in to comment.