This is a test version of Biostars. For the public version, visit https://www.biostars.org.
File "checkVCF.py", line 162 and line 128 errors

Hi, Can experts help me find out how to solve it? Thanks.

python checkVCF.py -r hs37d5.fa -o test example.vcf.gz

Traceback (most recent call last):

  File "checkVCF.py", line 162, in <module>
    banner(logger)
  File "checkVCF.py", line 128, in banner
    print >> logger, "checkVCF.py -- check validity of VCF file for meta-analysis"

***TypeError****: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'Logger'. Did you mean "print(<message>, file=<output_stream>)"?
gwas

Can you add a link to the script? It contains some quite old code it seems.

Hello zhangcc89!

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.