Skip to content

bedpetovcf does not work with vcftobedpe output as input #324

@anoronh4

Description

@anoronh4

I'm trying the dockerhub image with svtools and running as follows:

singularity exec -e --no-home docker://halllab/svtools:v0.5.1 svtools vcftobedpe -i $inputvcf -o vcftobedpe.bedpe -t tmp
singularity exec -e --no-home docker://halllab/svtools:v0.5.1 svtools bedpetovcf -i vcftobedpe.bedpe -o bedpetovcf.vcf -t tmp

The first operation works fine and has no error. The bedpe looks as expected. The second step has the following error:

Traceback (most recent call last):
  File "/opt/hall-lab/python-2.7.15/bin/svtools", line 11, in <module>
    sys.exit(main())
  File "/opt/hall-lab/python-2.7.15/lib/python2.7/site-packages/svtools/cli.py", line 79, in main
    sys.exit(args.entry_point(args))
  File "/opt/hall-lab/python-2.7.15/lib/python2.7/site-packages/svtools/bedpetovcf.py", line 73, in run_from_args
    bedpeToVcf(stream, args.output)
  File "/opt/hall-lab/python-2.7.15/lib/python2.7/site-packages/svtools/bedpetovcf.py", line 36, in bedpeToVcf
    myvcf.add_header(header)
  File "/opt/hall-lab/python-2.7.15/lib/python2.7/site-packages/svtools/vcf/file.py", line 54, in add_header
    self.add_filter(*[b.split('=')[1] for b in self.parse_meta(line)])
IndexError: list index out of range

Just wondering what might be the issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions