Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcf_filter.py python3 error with --output #327

Open
ghost opened this issue Mar 15, 2021 · 0 comments
Open

vcf_filter.py python3 error with --output #327

ghost opened this issue Mar 15, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2021

When I try to use the --output arg to vcf_filter.py I get this traceback:

Traceback (most recent call last):
  File "/home/coyote/anaconda3/bin/vcf_filter.py", line 168, in <module>
    if __name__ == '__main__': main()
  File "/home/coyote/anaconda3/bin/vcf_filter.py", line 142, in main
    output = vcf.Writer(args.output, inp)
  File "/home/coyote/anaconda3/lib/python3.7/site-packages/vcf/parser.py", line 644, in __init__
    quotechar='', quoting=csv.QUOTE_NONE)
TypeError: argument 1 must have a "write" method

Do you mean to have this on line 142 of vcf_filter.py:
output = vcf.Writer(open(args.output, 'w'), inp)

instead of this: output = vcf.Writer(args.output, inp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants