Anyone with expertise in bcf files that can help <...
# team-maintainers
s
Anyone with expertise in bcf files that can help @Louis Le Nézet with a nf-test conversion?
l
To summarize the issue, in this PR https://github.com/nf-core/modules/pull/8438 Varlociraptor seems to produce a bcf but we don't know if it's compressed or not and nf-test doesn't seems to recognize either way. If i set to
--output bcf.gz
, nf-test throw
java.io.IOException: Unable to parse header with error: Your input file has a malformed header: We never saw the required CHROM header line (starting with one #) for the input VCF file, for input source: file:test.bcf.gz
Copy code
$ cat test.bcf.gz
�BC\�XO��碴~M��K� ��}
jU�zv�K

$ zcat test.bcf.gz
BCFz##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed",IDX=0>
...
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO
j��GT   Q
��J��
     �S5�
�}1��s�aa��a� W���Qj��CT        Q
But if I set it to
--output test.bcf
, nf-test throw
java.io.IOException: Unable to parse header with error: Input stream does not contain a BCF encoded file; BCF magic header info not found, at record 0 with position 0:, for input source: file:test.bcf
Copy code
$ cat test.bcf
�BCW�X_��sQZ_�&{�D�a���Vu��s�&���ˢ�w�;q[��{�Φ�]wv�K�N��+����*�R!�*�����+��
                                                                          ������v�k��{��"Ʋ<��7������xOh

[[}��}�

$ zcat test.bcf
BCFw##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed",IDX=0>
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO
j��GT   Q
��J��
     �S5�