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

Can't read zipped vcf from stdin #1502

Closed
barslmn opened this issue Sep 21, 2023 · 10 comments
Closed

Can't read zipped vcf from stdin #1502

barslmn opened this issue Sep 21, 2023 · 10 comments
Assignees

Comments

@barslmn
Copy link

barslmn commented Sep 21, 2023

Describe the issue

Can't read zipped vcf from stdin.

System

  • VEP version: 110
  • VEP Cache version: 110
  • Perl version: 5.36
  • OS: Debian sid
  • tabix installed yes

Full VEP command line

This works:

 bcftools view sample/Test.vcf.gz  | /home/bar/ensembl-vep/vep --everything --force_overwrite --vcf --pick --format vcf --output_file STDOUT --compress bgzip --fork 1 --cache > /dev/null

This gives error (difference is -Oz in bcftools):

 bcftools view sample/Test.vcf.gz -Oz | /home/bar/ensembl-vep/vep --everything --force_overwrite --vcf --pick --format vcf --output_file STDOUT --compress bgzip --fork 1 --cache > /dev/null

Full error message

Smartmatch is experimental at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm line 472.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "��M-^R|�1�M-^O���M-^Pm�1�M-\fA>�L'��1(M-^ZM-^R^R^]��_r9z..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "T@XD8g�g82[MLD�^]��ke��^W" �R+�.D��J�Y^N^AB�^^M-^[%av�ů..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "T@XD8g�g82[MLD�^]��ke��^W" �R+�.D��J�Y^N^AB�^^M-^[%av�ů..." isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "M-^R\r�N��%^S�M-^Iu��^\����E|�i��"���bJ^QM-^T0�yZ}M-^R~5..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "M-^R\r�N��%^S�M-^Iu��^\����E|�i��"���bJ^QM-^T0�yZ}M-^R~5..." isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "����M-^G�-|����^X^V#^^�����V�M-^]v�d=}����M-^_�B" isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "����M-^G�-|����^X^V#^^�����V�M-^]v�d=}����M-^_�B" isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "M-^A�=Wr���^[�M-^H�p��2?-����~���ome��U����;}M-^K%�\\^��..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "M-^A�=Wr���^[�M-^H�p��2?-����~���ome��U����;}M-^K%�\\^��..." isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Argument "�M-\fM-^C,��^PM-\rM-^D�M-^^M-^S" isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "8�`^Tq�^A�M-^Rs�P~{\0M-^VG^\�N�M-^X�5KkM-\0�9^A�M-^O�IJF..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "M-^O^^"l۹�M-^E" isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "M-^O^^"l۹�M-^E" isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "�>��2^Zm��pQ��^D���^G@^Z�yK��K7�DM-^^�M-^A�M-^F^]�*_s�h�..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "�>��2^Zm��pQ��^D���^G@^Z�yK��K7�DM-^^�M-^A�M-^F^]�*_s�h�..." isn't numeric in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "�+�o�M-^OM-^_M-\0^B\0�l�\0�^U`w'�N�M-^C^?w^O�y�^A�\0��t\0..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Argument "\0I^G��y\0@��^XY^GTM-^P�Ϣ�]Q�E��*JM-^ZM-^RV^C@|�]w�^SM-\0..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "^Ny2/R�^Yy�R�M-^X=#O^V��^Y�" isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Argument "�5^]���M-^Pr���^U'M-\0M-^TM-^SM-^I+^NM-^I2��|�^D�M-^DM-^V..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Argument "AV��ET$ʬM-^Q��J*�dsLM-^H2'�-^UM-^I2+:M-^VM-^UM-^\��M-^R..." isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Argument "M-^D�ڢN92F�l��" isn't numeric in addition (+) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value $ref in join or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 282.
Use of uninitialized value in split at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 446.
Use of uninitialized value $ref in subtraction (-) at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 299.
Use of uninitialized value in string eq at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 304.
Use of uninitialized value $ref in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm line 384.
Use of uninitialized value in sprintf at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 499.
Use of uninitialized value in concatenation (.) or string at /home/bar/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm line 509.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
Argument "M-^D^Z���9M-^AH� U�HP5M-^P6^Q�Q�{Z�A�^QV��hQM-^W�Y"_^Uv�..." isn't numeric in preincrement (++) at /home/bar/ensembl-vep/Bio/EnsEMBL/IO/Parser/BaseVCF4.pm line 262.
DBD::mysql::st execute failed: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '=' at /home/bar/ensembl-vep/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm line 329.
DBD::mysql::st execute failed: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '=' at /home/bar/ensembl-vep/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm line 329.
@dglemos dglemos self-assigned this Sep 22, 2023
@dglemos
Copy link
Contributor

dglemos commented Sep 22, 2023

Hi @barslmn,
VEP can read compressed (gzipped) input files that can be compressed with the command bgzip. Probably the command bcftools view -Oz does not behave as bgzip.

Your input file sample/Test.vcf.gz is already compressed. Is there a specific reason why you are compressing it again?

@barslmn
Copy link
Author

barslmn commented Sep 22, 2023 via email

@dglemos
Copy link
Contributor

dglemos commented Sep 22, 2023

Can you please send the file Test.vcf.gz to helpdesk@ebi.ac.uk?

@barslmn
Copy link
Author

barslmn commented Sep 22, 2023

I guess mail attachments don't show up on github. I send to helpdesk also attaching here.
Best, B
Test.vcf.gz

@dglemos
Copy link
Contributor

dglemos commented Sep 25, 2023

Thank you for sending your file.

We are investigating why VEP does not read a file compressed with bcftools view -Oz

However, your file works in vep:
perl -i Test.vcf.gz --everything --force_overwrite --vcf --pick --format vcf --output_file STDOUT --compress bgzip --fork 1 --cache
I recommend you input this file directly into VEP.

@barslmn
Copy link
Author

barslmn commented Sep 25, 2023 via email

@dglemos
Copy link
Contributor

dglemos commented Sep 25, 2023

That's correct, VEP is supposed to read the compressed file.
Can you test the following command?
bcftools view Test.vcf.gz -Oz | zcat | perl vep --everything --force_overwrite --vcf --pick --format vcf --output_file STDOUT --compress bgzip --fork 1 --cache

@barslmn
Copy link
Author

barslmn commented Sep 25, 2023 via email

@dglemos
Copy link
Contributor

dglemos commented Sep 25, 2023

For the input file (option -i), VEP supports compressed files (gzipped).
If -i is not specified, VEP will attempt to read from STDIN however it seems this is not working for compressed files.
I recommend you either use the option -i Test.vcf.gz or zcat before calling vep bcftools view Test.vcf.gz -Oz | zcat | ...

@dglemos
Copy link
Contributor

dglemos commented Oct 25, 2023

I'm going to close this issue. If you have more questions please feel free to open a new issue.

Best wishes,
Diana

@dglemos dglemos closed this as completed Oct 25, 2023
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

2 participants