Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Error: Something is not right with your vcf file #4

@ksw9

Description

@ksw9

Hi,
Thanks for a great program!
I'm getting an error 'Something is not right with your vcf file' and I'm wondering if there are VCF file specifications that need to be met to use this tool? I'm not sure if, for instance, this requires haploid genotype calls?
Uploading cluster10.vcf.gz…

./run_b2cs -x ${xml} beast2 $ref  test2.vcf
2020-04-22 15:57 B2CONSTSITES INFO  Imported sequence NC_000962.3.
2020-04-22 15:57 B2CONSTSITES INFO  Sequence has length 4411532

2020-04-22 15:57 B2CONSTSITES CRITICAL Something is not right with your vcf file
Traceback (most recent call last):
  File "/home/kwalter/.local/bin/run_b2cs", line 8, in <module>
    sys.exit(run_b2constsites())
  File "/home/kwalter/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/kwalter/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/kwalter/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/kwalter/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/kwalter/.local/lib/python3.8/site-packages/b2constsites/run_b2constsites.py", line 53, in run_b2constsites
    cs.load_vcf()
  File "/home/kwalter/.local/lib/python3.8/site-packages/b2constsites/b2constsites.py", line 49, in load_vcf
    self.var_pos.update(self._parse_pos(rec))
  File "/home/kwalter/.local/lib/python3.8/site-packages/b2constsites/b2constsites.py", line 34, in _parse_pos
    if rec.INFO['TYPE'][0] in ACCEPTABLE_VAR_TYPES:
KeyError: 'TYPE'

Following a previously published pipeline, I used VarScan to call variants and have a VCF with diploid calls. I'm attaching the VCF below.

Any suggestions would be great!
Thank you and best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions